Change Dynamic Default Collection (QSQCHGDC) API



  Required Parameter Group:


  Optional or Omissible Parameter:


  Default Public Authority: *USE

  Threadsafe: Yes

The Change Dynamic Default Collection (QSQCHGDC) API defines a default collection for unqualified table names in dynamically prepared statements or in dynamically executed statements. The default collection is defined only for the job issuing the API call. The default collection will take precedence over the naming convention and default collection specified when the SQL program was created.


Authorities and Locks

None.


Required Parameter

Default collection name
INPUT; CHAR(18)

The name of the default collection. The following values are allowed:

The API does not validate the existence or the user's authority to the specified default collection. These validations occur on the execution of subsequent SQL prepare or execute operations.


Optional or Omissible 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.


Usage Notes

  1. If a package is created with a DFTRDBCOL, QSQCHGDC has no effect.

  2. In V5R2, the scope of QSQCHGDC was changed from job scoped to activation group scoped.

Error Messages



API introduced: V4R5

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