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

Can we use referback in same step?


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

New User


Joined: 10 Jan 2006
Posts: 14
Location: India

PostPosted: Wed Jan 18, 2006 10:54 am
Reply with quote

Hi All,

With in a step if we declare one DD stmt, Can we use referback to get the same parameters in the subsequent DD stmt?

Could you please provide example for this if possible ?
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Wed Jan 18, 2006 11:12 am
Reply with quote

Hi toughmetals,



eg:

//STEP1 EXEC PGM = IEFBR14
//DD1 DD DSN =INFILE1, DISP = (NEW,CATLG,DELETE),
// DCB = (LRECL=80,RECFM=FB,BLKSIZE=800),
// VOL=SER=MTPUN1,SPACE =(TRK,(3,5))
//DD2 DD DSN = INFILE2 DISP = *.DD1,
// DCB = *.DD1,
// VOL=SER=MTPUN1,SPACE =(TRK,(3,5))
//STEP2 EXEC PGM = IEFBR14
//DD3 DD DSN = INFILE3 DISP = *.STEP1.DD1
// DCB = (LRECL=80,RECFM=FB,BLKSIZE=800),
// VOL=SER=MTPUN1,SPACE =(TRK,(3,5))

in the above jcl all files will have same properties
in step1 dd2 will refer same step dd1 and in step2 dd3 will refer pervious step dd1

thanks
balaji
Back to top
View user's profile Send private message
toughmetals

New User


Joined: 10 Jan 2006
Posts: 14
Location: India

PostPosted: Wed Jan 18, 2006 1:29 pm
Reply with quote

That Was helpful. Thanks Balaji.

Thanks,
Deeps
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Wed Jan 18, 2006 1:40 pm
Reply with quote

Be sure that your file are not on multivolume because using VOL=REF=*.mydd data is truncated at the end of primary volume.
Try to see JCL manuals for further information.

I hope in this.
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
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top