Description: Contains a row for every routine. (A routine can be a user-defined function, cast function, or stored procedure.)
Tablespace: SYSOBJ
Indexes(Fields):
DSNOFX01(NAME.PARM_COUNT.ROUTINETYPE.PARM_SIGNATURE.SCHEMA.PARM1.PARM2.PARM3.PARM4.PARM5.PARM6.PARM7.PARM8.PARM9.PARM10.PARM11.PARM12.PARM13.
PARM14.PARM15.PARM16.PARM17.PARM18.PARM19.PARM20.PARM21.PARM22.PARM23.PARM24.PARM25.PARM26.PARM27.PARM28.PARM29.PARM30)
DSNOFX02(SCHEMA.SPECIFICNAME.)
ROUTINETYPE
DSNOFX03(NAME.SCHEMA.CAST_FUNCTION.PARM_COUNT.PARM_SIGNATURE.PARM1)
DSNOFX04(ROUTINE_ID1)
DSNOFX05(SOURCESCHEMA.SOURCESPECIFIC.ROUTINETYPE)
DSNOFX06(SCHEMA.NAME.ROUTINETYPE.PARM_COUNT)
DSNOFX07(NAME.PARM_COUNT.ROUTINETYPE.SCHEMA.PARM_SIGNATURE.PARM1.PARM2.PARM3.PARM4.PARM5.PARM6.PARM7.PARM8.PARM9.PARM10.PARM11.PARM12.PARM13.
PARM14.PARM15.PARM16.PARM17.PARM18.PARM19.PARM20.PARM21.PARM22.PARM23.PARM24.PARM25.PARM26.PARM27.PARM28.PARM29.PARM30)
DSNOFX08(JARSCHEMA.JAR_ID)
| Column name | Description | Data type |
|---|---|---|
| SCHEMA | Schema of the routine. | NOT NULL |
| OWNER | Owner of the routine. | NOT NULL |
| NAME | Name of the routine. | NOT NULL |
| ROUTINETYPE | Type of routine: ; F
|
NOT NULL |
| CREATEDBY | Authorization ID under which the routine was created. | NOT NULL |
| SPECIFICNAME | Specific name of the routine. | NOT NULL |
| ROUTINEID | Internal identifier of the routine. | NOT NULL |
| RETURN_TYPE | Internal identifier of the result data type of the function. The column contains a -2 if the function is a table function. | NOT NULL |
| ORIGIN | Origin of the routine: ; E
|
NOT NULL |
| FUNCTION_TYPE | Type of function: ; C
|
NOT NULL |
| PARM_COUNT | Number of parameters for the routine. | NOT NULL |
| LANGUAGE | Implementation language of the routine: ; ASSEMBLE
|
NOT NULL |
| COLLID | Name of the package collection to be used when the routine is executed. A blank value indicates the package collection is the same as the package collection of the program that invoked the routine. | NOT NULL |
| SOURCESCHEMA | If ORIGIN is 'U' and ROUTINETYPE is 'F', the schema of the source user-defined function ('SYSIBM' for a source built-in function). Otherwise, the value is blank. | NOT NULL |
| SOURCESPECIFIC | If ORIGIN is 'U' and ROUTINETYPE is 'F', the specific name of the source user-defined function or source built-in function name. Otherwise, the value is blank. | NOT NULL |
| DETERMINISTIC | The deterministic option of an external function or a stored procedure: ; N
|
NOT NULL |
| EXTERNAL_ACTION | The external action option of an external function or SQL function: ; N
|
NOT NULL |
| NULL_CALL | The CALLED ON NOT NULL INPUT option of an external function or stored procedure: ; N
|
NOT NULL |
| CAST_FUNCTION | Whether the routine is a cast function: ; N
A cast function is generated by DB2 for a CREATE DISTINCT TYPE statement, |
NOT NULL |
| SCRATCHPAD | The SCRATCHPAD option of an external function: ; N
|
NOT NULL |
| SCRATCHPAD_LENGTH | Length of the scratchpad if the ORIGIN is 'E' for the function (ROUTINETYPE='F') and NO SCRATCHPAD is not specified. Otherwise, the value is 0. | NOT NULL |
| FINAL_CALL | The FINAL CALL option of an external function: ; N
|
NOT NULL |
| PARALLEL | The PARALLEL option of an external function: ; A
|
NOT NULL |
| PARAMETER_STYLE | The PARAMETER STYLE option of an external function or stored procedure: ; D
|
NOT NULL |
| FENCED | ; Y
|
NOT NULL |
| SQL_DATA_ACCESS | The SQL statements that are allowed in an external function, SQL function, or stored procedure: ; C
|
NOT NULL |
| DBINFO | The DBINFO option of an external function or stored procedure: ; N
|
NOT NULL |
| STAYRESIDENT | The STAYRESIDENT option of the routine, which determines whether the routine is to be deleted from memory when the routine ends. ; N
|
NOT NULL |
| ASUTIME | Number of CPU service units permitted for any single invocation of this routine. If ASUTIME is zero, the number of CPU service units is unlimited. The column is blank if ROUTINETYPE = 'F' and ORIGIN is not 'E'. If a routine consumes more CPU service units than the ASUTIME value allows, DB2 cancels the routine. | NOT NULL |
| WLM_ENVIRONMENT | Name of the WLM environment to be used to run this routine. The column is blank if ROUTINETYPE = 'F' and ORIGIN is not 'E'. If the ROUTINETYPE = 'P', the value might be blank. Blank causes the stored procedure to be run in the DB2 stored procedure address space. | NOT NULL |
| WLM_ENV_FOR_NESTED | For nested routine calls, indicates whether the address space of the calling stored procedure or user-defined function is used to run the nested stored procedure or user-defined function: ; N
|
NOT NULL |
| PROGRAM_TYPE | Indicates whether the routine runs as a Language Environment main routine or a subroutine: ; M
|
NOT NULL |
| EXTERNAL_SECURITY | Specifies the authorization ID to be used if the routine accesses resources protected by an external security product: ; D
|
NOT NULL |
| COMMIT_ON_RETURN | If ROUTINETYPE = 'P', whether the transaction is always to be committed immediately on successful return (non-negative SQLCODE) from this stored procedure: ; N
If ROUTINETYPE = 'F', the value is blank. |
NOT NULL |
| RESULT_SETS | If ROUTINETYPE = 'P', the maximum number of ad hoc result sets that this stored procedure can return. If no ad hoc result sets exist or ROUTINETYPE = 'F', the value is zero. | NOT NULL |
| LOBCOLUMNS | If ORIGIN = 'E' or 'Q', the number of LOB columns found in the parameter list for this user-defined function. If no LOB columns are found in the parameter list or ORIGIN is not 'E' or not 'Q', the value is 0. | NOT NULL |
| CREATEDTS | Time when the CREATE statement was executed for this routine. | NOT NULL |
| ALTEREDTS | Time when the last ALTER statement was executed for this routine. | NOT NULL |
| IBMREQD | A value of Y indicates that the row came from the basic machine-readable material (MRM) tape. | NOT NULL |
| PARM1 | Internal use only | NOT NULL |
| PARM2 | Internal use only | NOT NULL |
| PARM3 | Internal use only | NOT NULL |
| PARM4 | Internal use only | NOT NULL |
| PARM5 | Internal use only | NOT NULL |
| PARM6 | Internal use only | NOT NULL |
| PARM7 | Internal use only | NOT NULL |
| PARM8 | Internal use only | NOT NULL |
| PARM9 | Internal use only | NOT NULL |
| PARM10 | Internal use only | NOT NULL |
| PARM11 | Internal use only | NOT NULL |
| PARM12 | Internal use only | NOT NULL |
| PARM13 | Internal use only | NOT NULL |
| PARM14 | Internal use only | NOT NULL |
| PARM15 | Internal use only | NOT NULL |
| PARM16 | Internal use only | NOT NULL |
| PARM17 | Internal use only | NOT NULL |
| PARM18 | Internal use only | NOT NULL |
| PARM19 | Internal use only | NOT NULL |
| PARM20 | Internal use only | NOT NULL |
| PARM21 | Internal use only | NOT NULL |
| PARM22 | Internal use only | NOT NULL |
| PARM23 | Internal use only | NOT NULL |
| PARM24 | Internal use only | NOT NULL |
| PARM25 | Internal use only | NOT NULL |
| PARM26 | Internal use only | NOT NULL |
| PARM27 | Internal use only | NOT NULL |
| PARM28 | Internal use only | NOT NULL |
| PARM29 | Internal use only | NOT NULL |
| PARM30 | Internal use only | NOT NULL |
| IOS_PER_INVOC | Estimated number of I/Os that required to execute the routine. The value is -1 if the estimated number is not known. | NOT NULL WITH DEFAULT -1 |
| INSTS_PER_INVOC | Estimated number of machine instructions that required to execute the routine. The value is -1 if the estimated number is not known. | NOT NULL WITH DEFAULT -1 |
| INITIAL_IOS | Estimated number of I/O's that are performed the first time or the last time the routine is invoked. The value is -1 if the estimated number is not known. | NOT NULL WITH DEFAULT -1 |
| INITIAL_INSTS | Estimated number of machine instructions that are performed the first time or the last time the routine is invoked. The value is -1 if the estimated number is not known. | NOT NULL WITH DEFAULT -1 |
| CARDINALITY | The predicted cardinality of the routine, -1 to trigger DB2's use of the default value (10,000). | NOT NULL WITH DEFAULT -1 |
| RESULT_COLS | For a table function, the number of columns in the result table. Otherwise, the value is 1. | NOT NULL DEFAULT 1 |
| EXTERNAL_NAME | The path/module/function that DB2 should load to execute the routine. The column is blank if ROUTINETYPE = 'F' and ORIGIN is not 'E'. | NOT NULL |
| PARM_SIGNATURE | Internal use only | NOT NULL WITH DEFAULT FOR BIT DATA |
| RUNOPTS | The Language Environment run-time options to be used for this routine. An empty string indicates that the installation default Language Environment run-time options are to be used. The column is blank if ROUTINETYPE = 'F' and ORIGIN is not 'E'. | NOT NULL |
| REMARKS | A character string provided by the user with the COMMENT statement. | NOT NULL |
| JAVA_SIGNATURE | The signature of the jar file. ; blank
|
NOT NULL WITH DEFAULT |
| CLASS | The class name contained in the jar file. ; blank
|
NOT NULL WITH DEFAULT |
| JARSCHEMA | The schema of the jar file. ; blank
|
NOT NULL WITH DEFAULT |
| JAR_ID | The name of the jar file. ; blank
|
NOT NULL WITH DEFAULT |
| SPECIAL_REGS | The SPECIAL REGISTER option for a routine. ; I
|
NOT NULL WITH DEFAULT 'I' |
| NUM_DEP_MQTS | Number of dependent materialized query tables. The value is 0 if the row does not describe a user-defined table function, or if no materialized query tables are defined on the table function. | NOT NULL WITH DEFAULT |
| MAX_FAILURE | Allowable
failures for this routine (0-32767). If zero
is specified, the routine will never be
stopped. If no value is specified for this
routine, the default will be -1 to indicate that the DB2 installation
parameter (STORMXAB) will be used.
|
NOT NULL WITH DEFAULT -1 |
| PARAMETER_CCSID | A CCSID that specifies how character, graphic, date, time, and timestamp data types for system generated parameters to the routine such as message tokens and DBINFO should be passed. The value is dependent on the encoding scheme specified implicitly or explicitly for the PARAMETER CCSID clause defined at the system for that encoding scheme. The following list describes the CCSID for each encoding scheme: ; ASCII
A value of zero means that the CCSIDs used are those CCSIDs for the encoding scheme of other string or datetime parameters in the parameter list or RETURNS clause CCSID clauses, or the value in the DEF ENCODING SCHEME on installation panel DSNTIPF. |
NOT NULL WITH DEFAULT |
Adapted from material found in the IBM DB2 Universal Database for z/OS V8 SQL Reference (SC18-7426-02).