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 &parameter

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


Please Help Members By Posting Answers For Below Questions

how do you access an uncataloged dataset in a jcl?

827


Are there any set of rules for the names of the steps used in a job? What are they?

612


What do you understand by jcl?

625


How do you overcome this limitation ?

693


what is JCL?

693






how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

799


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

1485


How to pass data to a program that is coded in an exec statement?

820


Explain the hierarchy levels in jcl?

1118


List the various advantages of using jcl language?

850


Explain how can the attributes of one sms dataset be copied to another dataset?

703


Is condition checking possible in jcl?

716


How to execute 2nd and 4th steps among 5 steps in jcl proc?

747


how do you code a null statement?

773


How do you create a temporary dataset?

660