List Record Formats (QUSLRCD) API


  Required Parameter Group:


  Optional Parameter Group:


  Service Program Name: QUSLRCD

  Default Public Authority: *USE

  Threadsafe: No

The List Record Formats (QUSLRCD) API generates a list of record format information contained within the specified file and places the list in a specified user space. The created list replaces any existing information in the user space.

You can use the QUSLRCD API with database file types, such as *PF, *LF, and *DDMF, and device file types, such as *DSPF, *TAPF, *DKTF, *PRTF, *SAVF, and *ICFF.


Authorities and Locks

User Space Authority
*CHANGE
User Space Library Authority
*EXECUTE
File Library Authority
*USE
File Authority
*OBJOPR
User Space Lock
*EXCLRD
File Lock
*SHRRD

Required Parameter Group

Qualified user space name
INPUT; CHAR(20)

The name of the user space that is to receive 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 library name. You can use these special values for the library name:


Format name
INPUT; CHAR(8)

The format of the information returned. The possible format names are:


For more information, see RCDL0100 List Data Section, RCDL0200 List Data Section or RCDL0300 List Data Section

Qualified file name
INPUT; CHAR(20)

The name of the file whose record format names are placed in the list, and the library in which it is located. The first 10 characters contain the file name, and the second 10 characters contain the library name. You can use these special values for the library name:


Override processing
INPUT; CHAR(1)

Whether overrides are to be processed. The possible values are:



Optional Parameter

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter. If this parameter is omitted, diagnostic and escape messages are issued to the application.


Format of the Generated List

The record format list consists of:

For details about the user area and generic header, see User spaces. For details about the other items, see the following sections. For descriptions of each field, see Field Descriptions.

When you retrieve list entry information from a user space, you must use the entry size returned in the generic header as a displacement to the next list entry. The size of each entry may be padded at the end. If you do not use the entry size, the result may not be valid. For examples of how to process lists, see Examples: APIs and exit programs.


Input Parameter Section



Header Section



RCDL0100 List Data Section



RCDL0200 List Data Section



RCDL0300 List Data Section



Field Descriptions

Buffer size. The user buffer size.

Record text description CCSID. Record text description CCSID.

File creation date. The date of the file in the format CYYMMDDHHMMSS as follows:



File library name specified. The name of the file library specified in the call to the API.

File library name used. The name of the library that contained the file. If the library requested was *LIBL or *CURLIB, this field contains the name of the library where the system found the file.

File name specified. The name of the file specified in the call to the API.

File name used. The name of the file whose record formats are listed. If override processing was requested, this is the actual file.

File text description. The text description of the file.

File text description CCSID. Record text description CCSID.


File type. The type of file found:


Lowest response indicator. The lowest response indicator in the file. The possible values are:


Number of fields. The number of fields contained in this record format. You can use the List Field Description (QUSLFLD) API to retrieve field information about this record.

Override processing. Whether overrides are to be processed. The possible values are:


Record format name. The name of the format used to list records. The possible values are:


Record format name. The name of this record format.

Record length. The length of this record format.

Record text description. The text description of this record format.

Reserved. An ignored field.

Record format type. The type of this record format. The possible values are:


Separate indicator area present. The existence of a separate indicator area. The possible values are:


Starting line number. A starting line number was specified for this record format. The possible values are:


User space library name. The name of the library that contains the user space that is to receive the generated list.

User space name. The name of the user space that is to receive the generated list.


Error Messages




API introduced: V1R3

[ Back to top | Database and File APIs | APIs by category ]