I\
I\Licensed Materials-Property of IBM
I\
I\
I\Description: Include header file for the error code parameter.
I\
I\Header Files Included: None.
I\
I\Macros List: None.
I\
I\Structure List: Qus_EC_t
I\
I\Function Prototype List: None.
I\
I\Change Activity:
I\
I\CFD List:
I\
I\FLAG REASON LEVEL DATE PGMR CHANGE DESCRIPTION
I\---- ------------ ----- ------ --------- ----------------------
I\$Að= D2862ððð 3D1ð 9312ð1 DPOHLSON: New Include
I\
I\End CFD List.
I\
I\Additional notes about the Change Activity
I\End Change Activity.
I\\\ END HEADER FILE SPECIFICATIONS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
I\Record structure for Error Code Parameter
I\\\\ \\\
I\NOTE: The following type definition defines only the fixed
I\ portion of the format. Varying-length field exception
I\ data is not defined here.
I\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
IQUSBN DS
I\ Qus EC
I B 1 4ðQUSBNB
I\ Bytes Provided
I B 5 8ðQUSBNC
I\ Bytes Available
I 9 15 QUSBND
I\ Exception Id
I 16 16 QUSBNF
I\ Reserved
I\ 17 17 QUSBNG
I\
I\ Varying length
I 17 2ðð QUSBNG .16/
.
.
.
C Z-ADD2ðð QUSBNB
C\
C CALL 'QWDRJOBD'
C PARM QWDBH Receiver Var.
C PARM RCVLEN Length RCVVAR
C PARM FORMAT Format Name
C PARM LFNAM Qual. Job Desc
C PARM QUSBN Error Code

The value placed in the QUSBNG variable .16/ is the message data associated

with the message ID that is identified as the exception. The message data follows

the same format as if you had entered a Receive Message (RCVMSG) command

and requested the message data (MSGDTA) parameter. You can use the Display

Message Description (DSPMSGD) command to determine the layout of the

message data for a particular message ID. When you handle exceptions, the only

information provided is the exception ID and the message data associated with the

3-16 System API Programming V4R1