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 TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?
Difference between RESET and CLEAR
how can we find setll setgt chain read reade readp operations are successfull or not,give example.explain in detail.
Maximum how many files declare in rpgle
check existence of one record without using chain or read?
How to declare the pull button in AS/400..
Hi, Can any body tell me ur experience on this questions? Questions: 1.what is the use of SFLRCDNBR other than subfile page display? 2.Which of the following operation cannot be used in conjuction with a file coded as device type disk?
what is the equivalent keyword for CHAIN opcode ??
Need a sql query: retrieve all duplicate records in table?
What you have to do in the display file when you are using message subfile?
How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...
how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.