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

Storing SORTOF files in a PDS


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ajithajt

New User


Joined: 21 Mar 2016
Posts: 10

PostPosted: Thu Dec 06, 2018 12:27 pm
Reply with quote

Hi,

This is my sample jcl.

Code:
//SETP001  EXEC PGM=SORT                                               
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//SYSUDUMP DD SYSOUT=*                                                 
//REPORT1  DD SYSOUT=*                                                 
//SORTIN   DD DISP=SHR,DSN=USERID.ABC.INPFILE
//SORTOF01  DD DSN=USERID.ABC.OUTFIL1,
//      DISP=(,CATLG),                                                 
//      SPACE=(TRK,(30,10),RLSE),                                       
//      UNIT=SYSDA,                                             
//      DCB=(RECFM=FB,LRECL=80,BLKSIZE=0,DSORG=PS)               
//SORTOF02  DD DSN=USERID.ABC.OUTFIL2,
//      DISP=(,CATLG),                                           
//      SPACE=(TRK,(30,10),RLSE),                               
//      UNIT=SYSDA,                                             
//      DCB=(RECFM=FB,LRECL=80,BLKSIZE=0,DSORG=PS)             
//SYSIN    DD *                                                 
SORT FIELDS=COPY               
OUTFIL FILES=01,               
INCLUDE=(266,2,CH,EQ,C'AB')     
OUTFIL FILES=02,               
INCLUDE=(266,2,CH,EQ,C'AC')                                   
/*                                                               
//*


In the above JCL i need to include all the SORTOFxx files in a PDS and include that PDS here. My jcl will be having lots of outfil files. So need to give all those files inside a PDS and then refer those files thru that PDS.

For eg, the below lines alone should be stored in a PDS called Test.Pds

Code:
//SORTOF01  DD DSN=USERID.ABC.OUTFIL1,
//      DISP=(,CATLG),                                                 
//      SPACE=(TRK,(30,10),RLSE),                                       
//      UNIT=SYSDA,                                             
//      DCB=(RECFM=FB,LRECL=80,BLKSIZE=0,DSORG=PS)               
//SORTOF02  DD DSN=USERID.ABC.OUTFIL2,
//      DISP=(,CATLG),                                           
//      SPACE=(TRK,(30,10),RLSE),                               
//      UNIT=SYSDA,                                             
//      DCB=(RECFM=FB,LRECL=80,BLKSIZE=0,DSORG=PS)


Now how can i use Test.Pds in my jcl to refer to the Sortof1 and Sortof2 files.?

Could someone please help me to achieve this.

Thanks

CODE'd
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Dec 06, 2018 12:40 pm
Reply with quote

Learn to use the code tags - please
Code:
[code]Put your
things here[/code]

easy isn't it. you could even have used the "Code" button too,which is located on the top of the posting box.

Your SORTOFxx files show two different datasets being used rather than two members in a PDS or PDSE.

And of course, that oldest of questions - What have you tried yourself, where are the results and where do you need assistance. This is a HELP forum not a "Do it for me forum". Your previous posts always show you asking but never showing much useful information, or what you have tried yourself.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Dec 06, 2018 5:16 pm
Reply with quote

You have been told before to use the code tags. If you are going to ignore what you have been asked to do then we will ignore/delete your queries.

Have you heard about the JCL INCLUDE statement? If not, read up on it.
Back to top
View user's profile Send private message
ajithajt

New User


Joined: 21 Mar 2016
Posts: 10

PostPosted: Thu Dec 06, 2018 6:53 pm
Reply with quote

Sure will use codetags going forward.
Yes Include will do the job. Got it. Thanks.
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 -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top