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 |
What is jcl in mainframe?
What parameter of the job statement is used to limit the cpu time consumed by the job?
in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?
How many days does a job remain in spool
What are the utility programs in jcl?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
Does the terms, JOBLOG, SPOOL and SYSOUT indicate the same thing, i.e., where JCL and JES messages and statements are written ?
Suppose I have five jobs to do. But I want to hold one?
Can I share my data with other jobs? How?
What are the 2 types of parameters in dd statement?
Explain about ISPFTTRC
I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this: