AFAIK For a temp dataset, 'DISP=OLD' has always meant 'DISP=(OLD,DELETE)' ... going back to the 80's. If the dset is to be referenced again after the initial 'DISP=(NEW,PASS)', it should then specify 'DISP=(OLD,PASS)' in all subsequent steps that reference it - apart from the last. But IBM might have changed all that. <g>

Mike Schwab wrote:

Step2: DISP=(OLD,PASS) to pass to next step.  DISP=OLD means
DISP=(OLD,PASS) because of the previous DISP=(NEW,PASS) implies delete
when done.

On Mon, May 26, 2014 at 8:29 PM, Ravi Gaur <[email protected]> wrote:
There's been no. of posting on it ..so i best tried to go through most of them 
..and I thought to explain very basic of JCL AFIK.

Step1 : showing DISP=(NEW,PASS,DELETE) So basically the dataset is being 
created,passed to be processed in subsequent steps ...HOWEVER not being catalog 
so after processing MVS is suppose to delete it...

Step2 : DISP=OLD ...Just telling program to have EXCLUSIVE hold on the dataset 
while processing so again as per the step1 dataset is suppose to be deleted...

This is so simple as it is ...

Now coming to STEP3:- where it show jcl error is obvious as

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN




----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to