In a proc i will concatinate 4 dd statements.i want to
overide 3 dd statement through jcl how?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mchava
//PROC
//STEP1 EXEC PGM=PGM1
//dd1 DD dsn=file1
//dd2 DD dsn=fel2
//dd3 DD dsn=file3
//dd4 DD dsn=file4
//PROCSTEP1.dd3 DD dsn=file5
will override the dd3 file3 with file5
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / y@$w@nth
suppose your 4 dd statements inside a proc are as below
//myproc PROC
//STEP01 EXEC PGM=progname
//DD01 DD DSN=userid.base.file1
//DD02 DD DSN=userid.base.file2
//DD03 DD DSN=userid.base.file3
//DD04 DD DSN=userid.base.file4
// PEND
//STEP02 myproc
//STEP01.DD03 DD DSN=userid.base.orfile3
//
STEP01.DD03 DD DSN=userid.base.orfile3 this tells that
override the DD statement which name is DD03 inside a proc
myproc and inside STEP STEP01
Is This Answer Correct ? | 1 Yes | 4 No |
Where & How Do You Code Identifier In Jcl?
IF WE GIVE COND on step3 then, What does the following mean ? And Just adding to that, All the below COND are VALID as per the specifications. (i) COND = (8,LT,step1,step2) ---(AND/OR ?) (ii) COND = (8,LT,step1,step2, ONLY), (iii) COND = (8,LT,step1,ONLY) will it execute only if this condition is true or only if step1 ABENDS ? (iv) COND = (8,LT,step1,step2,EVEN), (v) COND = (8,LT,step1,EVEN) ?
how can we pass external data to instream procedures
5 Answers IBM, Infosys, Ocwen,
Can there be 2 job statements in a JCL? If yes what is the purpose of doing tha?
If your job fails at particular step then what would be the return code for next steps
Explain about LMMFIND - find a library member
How to see the COMP3 value(packd decimal)
What is MOD and when would you use it?
What is the difference between catalogue procedure and In-Stream procedure?
which utility is used to run a cobol-db2 program?
how many max steps can we use in a job? pls answer to my question
JCL Example: // //RUNJCL JOB CLASS=5,MSGCLASS=6,NOTIFY=&SYSUID //STEP01 EXEC PGM=IEFBR14 // .. .. If this JCL will run or it'll throw the ERROR?