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



i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL pro..

Answer / vaibhav gupta

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

i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL pro..

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

i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL pro..

Answer / avinash

1) ALCOBJ
2) No,not in CLP

Is This Answer Correct ?    5 Yes 3 No

i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL pro..

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

i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL pro..

Answer / ss

in CL , level check is not handle

Is This Answer Correct ?    1 Yes 3 No

i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL pro..

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

Post New Answer

More RPG400 Interview Questions

What is the difference Return and InLr?

3 Answers  


3 members in databasefile .how to read records from all the members??

6 Answers   CTS,


What are the necessary keywords required to code a message subfile?

3 Answers  


How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?

3 Answers   HCL,


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 Answers   CSC, CTS,






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

2 Answers  


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?

0 Answers  


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.

1 Answers   Voltech,


what is the necessary command needed before OPNQRYF and why?

5 Answers  


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?

4 Answers   Virtusa,


in which journalling which attributes are necessary??/

1 Answers   CTS,


Categories