how can we pass parameters from JCL to cobol
subprogram...my requirement is i should not get data from
mainprogram but i need it from JCL directly

Answer Posted / squid

You could use PARM on the EXEC statement and get values
from JCL in the Linkage Section.

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the function of a dd statement?

864


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

1060


what is use of space parameter in dd statement?

951


List in order the hierarchical levels of jcl?

856


What is the significance of addrspc parameter in the exec statement?

822


what are the various stages of job processing?

979


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?

975


Is there any command to check wether the ps file is in sorted order?

2615


What is multithreading in jcl?

1174


What is one line to pass PARM from JCL to COBOL?

4660


I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.

2246


Explain how can return codes be tested before execution of a job step?

1043


List the different jcl statements that are not permitted in the procedures?

831


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

1133


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

2010