Limited support BMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see BMC AMI Command Center for Db2 13.2

Updating a stored procedure


You can use the BMC AMI Command Center Alter editor to update and test native stored procedures. The Alter editor Procedure tab displays the procedure's code.

NW_Alter_editor_Call_SPE2110.png

Before you begin

To make these changes, you must have the required Db2 privileges.

To update a stored procedure

  1. In the DB2 Navigator perspective, select a native stored procedure.For more information, see Navigating-to-an-object.
  2. On the Tasks toolbar, click Alter alter.png.

    Tip

    You can also right-click the object and select Alter from the menu.

    An Alter editor view is displayed in the Schema Management perspective.

  3. To invoke the stored procedure, click CALL  NW_CALL_procedure.png. Otherwise, proceed to step 6.
  4. In the Parameters dialog box, complete the following fields and click OK:

    Field

    Description

    Commit

    Select Commit or Rollback.

    Parameters Profile

    Select a saved set of values to use as Input Parameters

    Input parameters

    Enter data for each of the parameters listed

    Save

    To save the input parameters as a profile, click Save, enter a name for the profile, and click OK

    The Output tab displays a summary of the stored procedure.

  5. To view results for a specific command, click the relevant View result set.

    Tip

    If the procedure fails to run successfully, click View Messages NW_envelope_o_circle.png to see all error messages, or click NW_envelope_o_circle.png on the Output tab to view error messages for a specific command.

  6. Make any needed changes to the parameters, editable options, and procedure.
  7. To test your changes, click CALL NW_CALL_procedure.png.
  8. In the Parameters dialog box, complete the following fields and click OK:

    Field

    Description

    Execute the Alter statement before calling the procedure

    Select this field to generate and run an ALTER statement for the changes.

    Commit

    Select Commit or Rollback.

    Parameters Profile

    Select a saved set of values to use as Input Parameters.

    Input parameters

    Enter data for each of the parameters listed.

    Save

    To save the input parameters as a profile, click Save, enter a name for the profile, and click OK.

    The Output tab displays a summary of the stored procedure.

  9. To make additional updates, click Refresh alter editor NW_refresh.pngand then return to step 6. 


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*