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 Read two files CLIST & REXX 4
No new posts Compare 2 files replace data in 1st f... DFSORT/ICETOOL 4
No new posts Merging 2 files but ignore duplicate... DFSORT/ICETOOL 1
No new posts Print report for each record from mul... CA Products 1
No new posts Get two files from one file with diff... DFSORT/ICETOOL 10
Search our Forums:

Back to Top