View previous topic :: View next topic
|
Author |
Message |
karthikeyan r
New User
Joined: 12 Jul 2008 Posts: 7 Location: Chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
karthikeyan r
New User
Joined: 12 Jul 2008 Posts: 7 Location: Chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
karthikeyan r
New User
Joined: 12 Jul 2008 Posts: 7 Location: Chennai
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
karthikeyan r
New User
Joined: 12 Jul 2008 Posts: 7 Location: Chennai
|
|
|
|
yES. fIELD1 AND fIELD 3 ARE NUMERIC |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|