Page 1 of 1

SYS1.SORTLIB and JCL

PostPosted: Thu Feb 04, 2016 2:05 pm
by samb01
Hello,

in the folloxing sort :

//SORT     EXEC PGM=SORT                           
//SORTLIB  DD DSN=SYS1.SORTLIB,DISP=SHR           
//SYSOUT   DD SYSOUT=H,HOLD=YES                   
//SYSUDUMP DD SYSOUT=H,HOLD=YES                   
//SORTIN   DD  DISP=SHR,                           
//         DSN=XDSN.FCVD             
//OUT1     DD DISP=(NEW,CATLG,CATLG),             
//         SPACE=(CYL,(1,1),RLSE),UNIT=DISK,       
//         DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920), 
//         DSN=FCB.TECHTIE       
//OUT2     DD DISP=(NEW,CATLG,CATLG),             
//         SPACE=(CYL,(1,1),RLSE),UNIT=DISK,       
//         DCB=(RECFM=FB,LRECL=80,BLKSIZE=27920), 
//         DSN=PSG.TECHPA       
//SYSIN    DD *                                   
  OPTION COPY                                     
  OUTFIL FNAMES=OUT1,                             
   INCLUDE=(19,1,CH,EQ,C'T',                 
            AND,10,6,CH,EQ,C'TCFT',       
            AND,17,1,CH,EQ,C'P',             
            AND,30,8,CH,NE,C'00000000'),     
   BUILD=(30,8,C'TC',70X)                   
   OUTFIL FNAMES=OUT2,                       
   INCLUDE=(19,1,CH,EQ,C' ',                 
            AND,10,6,CH,EQ,C'TCFT',       
            AND,17,1,CH,EQ,C'P',             
            AND,30,8,CH,NE,C'00000000'),     
   BUILD=(30,8,C'TC',70X)                   
 //



there is the line :

//SORTLIB DD DSN=SYS1.SORTLIB,DISP=SHR

I would like to know if this line is really neccessary in the step ?


Thank's.

Re: SYS1.SORTLIB and JCL

PostPosted: Thu Feb 04, 2016 2:23 pm
by enrico-sorichetti
all depends on Your system setup, and the sorting being done
the IBM DFSORT manual has a good explanation of the dddnames required and the reason

Re: SYS1.SORTLIB and JCL

PostPosted: Thu Feb 04, 2016 7:54 pm
by Terry Heinze
...or comment it out, submit, and see what you get.