TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

Postby pearl » Tue Mar 19, 2013 6:17 pm

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                           
/*                                                 
//                                                 
pearl
 
Posts: 21
Joined: Fri Mar 15, 2013 12:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

 

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

Postby enrico-sorichetti » Tue Mar 19, 2013 6:20 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

Postby BillyBoyo » Tue Mar 19, 2013 6:22 pm

Also, showing the sysout from the step with the "abend" would help, if that is what you actually want.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

Postby dick scherrer » Tue Mar 19, 2013 10:24 pm

Hello,

If OP5 and OP6 are members of the same PDS, there should be problems . . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

Postby pearl » Wed Mar 20, 2013 10:18 pm

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.
pearl
 
Posts: 21
Joined: Fri Mar 15, 2013 12:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

Postby pearl » Wed Mar 20, 2013 10:19 pm

thankx alot everyone for helping me out. :)
pearl
 
Posts: 21
Joined: Fri Mar 15, 2013 12:55 pm
Has thanked: 0 time
Been thanked: 0 time

Re: TO SORT 2 INPUT FILES INTO 2 OUTPUT FILES

Postby Anuj Dhawan » Fri Mar 22, 2013 5:07 pm

WOW - what a 'KISS-thread'! :wink:
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post