what happens when input file is empty?



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

what happens when input file is empty?

Postby dhiviya » Mon Oct 29, 2007 7:20 pm

hi ,

when the input file is empty you would always want your cobol program to end with maxcc=4. how would you acheive this?
dhiviya
 
Posts: 4
Joined: Mon Oct 29, 2007 4:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: what happens when input file is empty?

Postby Bitneuker » Mon Oct 29, 2007 7:39 pm

Set the returncode to 4 as follows:

MOVE 4 TO RETURN-CODE


The title doesn't cover your question :lol:
Bitneuker
 
Posts: 6
Joined: Wed Jun 13, 2007 3:15 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post