- From the Solution Explorer, right-click your COBOL project and select
Add > New Item from the context menu.
- Under
Installed Templates, click
COBOL.
- In the center pane, select
Stored Procedure Definition.
- In the
Name field, type a name for the stored procedure definition, or accept the default name.
- Click
Add.
Visual Studio adds the stored procedure definition file and a skeleton COBOL program to your project; then opens the stored procedure definition file in the text editor.
Note: You can also generate a stored procedure definition file and COBOL skeleton program from an extracted DB2 schema using the HCOSS Generate SPD File tool. When migrating from DB2 using HCOSS, this is the preferred method.