Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we use referback in same step?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can we use referback in same step?
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts IEF645I INVALID REFERBACK IN THE RC ... abdulrafi JCL & VSAM 2 Mon Aug 29, 2016 10:57 am
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us