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 |
What Is The Error If We Don't Get Login Screen?
What is the maximum number of times Multiple Occurrences DS can occur in a program?
what is the difference between sflclr and sflinz?
I had ruestion in one of the interview..... If 1 file has more than 1 member and i want to use the 2nd member in the RPG pgm (in RPG400),how can I use this.... I know the possible answers i.e. useing API 'QCMDEXE' or Before calling the pgm I can use OVRDBF for that member... but I dont' want to use both the tips in above scenarion. Does any body tell me how can i use this ....?
Why we are not able to perform insert delete and update operation in Join logical file?
How can we read file using curser? how to define a curser?
What is the symbol used for copying & moving new field in SDA?
What is library is as400? What are the types of library?
The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
Define the purpose of the following code (If you know, how would this be written in RPG ILE) HI LO EQ C *IN66 DOUEQ *OFF C KEY1 CHAIN FILEA 90 66 C 66 CALL PGM1 PRM C ENDDO
how many specifications are there in rpg/400? What are they?