Previous Topic: Define DB2 LUW Stored ProceduresNext Topic: Define DB2 LUW Users


Define DB2 LUW Stored Procedure Parameters

Use the DB2 Stored Procedures editor to add, change, view, or delete a DB2 stored procedure for the model. Use the Parameters tab to add parameters for the procedure.

To define DB2 stored procedure parameters

  1. Right-click a Stored Procedure in the Model Explorer and select Properties.

    The DB2 Stored Procedure Editor opens.

  2. Select a stored procedure, go to the Parameters tab, and work with the following options:
  3. Note: Click New New icon in property editors to create a new object on the toolbar to create a parameter.
    Parameter

    Specifies the name of the parameter. The name must be unique to the procedure.

    Type

    Specifies the mode of the parameter. Select from the drop-down list; valid values are Input, Output, and Input Output.

    Physical Data Type

    Specifies the data type of the parameter. Select from the drop-down list.

    Character Type

    Specifies whether the data type is for binary data.

    Default

    Specifies the default value of the parameter. Create or select from the drop-down list.

    Anchored To Type

    Specifies the type of data to which the variable is anchored. Select from the drop-down list; valid values are: Variable, Column, Table Row, View Row, and Cursor Variable.

    Global Variable

    Specifies the global variable to which the selected variable is anchored. This field appears only when you set the value for the Anchored To Type field as either Variable or Cursor Variable.

    Abstract Entity

    Specifies the name of the table for the anchored column. This field appears only when you set the value for the Anchored To Type field as Table Row.

    Column

    Specifies the name of the anchored column for the variable. This field appears only when you set the value for the Anchored To Type field as either Column or View Row.

  4. Click Close.

    The DB2 for LUW Stored Procedure Editor closes.

More Information

Define DB2 LUW Stored Procedures