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 |
how you will define a temporary dataset in jcl?
i have a jcl containing header body and trailer .in header i have viswa body 2 6 1 9 7 trailer reddy .now i need to sort only body in either asecending or descending order how can i do it
how GDGs are concatinated?
what is meant by jobtrac?
using cursor how can you fetch more than one record into a variable
hi iam learning mainframes,can anybody tell me how to check JCL errors.(after submiting the JCL we have check in spool or is there any other method)
What is the function of the dd avgrec keyword in sms datasets?
How to pass data to a program that is coded in an exec statement?
MOD, DELETE; What does a disposition of (,DELETE) mean ?
How to exclude the duplicate records from two concateded flat files (records from both files must be removed)?
can a job be submitted through jcl only? is there another way to submit a job?
In sms datasets, what is the function of the dd avgrec keyword?