When a object will be locked & when a record will be
locked? Plz explain.

Answers were Sorted based on User's Feedback



When a object will be locked & when a record will be locked? Plz explain...

Answer / ps

When file is open in update/add mode file object will be
locked.

When user try to fetch any record from file by setting up
pointer to a record record will get locked.

Is This Answer Correct ?    5 Yes 0 No

When a object will be locked & when a record will be locked? Plz explain...

Answer / syam

When 2 user or more trying to access same record in a PF
record will be locked. While backup file to tape or cd any
user trying to access any lib or file it can be locked

Is This Answer Correct ?    6 Yes 8 No

Post New Answer

More RPG400 Interview Questions

suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .

4 Answers   CSC,


what is estimation? and what is the level identifier parameter in PF?

3 Answers   TCS,


What is significance of a file designated as a Primary file in Rpg400 program....also what's use of secoundry file

1 Answers  


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

4 Answers  


what is the difference between the cpyf command crtdupobj command?

9 Answers   IBM,






which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?

1 Answers  


how do u track msg in cl pgm???

1 Answers   CTS,


can any body correct the following code? Following a procedure which returns the maximum of two numbers.Correct the following code. P GETMAX B D GETMAX PI D NUM1 35 0 D NUM2 45 0 C IF NUM1 > NUM2 C RETURN NUM1 C ELSE C RETURN NUM2 C ENDIF P GETMAX E

1 Answers  


what is mean by *MAP and *DROP?what commands use these two keywords?why are they used?

4 Answers  


I know chain keyword retreive records randomly but how chain keyword exactly works internally????

4 Answers  


How can we read a particular record from the database file which is not having DDS (Flat File). For example, there are 100 records in the flat file. How can we retrive 15th record in RPG/400 program (Without using CL)

6 Answers   CTS, IBM,


How can you delete a record from a file in RPG without using DELETE oppcode?

2 Answers   UST,


Categories