To create a stored procedure definition (SPD) file

  1. From the Solution Explorer, right-click your COBOL project and select Add > New Item from the context menu.
  2. Under Installed, expand COBOL.
  3. In the center pane, select Stored Procedure Definition.
  4. In the Name field, type a name for the stored procedure definition, or accept the default name.
  5. 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.