Page 1 of 1

what happens when input file is empty?

PostPosted: Mon Oct 29, 2007 7:20 pm
by dhiviya
hi ,

when the input file is empty you would always want your cobol program to end with maxcc=4. how would you acheive this?

Re: what happens when input file is empty?

PostPosted: Mon Oct 29, 2007 7:39 pm
by Bitneuker
Set the returncode to 4 as follows:

MOVE 4 TO RETURN-CODE


The title doesn't cover your question :lol: