In a proc i will concatinate 4 dd statements.i want to
overide 3 dd statement through jcl how?
Answer Posted / premkumar
Since it is concatenated, you can't have DD names as
mentioned in the previous responses. suppose your 4 dd
statements inside a proc are as below
//myproc PROC
//STEP01 EXEC PGM=progname
//DD01 DD DSN=userid.base.file1
// DD DSN=userid.base.file2
// DD DSN=userid.base.file3
// DD DSN=userid.base.file4
//*
Now you can override the 3 dd statements in JCL as
//POCNAME1 myproc
//STEP01.DD01 DD DSN=userid.base.file5
// DD DSN=userid.base.file6
// DD DSN=userid.base.file7
Note: the fourth file has been left as it is because the
questionsis to override only the first 3 statments.
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
Explain the purpose of dd * statement in jcl?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
How can unused space allocation be returned to the system when a dataset is closed?
Define concatenating?
What are the parameters that are used in creating a gdg?
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) ?
Differentiate between the joblib and the steplib statements?
What is Cataloged Procedures?
what is the use of JCL?
What is the function of the dd mgmtclas keyword in sms datasets?
Brief description of inline procedure of jcl.
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
Is their any set of rules for dd? Explain.
What parameter directs the output of the job log dataset?
which parameter is used to check the syntax of a jcl without executing it?