Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

S0C7 abend for SORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
alan_blore

New User


Joined: 01 Aug 2007
Posts: 50
Location: Hosur

PostPosted: Tue Sep 22, 2009 9:12 pm    Post subject: S0C7 abend for SORT
Reply with quote

The job runs fine for Sort card -
Code:

SORT FIELDS=(3,5,PD,A)                         
OUTFIL FILES=01,INCLUDE=(3,5,PD,EQ,108573004) 
OUTFIL FILES=02,INCLUDE=(3,5,PD,EQ,171120024) 
SUM FIELDS=(33,4,PD)                           


But it throws S0C7 for
Code:

 SORT FIELDS=(3,5,PD,A)                       
 OUTFIL FILES=01,INCLUDE=(1,2,CH,EQ,C'01',AND,
                         85,1,CH,EQ,C'3',AND,
                         22,3,PD,GE,7063,AND,
                         22,3,PD,LE,7069,AND,
                         (20,2,CH,EQ,C'T1',OR,
                         20,2,CH,EQ,C'T2'))   
 OUTFIL FILES=02,INCLUDE=(1,2,CH,EQ,C'01',AND,
                         85,1,CH,EQ,C'3',AND,
                         22,3,PD,GE,7070,AND,
                         22,3,PD,LE,7076,AND,
                         (20,2,CH,EQ,C'T1',OR,
                         20,2,CH,EQ,C'T2'))   
 OUTFIL FILES=03,INCLUDE=(1,2,CH,EQ,C'01',AND,
                         85,1,CH,EQ,C'3',AND,
                         22,3,PD,GE,7077,AND,
                         22,3,PD,LE,7083,AND,
                         (20,2,CH,EQ,C'T1',OR,
                         20,2,CH,EQ,C'T2'))   
 OUTFIL FILES=04,INCLUDE=(1,2,CH,EQ,C'01',AND,
                         85,1,CH,EQ,C'3',AND, 
                         22,3,PD,GE,7084,AND, 
                         22,3,PD,LE,7090,AND, 
                         (20,2,CH,EQ,C'T1',OR,
                         20,2,CH,EQ,C'T2'))   
 OUTFIL FILES=05,INCLUDE=(1,2,CH,EQ,C'01',AND,
                         85,1,CH,EQ,C'3',AND, 
                         22,3,PD,GE,7091,AND, 
                         22,3,PD,LE,7097,AND, 
                         (20,2,CH,EQ,C'T1',OR,
                         20,2,CH,EQ,C'T2'))   
 SUM FIELDS=(33,4,PD)                         


Both the sort uses same I/p files (same layout) and run with EXEC PGM=SORT except the second sort (failing one) reads from Input Tape.

Can anyone help on this?
Also let me know if anything needed to be posted for this

Thanks
alan
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Sep 22, 2009 9:35 pm    Post subject:
Reply with quote

The S0C7 would be caused by a bad PD value.

The SUM statement would be processed before the OUTFIL statements, so if the first job works, the SUM statement is not the problem. So it appears one of the values in the 22,3,PD field of the OUTFIL statements has an invalid value. You can find the invalid value with DFSORT's VERIFY operator:

Code:

//S1   EXEC  PGM=ICETOOL
//TOOLMSG   DD  SYSOUT=*
//DFSMSG    DD  SYSOUT=*
//IN DD DSN=...  input file
//TOOLIN DD *
VERIFY FROM(IN) ON(22,3,PD)
Back to top
View user's profile Send private message
alan_blore

New User


Joined: 01 Aug 2007
Posts: 50
Location: Hosur

PostPosted: Wed Sep 23, 2009 3:01 pm    Post subject:
Reply with quote

i didn't find any invalid records in the file:

The output of ICETOOL:

Code:

SYT000I  SYNCTOOL RELEASE 1.6.2 - COPYRIGHT 2007  SYNCSORT INC.
SYT001I  INITIAL PROCESSING MODE IS "STOP"                     
SYT002I  "TOOLIN" INTERFACE BEING USED                         
                                                               
         VERIFY FROM(IN) ON(22,3,PD)                           
SYT020I  SYNCSORT CALLED WITH IDENTIFIER "0001"                 
SYT044I  NO INVALID FIELDS WERE FOUND                           
SYT031I  NUMBER OF RECORDS PROCESSED: 000000013498046           
SYT030I  OPERATION COMPLETED WITH RETURN CODE 0                 
                                                               
SYT004I  SYNCTOOL PROCESSING COMPLETED WITH RETURN CODE 0       


Kindly let me know if we need anything else to be done to fix this.

Thanks
alan....
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Sep 23, 2009 3:10 pm    Post subject: Reply to: S0C7 abend for SORT
Reply with quote

The SYT..... messages tell that You are not using IBM DFSORT/ICETOOL

topic moved where it belongs ( JCL ) for Syncsort issues
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Sep 23, 2009 3:18 pm    Post subject:
Reply with quote

Hi Alan,

you say
Quote:
both the sort uses same I/p files (same layout) and run with EXEC PGM=SORT except the second sort (failing one) reads from Input Tape.


Are there 2 files and are they identical, by that I mean, is the data identical ?


Gerry
Back to top
View user's profile Send private message
alan_blore

New User


Joined: 01 Aug 2007
Posts: 50
Location: Hosur

PostPosted: Wed Sep 23, 2009 4:02 pm    Post subject: Re: Reply to: S0C7 abend for SORT
Reply with quote

enrico-sorichetti wrote:
The SYT..... messages tell that You are not using IBM DFSORT/ICETOOL

topic moved where it belongs ( JCL ) for Syncsort issues


I had posted the ICETOOL message as Frank had suggested to do so, to validate the S0C7 issue

And I still face the issue in the SORT.

Thanks!
Back to top
View user's profile Send private message
alan_blore

New User


Joined: 01 Aug 2007
Posts: 50
Location: Hosur

PostPosted: Wed Sep 23, 2009 4:06 pm    Post subject:
Reply with quote

gcicchet wrote:
Hi Alan,

you say
Quote:
both the sort uses same I/p files (same layout) and run with EXEC PGM=SORT except the second sort (failing one) reads from Input Tape.


Are there 2 files and are they identical, by that I mean, is the data identical ?


Gerry


Just the layout is same for those two files.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2180
Location: @my desk

PostPosted: Wed Sep 23, 2009 8:11 pm    Post subject:
Reply with quote

alan_blore,

As suggested above, problem might be with the PD data which you are trying to SUM. You can confirm this by running the sort job with the tape file as input; removing all your OUTFIL statements and keep just the SORT and SUM statements.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us