View previous topic :: View next topic
|
Author |
Message |
rambabu Currently Banned New User
Joined: 18 Apr 2005 Posts: 67
|
|
|
|
what is referback in jcl?where it is used? |
|
Back to top |
|
|
sribks2005
New User
Joined: 04 Apr 2005 Posts: 20 Location: Mysore
|
|
|
|
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 |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Hi sribks2005,
Big help, If you can provide a code line on referback.
Thanks & Regards,
Priyesh.Agrawal |
|
Back to top |
|
|
vrch
New User
Joined: 21 Mar 2005 Posts: 20
|
|
|
|
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 |
|
|
somuprasanna
New User
Joined: 19 Feb 2005 Posts: 1
|
|
|
|
can we use refer back a dataset created in a PROC into a JCL ? |
|
Back to top |
|
|
|