I am trying to read a file in COBOL and keep getting the following error. I can write to a file without any problems, just can't read. I am sure it is just something that I am missing, just can't figure out what it is.
IWZ200S Error detected during OPEN for file 'LOOK-FILE'. File status is: 35.
File system indicated: File Not Found.
Message routine called from offset 0x490 of routine _iwzCallUseProc.
_iwzCallUseProc called from offset 0xea8 of routine _iwzSeqOpen.
_iwzSeqOpen called from offset 0x354 of routine _iwzGenricOpen.
_iwzGenricOpen called from offset0x170 of routine READ-TAPE.
THE FILE:
$ ls -lt try.dat
-rwxrwxrwx 1 aaaaa staff 50 Jul 22 14:06 try.dat
THE CODE:
FILE-CONTROL.
SELECT LOOK-FILE ASSIGN TO 'try.dat'
* (also tried complete path name '/home/aaaaa/try.dat'
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL.
* FILE STATUS IS FS-CODE, FILESYS-CODE.
OPEN INPUT
LOOK-FILE.
also tried using the set
set try=/home/aaaaa/try.dat
SELECT LOOK-FILE ASSIGN TO try
IWZ200S Error detected during OPEN for file 'LOOK-FILE'. File status is: 35.
File system indicated: File Not Found.
Message routine called from offset 0x490 of routine _iwzCallUseProc.
_iwzCallUseProc called from offset 0xea8 of routine _iwzSeqOpen.
_iwzSeqOpen called from offset 0x354 of routine _iwzGenricOpen.
_iwzGenricOpen called from offset0x170 of routine READ-TAPE.
THE FILE:
$ ls -lt try.dat
-rwxrwxrwx 1 aaaaa staff 50 Jul 22 14:06 try.dat
THE CODE:
FILE-CONTROL.
SELECT LOOK-FILE ASSIGN TO 'try.dat'
* (also tried complete path name '/home/aaaaa/try.dat'
ORGANIZATION IS SEQUENTIAL
ACCESS MODE IS SEQUENTIAL.
* FILE STATUS IS FS-CODE, FILESYS-CODE.
OPEN INPUT
LOOK-FILE.
also tried using the set
set try=/home/aaaaa/try.dat
SELECT LOOK-FILE ASSIGN TO try