Hello, I'm getting the following error on the 'OUTPUT' procedure of the internal sort,
'RETURN statement 2267 out of order'.
Cause . . . . . : The RETURN statement was not expected by SORT/MERGE. Either a SORT/MERGE was not active or the statement was issued out of sequence. Message issued at statement 2267 of COBOL program 'IAHF910' in program object 'IAHF910' in library 'IAHFOBJ'.
Recovery . . . : Remove the RETURN statement or place it in proper order.
I verified using STRDBG that the INPUT procedure is running and SORT records are being released.