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
what is use of disp parameter in dd statement?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
Does jcl support automatic restart?
What is the function of dd disp parameter?
What is the difference between run mode and addressing mode?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
What is the function of a dd statement?
when does a dataset go uncataloged?
how you will the direct the data to spool using sysout option?
How to pass data to a program that is coded in an exec statement?
How gdg are concatenated?
what is the purpose of coding notify parameter in job statement?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
What are the jcl procedures?