Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us