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

What are three parameters you can specify on Job statement as well as on exec stmt ?

1 Answers  


What all are the changes to be made in JCL so as to do testing?

2 Answers   TCS,


How many instream we can write in single jcl?

1 Answers  


if time parameter is not coded on the job card and job step then what is the default time assigned to the entire job and for each step in the job by the systyem ?

2 Answers   ITC Infotech,


the command to open a dataset directly from the JCL instead of opening it separately using 3.4 option.

7 Answers   IBM,






when we use sysprint and sysout statements

3 Answers  


What is the difference between run mode and addressing mode?

0 Answers  


The maximum number of in-stream procedure you can code in any JCL is ?

5 Answers  


What are the jcl procedures?

0 Answers  


what is the use of temporary files?

5 Answers   Hexaware,


How many positional parameters are there in job statement?

4 Answers  


Describe the JOB statement, its meaning, syntax and significant keywords?

1 Answers  


Categories