INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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.

Jobs

Cobol Read Command

Cobol Read Command

(OP)
MOVE 901DCM0000         TO MSGKEY.
           READ MSGFILE WITH LOCK.

           MOVE 0000000000             TO MSGKEY.
           START MSGFILE KEY NOT < MSGKEY.

Does the above START command unlock the record read referenced in the “READ MSGFILE” command ?

RE: Cobol Read Command

Depends on the COBOL product you are using.

Tom Morrison
Consultant

RE: Cobol Read Command

(OP)
IS COBOL

RE: Cobol Read Command

The START command positions the pointer within the file, nothing more. (for every version of COBOL I've used).

==================================
advanced cognitive capabilities and other marketing buzzwords explained with sarcastic simplicity


RE: Cobol Read Command

Quote (johnherman)

The START command positions the pointer within the file, nothing more. (for every version of COBOL I've used).

In the (default) automatic single record locking mode in RM/COBOL, the lock established by the READ is released when any I/O statement on the file is executed. Therefore, in that mode, START would release the record.

Now, the question is, does IS COBOL behave that way? Could be, due to the facts (well, perhaps opinion informed by facts) that (1) AcuCOBOL was created to act as an RM/COBOL clone, and (2) IS COBOL was created to act as an AcuCOBOL clone. In reality, almost all COBOL products now have two or more locking modes, and the rules are complex enough that the simple question asked above cannot be answered without considerably more context.

Tom Morrison
Consultant

RE: Cobol Read Command

just as fyi, I have never used RM Cobol or Acu Cobol. My experience is with Concurrent Cobol, Microfocus Cobol, and a bunch of old proprietary Cobols, like Burroughs/Unisys, DEC, etc.

==================================
advanced cognitive capabilities and other marketing buzzwords explained with sarcastic simplicity


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!

Resources

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