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 gdg are concatenated?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
How do you access an uncatalogued dataset in a jcl?
How can unused space allocation be returned to the system when a dataset is closed?
What is one line to pass PARM from JCL to COBOL?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
Explain the hierarchy levels in jcl?
What dd statement is used to supply the name of a dataset?
Is acct parameter mandatory?
What is notcat 2 - gs?
Explain how can a stopped job be started again?
How to submit jcl through a cobol program?
A dd statement consists of 4 fields. Name them?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
How to submit a jcl from cics?