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
Where can program checkpoints be stored for use in a restart?
What is the function of the dd avgrec keyword in sms datasets?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
How can the attributes of one sms dataset be copied to another dataset?
in ways data can be passed to a COBOL program from JCL?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
Why include statement is used in a jcl?
Explain how can the attributes of one sms dataset be copied to another dataset?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
Explain about LMFREE�free data set from its association with data ID
How do you access an uncatalogued dataset in a jcl?
How would you understand error(execution phase)?
Explain the function of //jcllib statement?