The main return code for the panel command is set in the REXX variable, RC. Each level of return code is accompanied by additional information in the form of a reason code and a line number (if applicable). When an error is detected while processing panel source code (location code of 11xx or 12xx) and RC is not 12 or 16, the REXX variable PAN.LINE contains the number of the line in error.