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
- Right-click a Stored Procedure in the Model Explorer and select Properties.
The DB2 Stored Procedure Editor opens.
- Select a stored procedure, go to the Parameters tab, and work with the following options:
- Note: Click New 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.
- Click Close.
The DB2 for LUW Stored Procedure Editor closes.
Copyright © 2019 erwin, Inc.
All rights reserved.
|
|