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 ? | 5 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 |
What is the difference Return and InLr?
3 members in databasefile .how to read records from all the members??
What are the necessary keywords required to code a message subfile?
How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?
1.String operatio such as moving the characters to the variables? 2.what are the building functions for check file longs? 3.which of the following methods will make externally describe file fields available to a program? A: A/copy statement that specifies the library file and member of the field reference file source code B: A data structure definition specification that names the file on the EXTNAME keyword C: A data structure definition specification that names the file on the IMPORT keyword? D: A Definition specification for each desired field with the REFFLD keyword
1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the error through the RPG/400
10 Answers IBM, Tech Mahindra,
I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
Hi guys. Im in AS/400(RPGLE,CLP) from last 1 year.Now i wan to upgrade my Knowledge in AS/400. Suggest me some new fields & courses which falls under AS/400. Waiting for your quick Response.
what is the necessary command needed before OPNQRYF and why?
1.Suppose my file has 10 fields and I want to make the 2nd field Zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation? 2. Assume my file has 100 records and I want to see only first 10 records. Is this possible through LF? 3.I have 3 jobs A B and C. I want to submit B after successful completion of A and want to submit C after successful completion of B. Without using job scheduler or job queue, how can i do that through CL program? 4.What is difference between Bind by copy and bind by reference?
in which journalling which attributes are necessary??/