How u detect record is locked in Cobol/400 ?
Wat is the solution for that ?
Answers were Sorted based on User's Feedback
Answer / mvrk
Check the file status, if the file status is 9D then it indicates that the record is locked. Solution should be READ the file with NO LOCK.
Please correct me if i am wrong.
| Is This Answer Correct ? | 14 Yes | 2 No |
Code how to read 5th element of the array?
Explain how to detect record is locked in cobol/400? What is the solution for that?
How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC * EVALUATE TRUE WHEN SQLCODE = +000 MOVE WS-COUNT TO Copybook field WHEN SQLCODE = +100 MOVE ZEROES TO Copybook field
How to detect record is locked in cobol/400?
How we can update data area in cobol 400 program?
Explain how to update data area in cobol 400 program?
what is INPUT PROCEDURE and OUTPUT PROCEDURE?
what is the difference between SEARCH and SEARCHALL?
01 A PIC 9. 01 B PIC 99V1. 01 C PIC 99. MOVE 1 TO A. MOVE 0.2 TO B. COMPUTE C ROUNDED TO 3/3 + A.
Explain the types of perform?
define comp?
How u detect record is locked in Cobol/400 ? Wat is the solution for that ?