Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECT NOT OPTIONAL Statement

Status
Not open for further replies.

klophockey

Programmer
May 25, 2016
41
US
I am trying to determine an problem I am running into while compiling a program with Fujitsu cobol that has been compiled with MF, ACU, RM and IS Cobol with no issues.

The code is
SELECT NOT OPTIONAL mast1-file ASSIGN TO "mast1"
ORGANIZATION IS INDEXED
ACCESS MODE IS DYNAMIC
RECORD KEY IS mast1-num
FILE STATUS IS mast1-status.

Fujitsu does not recognize the 'NOT OPTIONAL' in its compile. If I remove it from the Select statement, it compiles fine.

If found this:
The NOT OPTIONAL phrase has effect only when the file is opened input-output taken from
What is the 'effect only when the file is opened as I-O'?? The mast1 file does get opened as I-O at some point in the program.....but what is the 'effect' that NOT OPTIONAL has on that operation?


Thanks very much for any input you may have.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top