Monday, September 10, 2012

PL1 ERRORS / MESSAGES COMPILATION TIME

There are five types of messages including errors/warnings etc , that we get while compiling a pl1 program.
They are I - informational, W - warning, S - severe, E - error and U - unrecoverable .

Compiler messages are printed in groups as per these severity levels.

Let's see all the types of messages in detail,

INFORMATIONAL:
Severity Code  :     I
Return code     :     0000
Description      :  The compiled program should run correctly, It probably shows the inefficiency in the code that might be rectified . Generally developers are least bothered about this.



WARNING:

Severity Code  :     W
Return code     :     0004
Description      :  The compiled program should run correctly but it might produce weird results. Generally its   an error in the statement which is syntactically correct. Preferably this should be rectified in order to make the program efficient



ERROR:

Severity Code  :     E
Return code     :     0008
Description      :      Its a simple error that can be fixed by compiler. The compiled program should run correctly but it might produce unexpected results.



SEVERE:

Severity Code  :     S
Return code     :     0012
Description      :      An error that can not be fixed by compiler. If the program is compiled an object module is created which cant be used.



UNRECOVERABLE:

Severity Code  :     U
Return code     :     0016
Description      :      An error that forces termination of the compilation. An object module is not created successfully.