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 |
I have one cl program which calls two rpg programs named a & b. I am loading a run time array in Pgm A and the control comes back to cl pgm. i call pgmb and I want to read the runtime array in pgmb which was loaded in pgma. How it can be acheived. I should not use any intermediate file or dataarea to store the loaded values.
What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq C MOVE *LOVAL NUM1 50 C MOVE *J-fIVAL NtJM2 52
What is the significance of UDATE?
Anyone help me for the below question:- If problem/error occur in *PSSR subroutine,how should I handel it in RPG program.
How to check which are the pgms using 1 perticulate file.? I know there is many tool available for X-reference...but need to know is there any command available in the system...?
RPG/400 number of Records present in a physical file using file information data structure FPF001 IP E DISK F KINFDS INFDS1 IINFDS1 DS I *RECORD RECORD Is this coding correct sir,i have given I P E that is I- input,P-primary file,E-externally described. Primary to use RPG logic cycle,is this the correct method because we have to find number of records present using file information data structure in RPG/400 without doing any input/output operations on the file and also without using DSPFD,SQL. If the above coding is correct means,when i compile the program it gets compiled,but if i call the program it does not return anything,i need number of records,please complete the coding sir.
do you use message subfiles? What are the necessary keywords required coding a message subfile?
1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST IF %ERROR can any body find the wrong please? 2.What builtin function will you use to achieve the following functionality? C QTY IFLT *ZERO C QTY MULT-1 QTY ENDIF
difference betwen keywords and opcodes
How do you code file / field renames in ILE RPG?
What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?
can I touch the array during treatments?