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

What is Referback in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rambabu
Currently Banned

New User


Joined: 18 Apr 2005
Posts: 67

PostPosted: Tue Apr 19, 2005 5:27 pm
Reply with quote

what is referback in jcl?where it is used?
Back to top
View user's profile Send private message
sribks2005

New User


Joined: 04 Apr 2005
Posts: 20
Location: Mysore

PostPosted: Tue Apr 19, 2005 6:42 pm
Reply with quote

hi,

Referback technic is used in jcl to refer the characteristics of predefined datasets used in the procedure/jcl thru their DD names.

Eg: you have 5 steps in a jcl. Say in step 3 you are using a dataset ABC and you have defined the required characteristics for it(Eg: DCB,space etc...parameters).
Now say in step 5 , you need to create a new dataset XYZ which has same characteristics as that of dataset ABC created in step 3. Without specifying those parameters again, you can use referback technique to refer the ABC dataset characteristics to create XYZ.

This referback technique can extend beyond a single jcl also. i.e, you can refer the dataset created in different procedure also.

hope it helps.
thank you
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Apr 20, 2005 10:10 am
Reply with quote

Hi sribks2005,

Big help, If you can provide a code line on referback.

Thanks & Regards,

Priyesh.Agrawal
Back to top
View user's profile Send private message
vrch

New User


Joined: 21 Mar 2005
Posts: 20

PostPosted: Wed Apr 20, 2005 2:35 pm
Reply with quote

Hello,

Here is a small example for how to use referback statement.
Code:

\\step1 exec pgm=iefbr14
\\dd1 dd dsn=dataset1,disp=(new,catlg,delete)
\\step2 exec .....
\\step3 exec pgm=iefbr14
\\dd1 dd dsn=dataset2,disp=*.step1.dd1


I think this will helpful to u and it will clarify u r doubt..

Bye
Back to top
View user's profile Send private message
somuprasanna

New User


Joined: 19 Feb 2005
Posts: 1

PostPosted: Mon Jan 09, 2006 4:56 pm
Reply with quote

can we use refer back a dataset created in a PROC into a JCL ?
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. IEF645I INVALID REFERBACK IN THE RC ... JCL & VSAM 4
No new posts Referback the DCB of SORTIN while usi... CLIST & REXX 7
No new posts COND referback in nested PROCS? JCL & VSAM 11
No new posts Referback sysout=* to MSGCLASS and th... JCL & VSAM 2
No new posts Is referback possible in temperory da... Mainframe Interview Questions 4
Search our Forums:

Back to Top