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
 

 

Referback a dataset from PROC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
wicked1925

New User


Joined: 12 Mar 2007
Posts: 15
Location: Philippines

PostPosted: Fri Jun 22, 2007 11:17 am    Post subject: Referback a dataset from PROC
Reply with quote

Hi,

can we referback a dataset generated by a PROC used in previous step?

for example, below is my proc:

//PRCMEM1 PROC
//P01 EXEC PGM=MSDELETE
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//*
//STEPLIB DD DSN=M476FP.PDS.CNTL2,DISP=SHR
//P02 EXEC PGM=MSBR14
// INCLUDE MEMBER=INCLMEM1
// PEND
//

here's the include step:

M476FP.PDS.CNTL2(INCLMEM1)
//DD1 DD DSN=CMS.JCL.EXER4.FILE1.&MMMDD,
// DISP=(NEW,CATLG,DELETE),
// DCB=(LRECL=800,RECFM=FB,DSORG=PS),
// SPACE=(CYL,(1,2),RLSE)
//DD2 DD DSN=CMS.JCL.EXER4.FILE2.&MMMDD,
// DISP=(NEW,CATLG,DELETE),
// DCB=(LRECL=800,RECFM=FB,DSORG=PS),
// SPACE=(CYL,(1,2),RLSE)


then this is my jobstep. i want to referback the output sort dataset:

//S01 EXEC PRCMEM1,MMMDD=JUN21
//*
//SORT01 EXEC MSSORT
//SORTIN DD DSN=MSTEST.JCL.EXER.NO2.RPTA,DISP=SHR
//SORTOUT DD DSN=(referback from proc)
//SYSIN DD*
SORT FIELDS=COPY
INCLUDE COND=(18,1,CH,EQ,C'M')

is it possible?
Back to top
View user's profile Send private message

amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Fri Jun 22, 2007 1:46 pm    Post subject:
Reply with quote

Hi wicked1925,
I think it is possible. If you use the referback as -
<Jobstep_Name>.<DDName in PROC>, it will work.

Correct me if I am wrong.
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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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