View previous topic :: View next topic
|
Author |
Message |
vamsivaranasi
New User
Joined: 22 Sep 2008 Posts: 8 Location: Bangalore
|
|
|
|
Hi
I have an internal sort in cobol program. In this sort, there is input & output procedure. The records before the sort (in input procedure ) are having proper values. One record after the sort (in output procedure while returning the sort record ) has spaces and hence it gives a SOC-7. I can't use "IS NOT NUMERIC". Please let me know the alternative solution. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Either you have one bad record somewhere in the input or there is an error in the code that creates the bad record. Possibly a record is released to the sort before the data is moved to it.
Have you checked the sort statistics to make sure the proper number of records were read from the input, released to the sort, and returned from the sort?
Quote: |
I can't use "IS NOT NUMERIC". |
Why not? You might also check for spaces. . .
You do not want code in the output procedure to look for the bad record and skip it. You need to put code in the input procedure to prevent it. |
|
Back to top |
|
|
|