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 / mani
CATALOG PROC
//CATPROC PROC
//STEP1 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//DD1 DD DSN=FILEA,
// DISP=(,CATLG,DELETE),
// SPACE=(TRK,(100,50),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//SYSOUT DD SYSOUT=*
//
INVOKING JCL
//Z000960P JOB CLASS=E,MSGCLASS=E,NOTIFY=&SYSUID
// JCLLIB ORDER=Z000960.SOURCE.JCL
//MYPROC EXEC CATPROC
//STEP1.DD1 DD DSN=FILEB,DISP=(NEW,CATLG)
AFTER EXECUTE THE JCL FILEB WILL BE GETTING OVERRIDE
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
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 to run batch program without jcl?
How can the submitting users racf authority be overridden in a job stream?
What is the purpose of dd * statement in jcl?
how do you access an uncataloged dataset in a jcl?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
Name what parameter directs the output of the job log dataset?
Explain the function of dd disp parameter?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
What are the rules employed while naming the steps in a job?
How can a stopped job be started again?
What do you understand by the terms: joblib and steplib?
what is use of disp parameter in dd statement?
How can values be passed from the job stream to an executable program?
How can unused space allocation be returned to the system when a dataset is closed?