Page 1 of 1

TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

PostPosted: Tue Mar 19, 2013 6:17 pm
by pearl
IS THIS CODE RIGHT? THE JOB IS GETTING ABENDED...
//XXXXXXP  JOB NOTIFY=&SYSUID,                     
//          MSGLEVEL=(1,1),CLASS=A,MSGCLASS=H       
//*                                                 
//STEP01  EXEC PGM=SORT                             
//SYSOUT    DD SYSOUT=*                             
//SYSPRINT  DD SYSOUT=*                             
//SORTIN   DD DSN=XXXXX.XXXX.XXXXXXXX(IP1),DISP=SHR 
//         DD DSN=XXXX.XXXX.XXXXX(IP2),DISP=SHR 
//FILE01   DD DSN=XXXXX.XXXX.XXXXX(OP5),DISP=SHR 
//FILE02   DD DSN=XXXXX.XXXX.XXXXX(OP6),DISP=SHR 
//SYSIN     DD *                                   
    OPTION COPY                                     
    OUTFIL FNAMES=FILE01                           
    OUTFIL FNAMES=FILE02                           
/*                                                 
//                                                 

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

PostPosted: Tue Mar 19, 2013 6:20 pm
by enrico-sorichetti
why to keep things simple You do not stick to good old plain sequential files
meddling with PDS will just add useless troubles

if You want help show that the same error happens when using PS datasets and not PDS members

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

PostPosted: Tue Mar 19, 2013 6:22 pm
by BillyBoyo
Also, showing the sysout from the step with the "abend" would help, if that is what you actually want.

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

PostPosted: Tue Mar 19, 2013 10:24 pm
by dick scherrer
Hello,

If OP5 and OP6 are members of the same PDS, there should be problems . . .

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

PostPosted: Wed Mar 20, 2013 10:18 pm
by pearl
enrico-sorichetti wrote:why to keep things simple You do not stick to good old plain sequential files
meddling with PDS will just add useless troubles

if You want help show that the same error happens when using PS datasets and not PDS members


thankx alot.
Actually, the code works for PS files.

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

PostPosted: Wed Mar 20, 2013 10:19 pm
by pearl
thankx alot everyone for helping me out. :)

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

PostPosted: Fri Mar 22, 2013 5:07 pm
by Anuj Dhawan
WOW - what a 'KISS-thread'! :wink: