Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Storing SORTOF files in a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
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    Post subject: Storing SORTOF files in a PDS
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: 8787
Location: Welsh Wales

PostPosted: Thu Dec 06, 2018 12:40 pm    Post subject:
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: 2247
Location: Hampshire, UK

PostPosted: Thu Dec 06, 2018 5:16 pm    Post subject: Reply to: Storing SORTOF files in a PDS
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts adrdssu tool to dump a files from a PDS Kannan Ramalingam JCL & VSAM 5 Fri Nov 01, 2019 6:25 pm
No new posts Pack to Unpack conversion for sending... A_programmers COBOL Programming 13 Wed Sep 11, 2019 10:46 pm
This topic is locked: you cannot edit posts or make replies. Compare two files logic in COBOL Nishant Singhal COBOL Programming 4 Sun Aug 25, 2019 2:25 am
No new posts Concatenate two files of variable rec... Thiru S DFSORT/ICETOOL 3 Wed Aug 21, 2019 11:53 pm
No new posts Copy physical Tape files to a Mainfra... Dadi Krishna Teja JCL & VSAM 11 Thu May 16, 2019 10:25 pm

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