Option O. Stored Procedures
Use the Stored Procedures panel to display information about the stored procedures in the Db2 catalog.
Select option O on the System Catalog panel to display the Stored Procedures panel, as shown in the following figure.
The following primary command is valid on this panel:
- GRANT
- Issues a GRANT command on multiple stored procedures. Tip: The GRANT command operates on each row that is displayed in the table. If you want to omit some of the rows before you issue the command, you can use the minus (-) line command to remove rows from the display. The GRANT command operates only on rows that are listed.
The following columns are on this panel:
- Sel
- Input field where you enter one of the line commands listed on the panel.
- Schema
- Schema of the stored procedure.
- Name
- Name of the stored procedure.
- Version
- The version identifier for a native SQL procedure.
- A
- Identifies the active version of a routine.
- Lang
- Implementation language.
- Parms
- Number of parameters for the stored procedure.
- Res Set
- Maximum number of result sets that can be returned.
- O
- Origin of the routine:
- E
- External.
- Q
- SQL.
- S
- System generated.
- U
- User-defined or built-in function.
- N
- Native SQL procedure.
- SQL
- This field indicates whether SQL statements are allowed, which is one of the following values:
- N
- No SQL statement, SQL is not allowed.
- C
- Contains SQL statements.
- R
- Reads SQL data.
- M
- Modifies SQL data.
- blank
- Not applicable.
- SR
- This field indicates whether the program should remain resident when it ends. This field
contains one of the following values:
- Y
- Program remains resident.
- N
- Program does not remain resident.
- blank
- Not external or user-defined function.
- PT
- Program type, which is one of the following values:
- M
- Main.
- S
- Subroutine.
- blank
- Not applicable.
- CR
- Commit on return. This field contains one of the following values:
- Y
- Unit of work is committed immediately.
- N
- Unit of work continues.
- A
- Autonomous. Only the unit of work from the procedure is committed. Work from the application that calls the procedure is not immediately committed.
- External Name
- Load module name for the stored procedure.