Change Output Queue (QSPCHGOQ) API


  Required Parameter Group:

1 Qualified output queue name Input Char(20)
2 Changes Input Char(*)
3 Error code I/O Char(*)

  Default Public Authority: *USE

  Threadsafe: No

The Change Output Queue (QSPCHGOQ) API changes the following attributes of the specified output queue:


Authorities and Locks

Output Queue Library Authority
*EXECUTE
Output Queue Authority
The caller needs one of the following authorities:
Output Queue Lock
*EXCLRD

Required Parameter Group

Qualified output queue name
INPUT;CHAR(20)

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.

Changes
INPUT; CHAR(*)

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.

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 Variable Length Record

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


Valid Keys

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


Field Descriptions

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:

*NONE No data transform program is specified.
Data transform program name The name of the data transform program.

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:

*LIBL The library list used to locate the data transform program.
*CURLIB The current library for the job is used to locate the data transform program.

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:

*NONE No user-defined object is specified.
User-defined object name The name of the object defined by the user.

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:

*LIBL The library list used to locate the user-defined object.
*CURLIB The current library for the job is used to locate the user-defined object.

User object type The type of the user-defined object.
The following values are supported:

User object type The user object type can be:

Data area (*DTAARA)
Data queue (*DTAQ)
File (*FILE)
PSF configuration object (*PSFCFG)
User index (*USRIDX)
User queue (*USRQ)
User space (*USRSPC)

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.

*NONE No user driver program is specified.
User driver program name The name of the user-specified driver program.

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:

*LIBL The library list used to locate the user driver program.
*CURLIB The current library for the job is used to locate the user driver program.

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).


Error Messages

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.


API introduced: V3R7
Top | Print APIs | APIs by category