Retrieve Message File Attributes (QMHRMFAT) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Retrieve Message File Attributes (QMHRMFAT) API provides information about the attributes of a message file.


Authorities and Locks

Message file
*USE
Message file library
*EXECUTE

Required Parameter Group

Message file information
OUTPUT; CHAR(*)

The parameter to receive the message file information. The format of the returned data is specified in the format name parameter.

Length of message file information
INPUT; BINARY(4)

The size of the area to contain the message information, in bytes. If the length specified is larger than the actual size of the message file information parameter, the results may not be predictable. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

The format of the information to be returned. You must use the following format name:


Qualified message file name
INPUT; CHAR(20)

The message file and the library in which the message file is located. The first 10 characters contain the message file name, and the second 10 characters contain the message file library. You can use these special values for the library name:


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


RMFA0100 Format

The following table shows the information returned in the message file information parameter for the RMFA0100 format. For a detailed description of each field, see Field Descriptions.



Field Descriptions

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes of data returned.

Coded character set identifier (CCSID). The coded character set identifier (CCSID) associated with this message file. A special value of 65535 means that no conversions are to occur when adding or retrieving message descriptions from this message file. A special value of 65534 means to use the CCSID associated with the message description when conversions are to occur. For more information about message handler and its use of CCSIDs, see CCSID support for messages.

Current storage size. The current storage size of the message file in bytes.

Increment storage size. The number of bytes added each time the message file is increased in size.

Maximum increments. The maximum number of times the message file can be increased in size.

Message file library used. The actual library name that contains the message file.

Message file used. The name of the message file whose attributes were returned.

Number of increments. The number of times the message file has been increased in size.

Reserved. An ignored field.

Text description. Text that briefly describes the message file.


Error Messages



API introduced: V3R1

[ Back to top | Message Handling APIs | APIs by category ]