My issue is when I try to open on input a huge file (6GB) , there's a message that says:
cobol file status code 9Â
I compiled the program and it has no errors, but when I try to run it, I use a small one (3 GB for example) my program work correctly.
Any ideas ?
Variable declaration:
SELECT
MYFILE ASSIGN MYFILE
ACCESS SEQUENTIAL
STATUS IS XZ-STATUS6.
===
OPEN INPUT MYFILE
===
READ MYFILE NEXT AT END MOVE 1 TO ZFIN-F3
You may want to have a look at this link, which includes some info which may apply in your case. Some of the info included there:
Example code (ws-file-status corresponds to your XZ-STATUS6)
Note sure if your (bizarre) value
Â
will correspond with any of the listed values forbinary-status
(withincheck-mf-error-message
), but at least it should help find out how to correctly display your actual file status code.