Diagnostic Reference

Diagnostics are written to stderr as they are produced:

[ERROR] INVCALC.rpgle:27:14 - TRN2001: Built-in function %SOMEBIF is not supported
[WARN]  INVCALC.rpgle:31:1 - TRN0201: DATFMT(*MDY) on CTL-OPT uses a 2-digit year (only supports years 1940-2039)

Each line carries the severity, the source location (file:line:column), the diagnostic code, and the message.

There are exactly two severities:

Severity Effect
ERROR Compilation fails. No class file is written for the affected program.
WARN Compilation continues and a class file is written. Under --strict, warnings are promoted to errors and the compile fails.

The compiler reports every error it finds before stopping, so a single run surfaces more than just the first.

These diagnostics are warnings - everything else in this chapter is an error: TRN0014, TRN0017, TRN0201, TRN1057, TRN1063, TRN1064, TRN1065, TRN1068, TRN1069, TRN1070, TRN1071, TRN1072, TRN1080, TRN1081, TRN1090, TRN1539, TRN1547, TRN2010, TRN2050, TRN2139, TRN2142, TRN2143, TRN2144, TRN2155, TRN2158.