Skip to main content

In a program that does a sort with input- and output-procedures, I get this error message:

I/O error: file 'SORTFILE'

error code: 9/220 (ANS74), pc=0, call=1, seg=0

220   Attempt to execute more than one SORT or MERGE simultaneously

Attached GDC02.txt is the COBOL source code.  What am I doing wrong?

In a program that does a sort with input- and output-procedures, I get this error message:

I/O error: file 'SORTFILE'

error code: 9/220 (ANS74), pc=0, call=1, seg=0

220   Attempt to execute more than one SORT or MERGE simultaneously

Attached GDC02.txt is the COBOL source code.  What am I doing wrong?

Yikes -- I can't figure out how to attach my COBOL source code.  I'm such a newbie.  Please advise how I can attach an ascii text file.  


In a program that does a sort with input- and output-procedures, I get this error message:

I/O error: file 'SORTFILE'

error code: 9/220 (ANS74), pc=0, call=1, seg=0

220   Attempt to execute more than one SORT or MERGE simultaneously

Attached GDC02.txt is the COBOL source code.  What am I doing wrong?

Click on the "Use rich fomatting" link at bottom and then click on the Options tab and select attach file.

Alternatively you can copy/paste the source directly in the post if it is small.

The 220 usually occurs if you are doing an exit out of the input or output procedure paragraph without letting it complete and return back to the sort statement.

Let me see your source and I will tell you if that is the case here...