What is LEVEL CHECK?
Answers were Sorted based on User's Feedback
Answer / shobhit
As per my knowledge…
When ever we compiled physical file, the system generates
unique code or level code for identifying the file.
And when ever we compiled RPG program using that file, the
compiler store the Level code of physical file for further
reference. That’s call lever check.
Ex: If you compiled the RPG program and after that made
some changes in physical file, and then call the RPG
program without compiling again it will give the Level
check error.
Please correct me if I am wrong 
| Is This Answer Correct ? | 83 Yes | 7 No |
Answer / mithun paul
Whenever PF is compiled, the system generates unique code
for identifying the file for future reference.
When we compile the Program that uses the PF, will use that
unique code of the PF.
If we now call the program, then its run successfully.But
if we change the PF and recompile the PF, the system
fgenerates a new unique code for that PF. So, our program
Don't have this unique code and hence terminates abnormaly
with a Level Check error.
The solution of Level Check error is when ever it happens
we have to either compile the PF with Level Check parameter
value *NO or we have to compile the program again.
Please let me know anyone, if i am wrong.
Mithun Paul
KMG Infotech Ltd.
Kolkata
| Is This Answer Correct ? | 61 Yes | 3 No |
Answer / abhishek
As per me ...Whenever we compile a PF system generates a Rcd
Fmt level identifier , which is a unique no . for record
format . If this file is being used by some pgm and we
change the structure of our PF for ex. we add one more field
or change some existing field length then and compile the PF
, then system generates a new code for the record FMt .
Level check occur when we change PF structure and do not
compile pgm which is using that file . Because the program
will be using the old identifier.
If we want to check identifier then we can ue command DSPFD
for file and for program we can use , DSPPGMREF to see the
FMt level identifier which is used by program for that file.
| Is This Answer Correct ? | 23 Yes | 0 No |
Answer / cran
Level check occurs @ scenorios like u are working on rpg
program that has a pf file r a display file,
the program is running properly ith the intial unique
generated. u change a pf r dispaly file field length r
position and try to call the rpg program with out compling
the dds u get a level check error ?
level check *no is not a good practise
| Is This Answer Correct ? | 12 Yes | 4 No |
Answer / srujana
When an HLL OBject is not linked with the current DDS then this error is occured called level check Error.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / shriram
level check error is nothing but when we creating pf and
compile it then system generate its own unique code.if we
use this pf in rpg program then system refers this pf using
unique code this unique code is called level check error
| Is This Answer Correct ? | 2 Yes | 12 No |
can you display a empty subfile?
all i need to know about cmpseqdat parameter in cmppfm, how it works and can we retrieve line sequence and date from the output?
How many types of jobs?what is difference between interactive and batch and submited jobs?
how to toggle between single line and multi - line display of a particular record in a subfile?
how to see all source files in a particular library? ex:xyz is a library name a,b,and c..... are source files how to see?
how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?
Q.Hi All friends, I have one Question, I have three fields in display file SUP LOT, ISSUED to Prod and Line Grp. Field SUP LOT is mentioned in one field reference file WRSLT and key field as a key field LP.Fields ISSUED to PROD,Line GRP are mentioned in the another Field reference file WMDTF. So I want to read SUP LOT on the basis of key field LP from the first file WFSLTand then i want ot read another two fields ISSUED to DATE and LINE GRP from second file on the basis of SUP LOT, which i got from first file.Now i want to display these fields in the display file DSPWMMS. but Condition is that 'Supplier Lot,ISSUED to Prod and Line Grp will not be shown if their respective fields are blanks/Zero. Please Let me Know coding part of this senerio and what would be coding for display file to now shown fields if fields are blanks/zero. My mob. no. is 9836300345. Please reply me asap.
What is the difference between non-join logical files and join logical files?
which of the following operations does not zero the field flda defined as 4,0?
What is the type, length of a LDA?
how can u check no of records in a file?
Q.How primary file can be defined in RPG/400?Please write the senario with opcode specification?