Hi,
i did follow the instructions mentioned in below article "community.microfocus.com/.../4311.9220-attempt-to-execute-more-than-one-sort-or-merge-simultaneously.aspx"
I did add the SECTION keyword for both the input and output procedure but still I am getting the same error. I am using VS 2013 with Visual cobol 2.2 on windows 7.
Thank you.
I suspect that the next step will be that you will be asked to upload the actual source program listing, pared down to the minimal amount to exhibit the error, if possible.
Hi,
i did follow the instructions mentioned in below article "community.microfocus.com/.../4311.9220-attempt-to-execute-more-than-one-sort-or-merge-simultaneously.aspx"
I did add the SECTION keyword for both the input and output procedure but still I am getting the same error. I am using VS 2013 with Visual cobol 2.2 on windows 7.
Thank you.
Are you doing any go to statements that would cause execution to go to a section outside of the output procedure? Are you doing an exit program or goback within the output section instead of letting it exit normally?
Like Austin1 stated, we really need to see the source or else it is just a guessing game...
Thanks.
Hi,
i did follow the instructions mentioned in below article "community.microfocus.com/.../4311.9220-attempt-to-execute-more-than-one-sort-or-merge-simultaneously.aspx"
I did add the SECTION keyword for both the input and output procedure but still I am getting the same error. I am using VS 2013 with Visual cobol 2.2 on windows 7.
Thank you.
I am developing a new winform application. Yes the program does goback from input procedure.
In first iteration, when certain business validations are met the program does goback from input procedure to throw message on the winform without executing the output procedure, which is working as expected.
In second iteration, the input procedure is executed completely (goback logic not executed iteration 2) and abends when the control is passed to the output procedure.
Hi,
i did follow the instructions mentioned in below article "community.microfocus.com/.../4311.9220-attempt-to-execute-more-than-one-sort-or-merge-simultaneously.aspx"
I did add the SECTION keyword for both the input and output procedure but still I am getting the same error. I am using VS 2013 with Visual cobol 2.2 on windows 7.
Thank you.
You cannot do the goback from within the input procedure as this leaves the sort before it has actually completed and leave it in an open state. What you should do in the input procedure is set a flag and then exit the input procedure and then in the output procedure test the flag and exit the procedure so that control returns to the next statement following the sort where you could then do your goback. This will cause the sort to function properly.
Hi,
i did follow the instructions mentioned in below article "community.microfocus.com/.../4311.9220-attempt-to-execute-more-than-one-sort-or-merge-simultaneously.aspx"
I did add the SECTION keyword for both the input and output procedure but still I am getting the same error. I am using VS 2013 with Visual cobol 2.2 on windows 7.
Thank you.
Is there any explicit statement to close/kill sort deliberately, like end-if ? which will be easier fix without much change in the code.
Hi,
i did follow the instructions mentioned in below article "community.microfocus.com/.../4311.9220-attempt-to-execute-more-than-one-sort-or-merge-simultaneously.aspx"
I did add the SECTION keyword for both the input and output procedure but still I am getting the same error. I am using VS 2013 with Visual cobol 2.2 on windows 7.
Thank you.
Slightly quirky syntax, but I believe that if you do:
move 16 to sort-return
...before exiting the input/output procedure, it will cause the sort to terminate immediately.
The SORT-RETURN special register was added to Micro Focus COBOL for IBM compatibility.