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

Can high values appear in internal sort?


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

New User


Joined: 12 Jul 2008
Posts: 7
Location: Chennai

PostPosted: Wed Aug 06, 2008 11:50 am
Reply with quote

Hi,

Following is the internal sorting handled in program. If the input has high values, will the sort fail?

SORT SORT-FILE
ASCENDING KEY FIELD1
FIELD2
FIELD3
USING INPUT-FILE

OUTPUT PROCEDURE 9000-PARA THRU
9000-PARA-EXIT.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 06, 2008 12:00 pm
Reply with quote

Hello,

The sort will not fail because of high-values in some or all of the character fields of a record. - every value from x'00' to x'FF' is valid to sort.

If some of your fields are supposed to be signed numeric fields and they contain high-values, your program may fail (i.e. s0c7).
Back to top
View user's profile Send private message
karthikeyan r

New User


Joined: 12 Jul 2008
Posts: 7
Location: Chennai

PostPosted: Wed Aug 06, 2008 12:17 pm
Reply with quote

Hi,

The input has one record fully with high values. Of course we have sort field as signed numeric. But i am getting U025 abend. Following are the last few lines in SYSOUT:
INSIDE 9000-EXIT
ICE751I 1 BA-K22788 BB-K24705 BC-K24705 E8-K24705
ICE091I 0 OUTPUT LRECL = 40, TYPE = F
ICE080I 0 IN MAIN STORAGE SORT
ICE055I 0 INSERT 0, DELETE 0
ICE054I 0 RECORDS - IN: 1, OUT: 0
ICE025A 0 RECORD COUNT OFF
ICE052I 0 END OF DFSORT
CEE3250C The system or user abend U 025 R=NULL was issued.
From compile unit SMS475 at entry point SMS475 at compile unit offset +
address 2789EE8E.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 06, 2008 12:24 pm
Reply with quote

Hello,

Did you RETURN the sort file? Did you get the record or was at end raised on the first return?

Is it possible that the program went thru the output procedure and did not accres the sort file?

This sounds like a code error rather than a problem with high-values. The high-values may have caused a problem with the code, but that is not a sort/high-value issue.
Back to top
View user's profile Send private message
karthikeyan r

New User


Joined: 12 Jul 2008
Posts: 7
Location: Chennai

PostPosted: Wed Aug 06, 2008 2:35 pm
Reply with quote

Hi,

It went thru output procedure also. The display ' inside 9000-exit' is also displayed indicating it came out of exit. Yes.. i have used return statement also. If you could see the sort statements in SYSOUT that i have sent, it says input to sort is 1 but output is 0. So i guess that problem with sort. If not, what can be done with the code..?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 06, 2008 2:48 pm
Reply with quote

dick scherrer wrote:
...If some of your fields are supposed to be signed numeric fields and they contain high-values, your program may fail (i.e. s0c7).


or to paraphrase what Dick said: Is field1,2 or 3 defined as numeric?`
Back to top
View user's profile Send private message
karthikeyan r

New User


Joined: 12 Jul 2008
Posts: 7
Location: Chennai

PostPosted: Wed Aug 06, 2008 2:56 pm
Reply with quote

yES. fIELD1 AND fIELD 3 ARE NUMERIC
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 06, 2008 7:44 pm
Reply with quote

Hello,

Without seeing the code, it still appears that the code is not working properly. From the info presented by the sort, it looks like the record was not returned into the program.

Quote:
So i guess that problem with sort
It is most unlikely that you have discovered a problem with the sort. It is most likely that the code is failing.

It may help if you put a display statement immediately after the return and see what happens.
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top