Creating a new version of a native SQL stored procedure
Use the following procedure to create a new version of a native SQL stored procedure.
- On the BMC AMI Change Manager for Db2 Main Menu, select WORKID, and press Enter.
- On the WORKID Action Menu, type the name of the WORKID or type a wildcard pattern to display a list of work IDs. Then, select Specify Db2 definitions and press Enter.
- On the Object Specification panel, specify the name of a stored procedure (or use wildcard characters). Then, press Enter.
On the Mixed List panel, type L in the Act column adjacent to the native SQL stored procedure (SPN) or the active native SQL stored procedure (SPNA).
Specify the options for the new version of the native SQL stored procedure.
- At Procedure Version, type a new value for the version. The version must begin with an alphabetic character.
At Add Version, type Y.
- Specify any other options for the procedure.
- Specify additional options for the native SQL stored procedure.
- Type S to select Proc Options.
- At Active, type Y or N to indicate whether the version of the procedure is the active version.
- Specify any other additional options for the procedure.
- Press END.
- To specify the parameters for the native SQL stored procedure, type S to select Parameters.
- On the Procedure Parameter List panel, specify the parameters, and then press END to return to the Create Procedure panel.
- On the Create Procedure panel, to specify the comment for the native SQL stored procedure, type S to select Comment.
- On the Procedure Comment panel, modify the comment, and then press END to return to the Create Procedure panel.
- On the Create Procedure panel, to modify the text for the native SQL stored procedure, type S to select Text.The product invokes the ISPF editor.
- Using the ISPF editor, modify the text. If the body exceeds the width of the screen, you can scroll the panel to the right to provide additional text. Then, press END to return to the Create Procedure panel.
- On the Create Procedure panel, to view the previous text for the native SQL stored procedure, type S to select View Old Text.The product invokes the ISPF browse utility.
- In the ISPF browse utility review the text for the native SQL stored procedure that existed before you made changes. Press END to return to the Create Procedure panel.
- On the Create Procedure panel, to specify the path for the native SQL stored procedure, type S to select Path.
- On the Procedure Package Path panel, modify the path, and then press END to return to the Create Procedure panel.
- Press END.Now that the new version has been created, you can analyze a work ID and execute a worklist.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*