how can we override data definitions in jcl.
can any one give detailed example
Answer Posted / suputhru
meenu u r corrrrect.
STEPNAME.DDNAME DD PARAMETERS;
in place of parameters we can write the parameters which we want to override
//PROC1 PROC
//STEP1…..
//DD1 DD DSN=FILE1,DISP=SHR
…
…
//
Now we can override dd parameter disp=shr to DISP=OLD.
//JOB1 JOB..
//PROCLIB…
//STEP001 EXEC PROC1
//STEP1.DD1 DD DSN=FILE1,DISP=OLD.
SYMBOLIC parameters: used to orverride parameters on the DD statement.
They can be used in cataloged and instream procs.
//ddname DD ¶meter
Values assigned at proc and exec statements.
//JOB1 JOB..
//PROC1 PROC DISPO=NEW ----here dd parameter value assigned at proc.
//STEP1 EXEC PROC1
//DD1 DD DSN=FILE1,DISP=&DISPO ------it means DISP=NEW.
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
how do you access an uncataloged dataset in a jcl?
Are there any set of rules for the names of the steps used in a job? What are they?
What do you understand by jcl?
How do you overcome this limitation ?
what is JCL?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
How to pass data to a program that is coded in an exec statement?
Explain the hierarchy levels in jcl?
List the various advantages of using jcl language?
Explain how can the attributes of one sms dataset be copied to another dataset?
Is condition checking possible in jcl?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
how do you code a null statement?
How do you create a temporary dataset?