×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

SELECT NOT OPTIONAL Statement

SELECT NOT OPTIONAL Statement

SELECT NOT OPTIONAL Statement

(OP)
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 https://www.microfocus.com/documentation/visual-co...

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close