You are on page 1of 3

+------------------------------------------------------------------------+

� table 8. contents of the program status data structure �


+------------------------------------------------------------------------�
� from � to � � � �
� (positi�n(positi�ns � � �
� 44-47) � 48-51) � format � length � information �
+--------+--------+--------+---------+-----------------------------------�
� 1 � 10 � char � 10 � program name (same as subfield �
� � � � � location *program). �
+--------+--------+--------+---------+-----------------------------------�
� 11 � 15 � zoned � 5 (zero � status code (same as subfield �
� � � decimal� decimal � location *status). �
� � � � position�) �
+--------+--------+--------+---------+-----------------------------------�
� 16 � 20 � zoned � 5 (zero � previous status code. �
� � � decimal� decimal � �
� � � � position�) �
+--------+--------+--------+---------+-----------------------------------�
� 21 � 28 � char � 8 � rpg/400 source statement sequence �
� � � � � number. �
+--------+--------+--------+---------+-----------------------------------�
� 29 � 36 � char � 8 � name of the rpg/400 routine in �
� � � � � which the exception or error �
� � � � � occurred (same as subfield �
� � � � � location *routine). �
+--------+--------+--------+---------+-----------------------------------�
� 37 � 39 � zoned � 3 (zero � number of parameters passed to �
� � � decimal� decimal � this program (same as subfield �
� � � � position�)location *parms). �
+--------+--------+--------+---------+-----------------------------------�
� 40 � 42 � char � 3 � exception type (cpf for a os/400 �
� � � � � system exception or mch for a �
� � � � � machine exception). �
+--------+--------+--------+---------+-----------------------------------�
� 43 � 46 � char � 4 � exception number. for a cpf �
� � � � � exception, this field contains a �
� � � � � cpf message number. for a �
� � � � � machine exception, it contains a �
� � � � � machine exception number. �
+--------+--------+--------+---------+-----------------------------------�
� 47 � 50 � char � 4 � mi/odt (machine instruction / �
� � � � � object definition template) �
� � � � � number. �
+--------+--------+--------+---------+-----------------------------------�
� 51 � 80 � char � 30 � work area for messages. this �
� � � � � area is only meant for internal �
� � � � � use by the rpg/400 compiler. the �
� � � � � organization of information will �
� � � � � not always be consistent. it can �
� � � � � be displayed by the user. �
+--------+--------+--------+---------+-----------------------------------�
� 81 � 90 � char � 10 � name of library in which the �
� � � � � program is located. �
+--------+--------+--------+---------+-----------------------------------�
� 91 � 170 � char � 80 � retrieved exception data. cpf �
� � � � � messages are placed in this �
� � � � � subfield when location *status �
� � � � � contains 09999. �
+--------+--------+--------+---------+-----------------------------------�
� 171 � 174 � char � 4 � identification of the exception �
� � � � � that caused rpg9001 exception to �
� � � � � be signaled (the called program �
� � � � � failed). �
+--------+--------+--------+---------+-----------------------------------�
� 175 � 198 � � 24 � unused. �
+--------+--------+--------+---------+-----------------------------------�
� 199 � 200 � zoned � 2 � first 2 digits of a 4-digit year. �
� � � decimal� � the same as the first 2 digits of �
� � � � � *year. �
+--------+--------+--------+---------+-----------------------------------�
� 201 � 208 � char � 8 � name of file on which the last �
� � � � � file operation occurred (updated �
� � � � � only when an error occurs). �
+--------+--------+--------+---------+-----------------------------------�
� 209 � 243 � char � 35 � status information on the last �
� � � � � file used. this information �
� � � � � includes the status code, the �
� � � � � rpg/400 routine name, the �
� � � � � statement number, and record �
� � � � � name. it is updated only when an �
� � � � � error occurs. �
+--------+--------+--------+---------+-----------------------------------�
� 244 � 253 � char � 10 � job name. �
+--------+--------+--------+---------+-----------------------------------�
� 254 � 263 � char � 10 � user name from the user profile. �
+--------+--------+--------+---------+-----------------------------------�
� 264 � 269 � zoned � 6 (zero � job number. �
� � � decimal� decimal � �
� � � � position�) �
+--------+--------+--------+---------+-----------------------------------�
� 270 � 275 � zoned � 6 (zero � date (in udate format) the �
� � � decimal� decimal � program started running in the �
� � � � position�)system (udate is derived from �
� � � � � this date). see in topic 12.1.1 �
� � � � � for a description of udate. �
+--------+--------+--------+---------+-----------------------------------�
� 276 � 281 � zoned � 6 (zero � date of program running (the �
� � � decimal� decimal � system date in udate format). �
� � � � position�) �
+--------+--------+--------+---------+-----------------------------------�
� 282 � 287 � zoned � 6 (zero � time of program running in the �
� � � decimal� decimal � format hhmmss. �
� � � � position�) �
+--------+--------+--------+---------+-----------------------------------�
� 288 � 293 � char � 6 � date (in udate format) the �
� � � � � program was compiled. �
+--------+--------+--------+---------+-----------------------------------�
� 294 � 299 � char � 6 � time (in the format hhmmss) the �
� � � � � program was compiled. �
+--------+--------+--------+---------+-----------------------------------�
� 300 � 303 � char � 4 � level of the compiler. �
+--------+--------+--------+---------+-----------------------------------�
� 304 � 313 � char � 10 � source file name. �
+--------+--------+--------+---------+-----------------------------------�
� 314 � 323 � char � 10 � source library name. �
+--------+--------+--------+---------+-----------------------------------�
� 324 � 333 � char � 10 � source file member name. �
+--------+--------+--------+---------+-----------------------------------�
� 334 � 429 � � 96 � unused. �
+------------------------------------------------------------------------+

You might also like