Change Dataset Name in PROC

How will you change the dataset name in PROC without altering it?

Questions by ravtej556

Showing Answers 1 - 0 of 0 Answers

avr1985

  • Jul 4th, 2010
 

You can change the dataset name in the procedure without change its name in the Proc.,  mention

STEPNAME.DDNAME DSN=NEWFILE NAME

by writing above code in JCL  it changes the proc DS in proc.

You can override it from the calling job. 
One way is to use a JCL override in the form of - PROCSTEP.PROCDD DD DSN=[overriding dsn name]
This is fine provided you always use the same override dataset.

Another way of overriding a dsn is to change the proc dsn to a variable.  This way you can use a "&" proc parm.  The added benefit is that enforcing a dsn is passed.  If the default is left blank and not overridden, the job will crash with DSNF.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions