how can we override data definitions in jcl.
can any one give detailed example

Answers were Sorted based on User's Feedback



how can we override data definitions in jcl. can any one give detailed example..

Answer / meenu

CODE:STEPNAME.DDNAME DD PARAMETERS;
in place of parameters we can write the parameters which we want to override

Is This Answer Correct ?    13 Yes 0 No

how can we override data definitions in jcl. can any one give detailed example..

Answer / 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

how can we override data definitions in jcl. can any one give detailed example..

Answer / sj@iy

Adding to that..
Parameters can be overridden on the EXEC statement in
addition to the DD statement.

Sample for overriding REGION parameter of STEP10 in PROC

//STEP10 EXEC PGM=Program1, REGION=56K
//*Overriding the REGION parameter for STEP10
//SAMPPROC EXEC PROC=PROC1, REGION.STEP10=72K

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More JCL Interview Questions

How Can we see all generations of a GDG ?

3 Answers   Polaris,


Can we delete the data using IEFBR14 , IEBGENER??

5 Answers   Kanbay,


Explain COND used in JCL?

1 Answers   Patni,


what is d/f b/w sysout & sysprint

4 Answers   TCS,


Is their any limit for data sets?

0 Answers  






how do you access an uncataloged dataset in a jcl?

0 Answers   IBM,


GDG Create syntax ?

4 Answers   Xansa,


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

0 Answers  


suppose i have job it contains 10 steps after exicution of job failuer at 3 and 7 th steps i want exicute step 3 and step 7 only how we specify condition ?

5 Answers  


What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?

2 Answers   Patni,


if we compile the cobol+ db2 program now ofter 5 years we need to compile again?

1 Answers   TCS,


Can a PS file be read in reverse order?If so,how

2 Answers   Syntel,


Categories