Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums 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: 8744
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: 2123
Location: 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 Anyone know how to copy Unix files? John Poulakos JCL & VSAM 7 Wed Oct 10, 2018 12:57 am
No new posts PL/I read error for HFS files Joe Kirsch PL/I & Assembler 6 Fri Sep 28, 2018 9:13 pm
No new posts Need help on the multiple files refor... wik123 DFSORT/ICETOOL 7 Wed Sep 19, 2018 10:47 am
No new posts Merge two files and sum up the count ... preeti6 JCL & VSAM 6 Thu Sep 06, 2018 10:57 am
No new posts Splitting one record in a file to 10 ... mf_123 DFSORT/ICETOOL 9 Tue Aug 21, 2018 8:51 pm

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