Answer Posted / 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 |
Post New Answer View All Answers
What dd statement is used to supply the name of a dataset?
What are the jcl procedures?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
what is a jcl?
What are the parameters that are used in creating a gdg?
What happens if both JOBLIB & STEPLIB is specified ?
How to do automated restart when a job abend?
in ways data can be passed to a COBOL program from JCL?
which utility is used a dummy utility?
Define concatenating?
Explain the purpose of dd dummy statement?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Explain how can return codes be tested before execution of a job step?
what is the difference between JES3 and JES2?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?