Copy AFPDS Resource (QGSCPYRS) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Copy AFPDS Resource (QGSCPYRS) API puts an AFPDS data stream equivalent of the specified AFPDS resource into the specified user space.


Authorities and Locks

User Space Authority
*CHANGE
User Space Library Authority
*EXECUTE
Resource Authority
*USE
Library Authority
*USE
User Space Lock
*EXCLRD
Resource Lock
*SHRRD

Required Parameter Group

Qualified user space name
INPUT; CHAR(20)

The user space that the copy of the AFPDS resource is inserted into. 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 and content of the information returned in the user space.

You must specify the following:


Qualified resource name
INPUT; CHAR(20)

The name of the AFPDS resource to be copied. The first 10 characters contain the resource name and the second 10 characters contain the library name. The user must specify the library name.

The following special values can be used for the library name:


Resource object type
INPUT; CHAR(10)

The object type of the AFPDS resource.

The following values are allowed:


Error code
I/O; CHAR(*)

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


Format of the User Space

The format of the user space consists of:

For details about the user area and generic header fields, see User spaces. The organization of the user space after the header section is dependent on format CPYR0100.

Format CPYR0100 shows the general structure of the user space for format CPYR0100.

Offset values are calculated from the beginning of the user space.

Format CPYR0100 Format CPYR100



Input Parameter Section

For more details about the fields, see Field Descriptions.



Field Descriptions

Format name specified. The format of the user space specified.

Resource library name specified. The name of the library name of the AFPDS resource specified.

Resource name specified. The name of the AFPDS resource specified.

Resource object type specified. The object type of the AFPDS resource specified.

User space library name specified. The library name of the user space specified.

User space name specified. The name of the user space specified.


Header Section

The following table shows the header information returned for the CPYR0100 format.

For more details about the fields, see Field Descriptions.



Field Descriptions

Offset to resource data stream. Locates the data for the resource data stream returned. The offset value is calculated from the beginning of the user space.

Offset to resource information. Locates the data for the resource information returned. The offset value is calculated from the beginning of the user space. This value is zero when the resource object type requested is not *FNTRSC.

Reserved. Reserved for byte alignment.

Resource object library name used. The name of the library of the AFPDS resource used to retrieve the resource.

Resource object name used. The name of the AFPDS resource used to retrieve the resource.

Resource object type used. The object type of the AFPDS resource used to retrieve the resource.

Size of resource data stream. The size, in bytes, of the resource data stream section.

Size of resource information. The size, in bytes, of the resource information section. This value is zero when the requested resource object type is not *FNTRSC.

User space library name used. The library name of the user space used.

User space name used. The name of the user space used.


Resource Information Section

For more details about the fields, see Field Descriptions.



Field Descriptions

Font resource subtype. The type of font resource returned in the user space.

Valid values are:


Pel density. The pel density of the font resource returned in the user space.

Valid values are:



Resource Data Stream Section

The resource data stream section contains the AFPDS data stream of the resource that is to be copied.


Error Messages



API introduced: V3R7

[ Back to top | Print APIs | APIs by category ]