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 |
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 .
what is estimation? and what is the level identifier parameter in PF?
What is significance of a file designated as a Primary file in Rpg400 program....also what's use of secoundry file
What is the Record Address file. How can we use it in RPG program?
what is the difference between the cpyf command crtdupobj command?
which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?
how do u track msg in cl pgm???
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
what is mean by *MAP and *DROP?what commands use these two keywords?why are they used?
I know chain keyword retreive records randomly but how chain keyword exactly works internally????
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)
How can you delete a record from a file in RPG without using DELETE oppcode?