IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DOES SORT RETURN RC=4 when SUM FIELDS Overflow occurs!


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
naveensnayak

New User


Joined: 27 Nov 2006
Posts: 7
Location: Hyderabad

PostPosted: Wed Apr 04, 2007 2:42 pm
Reply with quote

Hi,

Following is the Sort Card Used.

Code:

INCLUDE COND=(1,12,CH,EQ,C'KCLI601.I701')
SORT FIELDS=(1,12,CH,A,                 
            13,2,FI,A,                 
            19,3,CH,A,                   
            22,5,CH,A,                   
            27,3,CH,A,                   
            15,1,CH,A,                   
            30,22,CH,A,                 
            52,22,CH,A,                 
            74,2,FI,A,                   
            16,1,CH,A,                   
            78,1,CH,A,                   
            79,60,CH,A,                 
           159,40,CH,A,                 
           139,20,CH,A)                 
SUM FIELDS=(76,2,FI)           


When the Overflow occured at 76th and 77th positions as mentioned in SUM FIELDS , a Return COde of 0 is being Returned.
Is this true??

FYI NOEQUALS option is active.
But few days back a return code of 4 was returned when SUM overflow occured.

Today when same sort card and same input file are used a return code = 0 is returned.

Can you please explain when a RC = 4 or RC =0 is returned.

Thank You
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Apr 04, 2007 2:54 pm
Reply with quote

Does it say in the output that a sum overflow ocurred ?
Back to top
View user's profile Send private message
naveensnayak

New User


Joined: 27 Nov 2006
Posts: 7
Location: Hyderabad

PostPosted: Wed Apr 04, 2007 3:15 pm
Reply with quote

Hi Expat,

Yes it says that SUM OVERFLOW OCCURED, in this case SORT is not deleting any of the records. Infact it is putting all records into the Output file.

The other case is that when there is SUM overflow(no message in SYSOUT but hav checked by manually calculating the sum), it is simply summarising the duplicate records and putting the sum in one record and deleting the other records.

In either of above cases we are getting RC = 0
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Thu Apr 05, 2007 4:47 am
Reply with quote

Quote:
Can you please explain when a RC = 4 or RC =0 is returned.


DFSORT's OVFLO=RC0/RC4/RC16 option determines whether it will pass back RC=0/4/16 when sum overflow occurs. If you got RC=4 for a SUM overflow, then OVFLO=RC4 was in effect. If you got RC=0 for a SUM overflow, then OVFLO=RC0 was in effect. The OVFLO option can be specified as an installation option by the site (the shipped default is OVFLO=RC0) or as a run-time option for a particular application.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top