i)What is the command to lock a file in a program
ii)2. Can you get a level check error in a CL program
Answers were Sorted based on User's Feedback
For 2) If a file is declared in Cl pgm we can get a level
check error in the CL pgm.
Is This Answer Correct ? | 15 Yes | 1 No |
Answer / naveen chandra joshi
The questions asked are:
i)What is the command to lock a file in a program?
ii)Can you get a level check error in a CL program?
Answers:
1) ALCOBJ,
2) Yes,if the file is declared in CL program then we can get Level Check error in case of record level identifier mismatched. I have tried this in the system and then only posting over here.
Regards,
Naveen Chandra Joshi.
+91.9891501280.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / saravan
1) We can lock by using ALCOBJ command. To know about
object locks, use WRKOBJLCK file_name.
2) As every thing (File name, variable) will be taken as
parameter and path will be created each time in CL, we
won't get any level check error.
In RPG/LE, the level Id will be mapped to the program and
so we will get level check error.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / rakesh
1.wenever u use a keyword USROPN in rpg pgm ,ten u r locking
tat file......
2. we wont get level check errors in clle..
Is This Answer Correct ? | 1 Yes | 8 No |
I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?
Mr.Sidc sirfor my question{how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE} you have answered using MOVE opcode,can you illustrate me with a small example sir very kind of you.
Can someone tell me tell me what is meant by message wait...?
in which journalling which attributes are necessary??/
1.I have a Batch job, Running for 4 hours, i want to reduce the executing time to 2 hours what should you do?
How to declare the more than one file in cl/400.
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.
what is batch debug in as400?
program to find the number of objects used in a given program through a display.
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 Record Address file. How can we use it in RPG program?
1.What is the Maximum field length we can declare in RLU?? 2. What is the difference if your designing RLU using DDS and using the option 19 for the RLU??