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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a jobs execution priority be modified?

886


IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C

1724


how JCL works?

882


Mention the types of job control statements?

792


What is the purpose of dd?

824






How does jcl act on a cobol code?

731


Explain the function of the dd dcb keyword?

815


Explain how can return codes be tested before execution of a job step?

941


what is DD statement is used in JCL?

764


Is their any limit for data sets?

786


What do you understand by the term notcat 2 – gs?

856


What is the use of disp parameter?

727


What are the 2 types of parameters in dd statement?

730


How can the attributes of one sms dataset be copied to another dataset?

968


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1862