I'm sorting a work file and it seems to be okay except at the
very end(I think) I'm getting this message. Hope somebody can help: Bad File Status 4 1 On File SORTEDFILE
Here's my sort statement:
SD SORT-FILE.
01 SORT-REC.
SSN
etc etc etc
OPEN OUTPUT SORTEDFILE.
SORT SORT-FILE
ON ASCENDING KEY SSN OF SORT-REC
INPUT PROCEDURE 1000-DO-GET-DATA
GIVING SORTEDFILE.
CLOSE SORTEDFILE.
1000-DO-GET-DATA.
Procedures here to get data and move to DETAIL-REC.
here my release: RELEASE SORT-REC FROM DETAIL-REC
Thanks.
very end(I think) I'm getting this message. Hope somebody can help: Bad File Status 4 1 On File SORTEDFILE
Here's my sort statement:
SD SORT-FILE.
01 SORT-REC.
SSN
etc etc etc
OPEN OUTPUT SORTEDFILE.
SORT SORT-FILE
ON ASCENDING KEY SSN OF SORT-REC
INPUT PROCEDURE 1000-DO-GET-DATA
GIVING SORTEDFILE.
CLOSE SORTEDFILE.
1000-DO-GET-DATA.
Procedures here to get data and move to DETAIL-REC.
here my release: RELEASE SORT-REC FROM DETAIL-REC
Thanks.