To check the locks , we use cmd WRKOBJLCK , but how we
confirm whether it's objeck lock / member lock.

I confused with the Lock type and Status values...Can any
body please tell me ...

Answers were Sorted based on User's Feedback



To check the locks , we use cmd WRKOBJLCK , but how we confirm whether it's objeck lock / me..

Answer / naveen chandra joshi

Please make sure that your question is correct !!
If any object is locked then by default its member will
also be locked.
I dont think there is any way to find out whether a member
is also locked or not...
As per my understanding, WRKOBJLCK is sufficient.

Is This Answer Correct ?    9 Yes 2 No

To check the locks , we use cmd WRKOBJLCK , but how we confirm whether it's objeck lock / me..

Answer / sj

Do WRKOBJLCK then press F6 you will get Lock Type(MBR, DATA)

Is This Answer Correct ?    7 Yes 1 No

To check the locks , we use cmd WRKOBJLCK , but how we confirm whether it's objeck lock / me..

Answer / mohdmuzammil

Do WRKOBJLCK and then press it will show the file locks.
after that press F6 you will get the member lock
information.

Is This Answer Correct ?    6 Yes 0 No

To check the locks , we use cmd WRKOBJLCK , but how we confirm whether it's objeck lock / me..

Answer / syam

Better use WRKACTJOB, you can find anyone of user's status
shows WAIT, then otion 11 enter you will get which Object
locked then that wait object type 8 option to find the
record.
or
WRKOBJLCK Objname Libname *file(file type) then enter, you
will get list of all users using same object there you can
find WAIT status.

Is This Answer Correct ?    4 Yes 1 No

To check the locks , we use cmd WRKOBJLCK , but how we confirm whether it's objeck lock / me..

Answer / samul

How we confirm this object is being locked....?

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More RPG400 Interview Questions

are there any useful c runtime apis that I can call from rpg iv?

0 Answers   IBM,


what is the equivalent keyword for CHAIN opcode ??

7 Answers   TCS,


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

0 Answers  


The PGMA calls PGMB.PGMB generates a report.The report should contain the called program name(PGMA).How do i get the called program name in PGMB to print it on the spool file?(calling program name should NOT be hard coded or passed as parameter to called program?

6 Answers  


what is the necessary command needed before OPNQRYF and why?

5 Answers  






we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do tht job with in 3hours.........? so plz post ur answers

8 Answers   Cap Gemini, IBM,


Why we cannot call a service program? If I add a PEP can i call the service program?

1 Answers   DELL,


What is the Record Address file. How can we use it in RPG program?

4 Answers  


parameters cannot be passed in which one??

2 Answers   CTS,


How can a screen field that has changed since the last output operation be detected?

4 Answers   IBM,


How to sort an array in descending in RPG

3 Answers   Google, TCS,


Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


Categories