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

internal sort output procedure


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vamsivaranasi

New User


Joined: 22 Sep 2008
Posts: 8
Location: Bangalore

PostPosted: Thu Oct 23, 2008 9:37 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Oct 24, 2008 4:20 am
Reply with quote

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
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
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 Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top