In a proc i will concatinate 4 dd statements.i want to
overide 3 dd statement through jcl how?

Answers were Sorted based on User's Feedback



In a proc i will concatinate 4 dd statements.i want to overide 3 dd statement through jcl how?..

Answer / premkumar

Since it is concatenated, you can't have DD names as
mentioned in the previous responses. suppose your 4 dd
statements inside a proc are as below

//myproc PROC
//STEP01 EXEC PGM=progname
//DD01 DD DSN=userid.base.file1
// DD DSN=userid.base.file2
// DD DSN=userid.base.file3
// DD DSN=userid.base.file4
//*

Now you can override the 3 dd statements in JCL as
//POCNAME1 myproc
//STEP01.DD01 DD DSN=userid.base.file5
// DD DSN=userid.base.file6
// DD DSN=userid.base.file7

Note: the fourth file has been left as it is because the
questionsis to override only the first 3 statments.

Is This Answer Correct ?    13 Yes 0 No

In a proc i will concatinate 4 dd statements.i want to overide 3 dd statement through jcl how?..

Answer / mchava

//PROC
//STEP1 EXEC PGM=PGM1
//dd1 DD dsn=file1
//dd2 DD dsn=fel2
//dd3 DD dsn=file3
//dd4 DD dsn=file4
//PROCSTEP1.dd3 DD dsn=file5
will override the dd3 file3 with file5

Is This Answer Correct ?    4 Yes 1 No

In a proc i will concatinate 4 dd statements.i want to overide 3 dd statement through jcl how?..

Answer / y@$w@nth

suppose your 4 dd statements inside a proc are as below

//myproc PROC
//STEP01 EXEC PGM=progname
//DD01 DD DSN=userid.base.file1
//DD02 DD DSN=userid.base.file2
//DD03 DD DSN=userid.base.file3
//DD04 DD DSN=userid.base.file4
// PEND
//STEP02 myproc
//STEP01.DD03 DD DSN=userid.base.orfile3
//

STEP01.DD03 DD DSN=userid.base.orfile3 this tells that
override the DD statement which name is DD03 inside a proc
myproc and inside STEP STEP01

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More JCL Interview Questions

What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?

3 Answers   IBM,


How can you trap abends in the JCL?

3 Answers  


How can a job send a status message to a tso user at the completion of a job?

1 Answers  


01 A. 10 B pic X(10). move spaces to A. move spaces to B. output in A & B

2 Answers   Perot Systems,


Can you delete the GDG base without deleting GDG generations ?

7 Answers   Cap Gemini,


Is it possible to left uncode disp?

1 Answers  


What is the function of the steplib dd statement?

1 Answers  


How many parameters are there to a DISP statement and what are their uses ?

3 Answers  


if we are specifing joblib as well as steplib in job then at the time of execution how the process will complete

4 Answers  


How to execute a set of JCL statements from a COBOL program ?

6 Answers  


How many steps we can overide in the proc's?

2 Answers   CS,


What are the 2 types of parameters in dd statement?

1 Answers  


Categories