I have a jcl which is using 2 data sets i want to override those data sets. how can i override the files within the JCL. Give me the syntax. Make sure that it is not calling any Proc.



I have a jcl which is using 2 data sets i want to override those data sets. how can i override the f..

Answer / indira

Hi... Make sure your que is correct
Acc to what I understood from ur que u want to give the override of the 2 dataset in the same jcl itself...if this is the case then make use of symbolic parameter.
In the jcl above before executing the steps use SET parameter to give the name for the override dataset.
For eg -
//SET1 SET HLQ1 = High1
// HLQ2 = High2
....
//DD1 DD DSN= &HLQ1.DS
//DD2 DD DSN =&HLQ2.DS

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

How can I write the joblog in the spool on normal end of a job step and direct the joblog to a dataset only if the step abends?

2 Answers  


Can we have a JOBSTEP without any EXEC ?

6 Answers   IBM,


Passing a variable parm from JCL to a cobol/db2 program

1 Answers   IBM,


I have a dataset with record length 40 in production, due to some requirements it was changed to 80. Then how can we know the jobs which are effected by this change and how can we resolve it.

3 Answers   iGate,


what is a MODELDSCB?

1 Answers  






Is acct parameter mandatory?

0 Answers  


Suppose I have a file with three fields with data in the following format 1. empid - S9(4) COMP 2. empname - X(20) 3. empsal - S9(5)V(2) COMP-3 If I view this file, it will not be in a readable format. How to display the empid and empsal fields in a readable format without using COBOL program? What kind of SORT card will have to be coded?

4 Answers  


mainframe questions like basic&depth

0 Answers   TetraSoft,


File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3

7 Answers  


i have 10 steps in my jcl. -->if i want to execute my program from 5th step what i have to do? don't give //* in ur previous steps --> if i want to execute my program from 1to 5 steps only what i have to do?

2 Answers  


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

0 Answers  


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

0 Answers  


Categories