ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Cobol/400

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cobol/400

    Hi all,

    I am getting Record Lock and status is 9D. It is in pg = Size pgm.

    Once the read will be fine and again if i do pg down and read, then this error is cuming.

    any ideas...

    Thanks
    hsp
    'Coding = Experience'
    hsp

  • #2
    Re: Cobol/400

    Normally a file status 9D occurs because you have have attempted to lock a record twice (read with update) -OR- another job already has a lock on the record you trying to read. Check your joblog for a message-id of CPF5027 or CPF5032 to see if either of these conditions are true. It sounds like you have a logic bug that is attempting to lock the same record twice...

    File Status codes are in listed in Appendix F of the ILE/COBOL reference manual located here:


    Terry

    Comment


    • #3
      Re: Cobol/400

      I used Read XXX file with no lock and issue is solved..

      Thanks a lot
      'Coding = Experience'
      hsp

      Comment

      Working...
      X