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

Can we use empty VSAM as input?

9 Answers   Convergys, Kanbay,


How to fetch even records from one file to another file by using ICETOOL in JCL?

3 Answers  


Can you code instream data in a PROC ?

10 Answers  


i have step1,step2,step3 from where can i start coding cond parameter ?

2 Answers   Verizon,


What is concatenating?

0 Answers  






I have a job which is a long-running one. Processes millions of records. Due to some run-time problem (not a problem due to the job/data) the job abends.What needs to be done to make the job complete successfully.

4 Answers   TCS,


what is JCL?

0 Answers  


i have 5 steps to execute in that i want to skip 3nd step and start execute from forth step how can u do this.

7 Answers   Syntel,


We are aware of eliminating the duplicate records from outyput fiel using sort utility. Can we get the duplicate records in to another file in the Same sort utility?

2 Answers  


Can we browse or edit the GDG dataset if it is a tape entry?

4 Answers  


What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring the length field in Linkage Section?

2 Answers   IBM,


Explain about ISPFTTRC

1 Answers  


Categories