1 | Qualified output queue name | Input | Char(20) |
2 | Changes | Input | Char(*) |
3 | Error code | I/O | Char(*) |
The Change Output Queue (QSPCHGOQ) API changes the following attributes of the specified output queue:
The name of the output queue for which information is changed. The first 10 characters contain the output queue name and the second 10 characters contain the name of the library in which the output queue resides.
The following special values are supported for the library name:
*LIBL | The library list used to locate the output queue. |
*CURLIB | The current library for the job is used to locate the output queue. |
The changes to be made to the specified output queue. The information must be in the following format:
Number of variable length records | BINARY(4) |
Total number of all of the variable length records. | |
Variable length records | Each variable length record contains a keyword plus its associated new value. Refer to Format of the Variable Length Record for the structure of this field. |
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
The following table shows the field structure of the variable length record. For more detail about the fields in the following table, see Field Descriptions.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | BINARY(4) | Length of variable length record |
4 | 8 | BINARY(4) | Key identifier |
8 | 8 | BINARY(4) | Length of new value |
12 | C | CHAR(*) | New value |
Key | Type | Field |
---|---|---|
201 | CHAR(*) | User-defined options |
202 | CHAR(30) | Qualified user-defined object name and type |
203 | CHAR(20) | Qualified user driver program name |
204 | CHAR(20) | Qualified user data transform program name |
205 | CHAR(*) | User-defined data |
Key identifier. The key value associated with the attribute to be changed. Only specific attributes of the output queue can change. Refer to Valid Keys for a list of valid keys.
Length of new value. The length of the new value to be assigned to the attribute.
Length of variable length record. The length of the record.
New value. The value to which a specific attribute is to be set.
Qualified user data transform program name. The qualified transform program name has two parts (each part is CHAR(10)):
User data transform program name | The name of the user-specified data transform program that is
used by the driver program.
The following values are supported:
|
||||
Data transform program library name | The name of the library that contains the data transform
program. The following special values are supported for the library name:
|
Qualified user-defined object name and type. The qualified user-defined object name and type has three parts (each part is CHAR(10)):
User-defined object name | The name of the user-defined object that is used by user
applications or user-specified programs that process spooled files. The following values are supported:
|
||||
User-defined object library name | The name of the library that contains the user-defined
object. The following special values are supported for the library name:
|
||||
User object type | The type of the user-defined object. The following values are supported:
|
Note: The value must be blanks when the name of the user-defined object is *NONE
Qualified user driver program. The qualified user driver program name has two parts (each part is CHAR(10)):
User driver program name | The name of the user-specified driver program that is used to
process the spooled files on the output queue.
The following values are supported: |
||||
User driver program library name | The name of the library that contains the user driver program.
The following special values are supported for the library name:
|
User-defined data. Data defined by the user to be used by user applications or user-specified programs that process spooled files.
The following table shows the layout of the user-defined extended data field:
Type | Field |
---|---|
BINARY(4) | Length of user-defined data.
The values supported range from 0 through 5000. |
CHAR(*) | User-defined data |
User-defined options. The following table shows the layout of the user-defined options field.
Note: To change the user-defined options to *NONE, set the
number of user-defined options to 0.
Type | Field |
---|---|
BINARY(4) | Number of user-defined options
The number of user-defined options for the output queue. Specify a number from 0 to 4. |
CHAR(*) | User-defined options array
An array of options defined by the user to be used by user applications or user-specified programs that process spooled files. Each option is defined as CHAR(10). |
Message ID | Error Message Text |
---|---|
CPF2207 E | Not authorized to use object &1 in library &3 type *&2. |
CPF24B4 E | Severe error while addressing parameter list. |
CPF3CF1 E | Error code parameter not valid. |
CPF3C4D E | Length &1 for key &2 not valid. |
CPF3C81 E | Value for key &1 not valid. |
CPF3C82 E | Key &1 not valid for API &2. |
CPF3319 E | Cannot change parameters specified. A writer is active to output queue &1. |
CPF3330 E | Necessary resource not available. |
CPF34B1 E | Output queue &1 in library &2 not found. |
CPF34D9 E | User defined object type &1 not valid. |
CPF34DA E | Output queue &1 in &2 not changed due to errors. |
CPF8122 E | &8 damage on library &4. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
Top | Print APIs | APIs by category |