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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

1640


What is the function of the dd dcb keyword?

840


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) ?

1762


write a jcl to execute a job by 7:00 am on jan 20,1986?

713


what happens in execution stage in job processing?

663






What is the function of dd disp parameter?

671


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

770


what is the difference between JES3 and JES2?

702


How do you overcome this limitation ?

708


what is the use of JCL?

677


In sms datasets, what is the function of the dd mgmtclas keyword?

873


Name what parameter directs the output of the job log dataset?

571


How can unused space allocation be returned to the system when a dataset is closed?

823


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

938


define cond parameter in jcl?

787