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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Sum Fields ballaswaroop DFSORT/ICETOOL 4 Tue May 02, 2017 11:07 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am


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