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 |
How do you find whether a job is a batch job or interactive?
I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?
Maximum how many files declare in rpgle
how to run only 10 modules of existing N modules in service program in RPGILE ?
Can you copy the records created by the OPNQRYF to other files and how?
WHAT IS MEANT BY SIGNATURE VAILOTION ERROR
Can we create 300 logical files based on a single physical file using the CRTLF command only once?.
Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?
Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.
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
How Chain operation copies the record's data to the input buffer for the program?
Write a program to display prime numbers between 1 to 100 using RPGLE.