Académique Documents
Professionnel Documents
Culture Documents
Bytes returned defines the length of all information returned in the format. When
you attempt to receive a message and the message is not found, the following
results occur:
• The value of the bytes returned field is 8.
• The value of the bytes available field is 0.
The message severity, identifier, type, and key contain information about the
received message.
The last field in this format contains the values for substitution variables in a
predefined message, or the text of an impromptu message.
The generated list replaces any existing information in the user space. If the user
space is not large enough to contain the data to be returned, the user space is
increased to the maximum user space size allowed (16 MB) or the maximum
amount of storage allowed to the user of the API.
This API has required parameters only, which are shown in Table 42.
Table 42. Required parameter group for QMHLJOBL
The Qualified user space name parameter specifies the user space that receives
the generated list, and the library in which it is located. The first 10 characters
contain the user space name, and the second 10 characters contain the user
space library.
The format of the returned message information is defined by the format name
parameter. The valid format name is LJOB0100.
177
The message selection parameters determine the job message queue and
messages to be selected. For the format name for the message selection
information parameter, you can use JSLT0100 or JSLT0200. The formats are the
same with the exception that the JSLT0200 format allows you to specify the
CCSID for the returned message data.
JSLT0100 format
Table 43 shows the message selection information that can be defined using the
format JSLT0100.
Table 43. JSLT0100 format
List direction specifies the direction to list messages. Valid values are *NEXT or
*PRV.
To identify the job whose messages are to be listed, you can use either job name,
user name and job number, or internal job identifier provided by the List Job
(QUSLJOB) API. The value "*" in a job name is used to identify a current job.
Starting message key specifies a key to begin searching for messages. You can
use these special values for the message key:
'00000000'X Start searching from the oldest message in the queue.
'FFFFFFFF'X Start searching from the newest message in the queue.
At the end of format LJOB0100, one or more selected fields are returned. They
are defined by special identifiers, such as "0302" for a message with replacement
data. The user must specify their number and offset to these fields.
The last field in format LJOB0100 specifies the name of the call message queue
from which the messages are listed. You must use one of these values:
* Messages from every call stack entry of the job are listed.
*EXT Only messages sent to the external message queue (*EXT) of the job
are to be listed.
179
Generic Header Section
64 Byte User Area
181
Header section format
This section contains information about the current values of parameters used by
this invocation of the API. Table 46 shows the layout of the header section format.
Table 46. Header section format
55 56 Reserved Char(2)
LJOB0100 format
Table 47 shows the information returned in the list data section of the user space
for the LJOB0100 format. The offsets listed are from the beginning of the user
space. The structure defined by this format is repeated for each message entry
returned.
Table 47. LJOB0100 format
63 * Reserved Char(*)
These fields repeat for Offset to the next field information returned Integer(10)
each identifier specified.
Length of field information returned Integer(10)
Reserved Char(14)
Data Char(*)
Reserved Char(*)
For the sake of simplicity, we use immediate messages in our examples instead
of predefined messages, which must be defined in the message file.
183