IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is there any option to refer back in a JCL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mukesh.py
Currently Banned

New User


Joined: 22 Sep 2008
Posts: 17
Location: Chennai, India.

PostPosted: Tue Nov 11, 2008 2:22 pm
Reply with quote

Hi members.
Is there any option to refer back in a JCL. what i suspected from the interview was like how to refer back to step1 from step3 . if there is any other thery for refer back in JCL then please let me know.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Nov 11, 2008 2:26 pm
Reply with quote

Mukesh,

Quote:
Is there any option to refer back in a JCL.


Yes.

Quote:
what i suspected from the interview was like how to refer back to step1 from step3


Yes, this can be done. Referback is usually used for DCB parameters,DSN names etc.

Say if u want the same dataset used in step 1 in step2 then u can use the referback statememts.
Back to top
View user's profile Send private message
Mukesh.py
Currently Banned

New User


Joined: 22 Sep 2008
Posts: 17
Location: Chennai, India.

PostPosted: Tue Nov 11, 2008 2:31 pm
Reply with quote

Aaru, can i have a sample peice of code so that it can be more clear to me.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Tue Nov 11, 2008 2:38 pm
Reply with quote

Mukesh,

Why don't you refer a book or manuals available in this forum before posting the question? This is a basic question and you will get answer any books or manuals.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Nov 11, 2008 3:12 pm
Reply with quote

Quote:
can i have a sample peice of code so that it can be more clear to me.

Check below
Code:

//STEP1 EXEC PGM=ABCD
//DD1 DD DCB=RECFM=FB,…
//DD2 DD DCB=*.DD1,…
//STEP2 EXEC PGM=WXYZ
//DD3 DD DCB=*.STEP1.DD1,…
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts SCOPE PENDING option -check data DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts CICS vs LE: STORAGE option CICS 0
No new posts INSYNC option with same function as I... JCL & VSAM 0
Search our Forums:

Back to Top