How to pass values in jcl to cobol?
Answers were Sorted based on User's Feedback
Answer / madhavansvce
In JCL we can pass value in parm parameter and received in
cobol in the linkage section by using length and data fields
to be defined in cobol.
| Is This Answer Correct ? | 33 Yes | 4 No |
Answer / muttaiah
We can pass data from JCL to Cobol in 3 ways.
1. SYSIN: Normally and using files
2. Parm Parameter in Exec stmt
1. Sysin: Using this we can pass large amount of data. The
data passed using sysin will be accepted in cobol using
accept statement in procedure division.
//sysin dd *
adbcde
/*
or
//sysind dd dsn=<filename>,disp=shr
2. Parm: The parm parameter in Exec is used to send 100
char's of data from jcl step to cobol. This is accepted in
cobol usign linkage section. LInkage section should be
coded with Lenght and data fields.
//Stepname exec pgm=<PGManme>,parm='100 chars max'
Hope this will give you a clear picture than the other 2
answers.
| Is This Answer Correct ? | 23 Yes | 2 No |
Answer / rekha
We can pass the data from JCL to COBOL
By using SYSIN statement or
By using PARM parameter.
| Is This Answer Correct ? | 22 Yes | 3 No |
Can I send output of job to my remote device careerride123?
Suppose I have five jobs to do. But I want to hold one?
What is catelog procedure and how many catelog procedure to use in one job?
There is one QSAM is the VB file. i want to get the first characters in this file and change those characters from'abcd' to '1234' and creat a vasm file to put '1234' in it. how to do in only JCL. if it not QSAM, it's VASM and VB. how to do it.
What is the syntax of JCL statement?
How do you access a file that had a disposition of KEEP?
How to concatenate different LRECL of files?
how can i code cond parameter in procedures ? i have a jclk calling a proc which has 10 steps i want to execute from step 5 to step 10 where can i code restrat parameter or cond parameter for ths
jcl is like a complier....?
List the various advantages of using jcl language?
What is DYNAMBR in jcl?
What is a COND parameter in JCL?