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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is data area and how it is used in rpg program ?

758


How to call one program from another program in RPG? please help me with the code

1264


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

774


what is an online rpg?

733


how do I preserve and clean the array?

677






how do I declare a table or array in rpg iv?

739


How can we override a file during runtime in rpg?

690


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2056


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

496


How to declare the pull button in AS/400..

1884


What is the difference between copybooks and subprocedures in as400?

814


what is the difference between do while and do until?

713


What is a record lock error?

1270


how can I tell when to replace the array?

705


What are the types of identifiers?

574