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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


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