Can we reference back a instream DD from previous step?

JES2/3, JCL, utilities.
Post Reply
John Maher
New Member
Posts: 5
Joined: Tue Jun 17, 2014 1:28 pm

Can we reference back a instream DD from previous step?

Post 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.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

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

Post 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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

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

Post 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.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”