IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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: 8793
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: 2432
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

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts JOINKEYS to match two input files on ... DFSORT/ICETOOL 3
No new posts Group comparison/update between two f... DFSORT/ICETOOL 10
No new posts Need assistance formatting when joini... SYNCSORT 8
No new posts Combining more 4 files with sorted or... DFSORT/ICETOOL 3
No new posts SEPARATE UNIQUE and NON-UNIQUE in SEP... SYNCSORT 6

Back to Top