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 ?    6 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

I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?

6 Answers  


Mr.Sidc sirfor my question{how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE} you have answered using MOVE opcode,can you illustrate me with a small example sir very kind of you.

1 Answers   CTS, IBM, iGate,


Can someone tell me tell me what is meant by message wait...?

1 Answers  


in which journalling which attributes are necessary??/

1 Answers   CTS,


1.I have a Batch job, Running for 4 hours, i want to reduce the executing time to 2 hours what should you do?

5 Answers   Cap Gemini,


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

13 Answers   IBM,


if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.

2 Answers   TCS,


what is batch debug in as400?

3 Answers  


program to find the number of objects used in a given program through a display.

2 Answers   IBM,


What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq C MOVE *LOVAL NUM1 50 C MOVE *J-fIVAL NtJM2 52

2 Answers   Fiserv, IBM,


What is the Record Address file. How can we use it in RPG program?

4 Answers  


1.What is the Maximum field length we can declare in RLU?? 2. What is the difference if your designing RLU using DDS and using the option 19 for the RLU??

2 Answers  


Categories