When a object will be locked & when a record will be
locked? Plz explain.
Answers were Sorted based on User's Feedback
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 |
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 |
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
how can we can we the data decimal error?how can we open such file in support
Can AnyOne tell me how to read join logical file in rpg from starting to end?
How to read a record from file where there is multiple record occurrence is available?
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
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.
what is the difference between SETON RT & RETURN?
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.
RPG/400 faqs?
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
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 ?
Can we found a record existance in a file w/o reading the file?
6 Answers Traitsys Technologies,