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 ? | 22 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 |
describe the dd statement,its meaning,syntax and keywords?
what is the use of IEBGENER utility?
How do you override a specific DDNAME/SYSIN in PROC from a JCL?
I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:
what is fixed length and variable length and difference between them
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
ihave ten flatfile in that iwant to concatinate all the files except file 5,6 into output file by uing jcl? how to do this? give me detail yntax for tis?
i have 10 steps in my jcl. -->if i want to execute my program from 5th step what i have to do? don't give //* in ur previous steps --> if i want to execute my program from 1to 5 steps only what i have to do?
Does jcl support automatic restart?
what is the difference between JES3 and JES2?
how are instream data terminated?
Can we Execute a job without specifying Job Name in the Job Card?