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

Mr.Yallamanda Reddy P thanks for your answer sir,can we use test(D) opcode in RPG/400,if yes please help me by eloborating on that answer by writing a sample code for that sir

2 Answers   iGate,


how can we can we the data decimal error?how can we open such file in support

1 Answers  


Can AnyOne tell me how to read join logical file in rpg from starting to end?

2 Answers  


How to read a record from file where there is multiple record occurrence is available?

1 Answers  


1.Are there any errors in the following statement?If so then list them.DTAARA is a data area having a field EMP # and EMPNO is a field in the file EMPPF.Which has one record. READ EMPPF IF %FOUND(EMPPF) IN DTAARA EVAL EMP#=EMPNO OUT DTAARA ENDIF

5 Answers  






Thanks gagan for your answer,i'm new to as400,i don't know embedded sql in rpg.can you send me the coding for the below mentioned question in embedded sql rpg. how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

2 Answers   iGate,


what is the difference between SETON RT & RETURN?

5 Answers  


if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.

2 Answers   TCS,


RPG/400 faqs?

1 Answers   HSBC,


Hi friends, Can you give the solution for the below mention simple code.and explain.what is output D CHR1 S 4A INZ('PEN') D CHR2 S 10A INZ('MYGET') D CHR3 S 8A INZ('GOOD') D CHR4 S 22A INZ C MOVEL CHR1 CHR4 C MOVE CHR2 CHR4 C EVAL CHR4=CHR3 C MOVE CHR1 CHR4

4 Answers  


Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?

1 Answers   TCS,


Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


Categories