Page 1 of 1

Can we reference back a instream DD from previous step?

Posted: Mon Dec 29, 2014 3:17 pm
by John Maher
Hi

In a JOb I have two DD statement which has got identical instream data. In such a case can I refer back the data for second DD from the first DD? For example,

Code: Select all

//STEP10    EXEC PGM=... 
//DDDATA1   DD * 
.
.
/* 
//STEP20    EXEC PGM=... 
//DDATATA2   DD * 
.. 
/* 
Now I want DDDATA2 to refer to DDDATA1.Is this possible in case of in-stream data? Please help.

Re: Can we reference back a instream DD from previous step?

Posted: Mon Dec 29, 2014 5:19 pm
by enrico-sorichetti
NO.

when the same inline data has to be used by more than one step
the usual process ids to add at the beginning of the job one step to copy
the inline data to a PS temporary data seta and after that use it as many times as needed

Re: Can we reference back a instream DD from previous step?

Posted: Mon Dec 29, 2014 7:41 pm
by William Collins
The data is sitting in the output hopper of the card reader by the time the second step kicks in, so No.