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

Maximum how many files declare in rpgle

3 Answers   TCS,


How do you find whether a job is a batch job or interactive?

4 Answers  


What is the difference between iter and do?

0 Answers  


what is the equivalent keyword for CHAIN opcode ??

7 Answers   TCS,


Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any

2 Answers   Satyam,






1.CA(command Atention key)& CF(command Function key) difference with example?Please can any body tell me in real time exp? 2.Can any body tell me some mandatery function keys using while creating any screen with use of SDA-FUNCTION kEYS?

5 Answers   HCL,


suppose we have 10 members in physical file and i have to use 4 out of 10 so how can we read this in RPG

3 Answers   TCS,


1.How can you search an entire source file for a particular field name? 2.How can you find the differences between two versions of the source for the same program? 3.What is a hidden field as it relates to a sub file? 4.How do you display a sub file that has no records in the sub file?

8 Answers   HCL,


How to declare the more than one file in cl/400.

13 Answers   IBM,


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?

1 Answers  


how do I do concatenation in rpg iv, like I do in cl?

1 Answers   IBM,


How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??

1 Answers  


Categories