IBM Version 4 Universal Remote User Manual


 
F
Fᑍ Description: This program performs a divide-by- operation
Fᑍ to cause an exception. This exception is
Fᑍ caught using RPG ᑍPSSR support,
Fᑍ and the exception is then logged as a
Fᑍ software error.
F
Fᑍ APIs used: QPDLOGER
F
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
E
Eᑍ Arrays used to extract source line number where error happened
E
E SRC 8 1
E TGT 8 1
I
Iᑍ Error Code parameter include. As this sample program uses
Iᑍ /COPY to include the error code structure, only the first
Iᑍ 16 bytes of the error code structure are available. If the
Iᑍ application program needs to access the variable length
Iᑍ exception data for the error, the developer should physically
Iᑍ copy the QSYSINC include and modify the copied include to
Iᑍ define additional storage for the exception data.
I
I/COPY QSYSINC/QRPGSRC,QUSEC
I
Iᑍ Define Program Status Data Structure
I
IPSDS SDS
I 1 1 PGMNAM
I 11 15STATUS
I 21 28 SRC
I 4 46 EXCPID
I 81 9 LIBNAM
I
Iᑍ Some miscellaneous fields
I
IMISC DS
I B 1 4FAILPT
I B 5 8DATA#
I B 9 12OBJS#
I 13 2 TGT
I 13 2LIN#C
I
Iᑍ DATA represents the data items to report as part of problem
I
IDATA DS 496
I
Iᑍ DATAPT defines (via offset and length values) how to read DATA
I
IDATAPT DS 256
I B 1 4DTAOFF
I B 5 8DTALEN
I
Iᑍ OBJS represents the list of objects to spool as part of problem
I
IOBJS DS 259
I 1 3 OBJ1N
Appendix B. Original Examples in Additional Languages B-117