Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX COBOL SORT

Status
Not open for further replies.

pthboss

IS-IT--Management
Jan 15, 2003
8
0
0
US
I am trying to sort a variable length file using an internal cobol sort. I am using IBM COBOL running on an AIX platform. I am getting this message:

The SORT-RETURN special register was never referenced, but the current content indicated the sort or merge operation in program SRT231 on
line number 338 was unsuccessful. The sort or merge return code was 9.
Message routine called from offset 0x940 of routine _iwzSortMerge.

The file is defined in the following manner:

SELECT SORT-FILE-OUT
ASSIGN TO SYS020
ORGANIZATION IS SEQUENTIAL
ACCESS IS SEQUENTIAL
STATUS IS SORT-FILE-OUT-STATUS.


SD SORT-FILE
RECORD CONTAINS 112 TO 14907 CHARACTERS
DATA RECORD IS SORT-REC.


 
Can you include:

SELECT for SORT-FILE

FD for SORT-FILE-OUT

Full SORT verb (including USING/GIVING or INPUT/OUTPUT PROCEDURE phrases)

Regards.

Glenn
 
Glenn:

Thank you for responding.

It seems my problem is not with the sorting of the variable length records. Its with the creation of the variable length records. Please see my new post.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top