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

Referback a dataset from PROC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top