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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: DOES SORT RETURN RC=4 when SUM FIELDS Overflow occurs!
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: 8593
Location: Back in jolly old England

PostPosted: Wed Apr 04, 2007 2:54 pm    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Thu Apr 05, 2007 4:47 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts ESQA overflow - high ECSA utilization vasanthz All Other Mainframe Topics 1 Thu Dec 29, 2016 7:06 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm


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