How can I override a dsn that is contained in a proc called
by another proc? I need to do the override in the calling
JCL.
Answer Posted / piyush mani
//PROC1 PROC
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=XYZ, DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
// PEND
//JJJ JCLLIB ORDER=PROCLIB PATH
//PROC2 PROC
//STEP2 EXEC PROC1
//JOBNAME JOB PARAMETERS
//JJJ JCLLIB ORDER=PROCLIB PATH
//PROC3 PROC
//STEP2.DD1 DSN=NEW NAME,DISP=SHR
THIS IS D WAY....
THIS PROG. WILL DO NOTHING IT'S JUST AN EXAMPLE..
GIV UR FEEDBACK
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How can values be passed from the job stream to an executable program?
Differentiate between the joblib and the steplib statements?
What parameter of the job statement is used to limit the cpu time consumed by the job?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
in ways data can be passed to a COBOL program from JCL?
What are the 2 types of parameters in dd statement?
How does jcl act on a cobol code?
How is the record format of an output dataset specified?
What are the utility programs in jcl?
Name a few IBM utility programs, and explain its function.
how you can access an uncataloged dataset in a JCL?
Is it possible to define dd statements as you want?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
Is their any set of rules for dd? Explain.