The data sets that are used to build a stored procedure
on the z/OS® system have to
be specified in the z/OS build
properties.
The z/OS build properties can be specified
for a particular stored procedure or a set of stored procedures. In
the following example, the build properties are specified on a PDS
so they apply to all stored procedures stored in this PDS. However,
they can also be specified the same way on a member stored in the
PDS.
- Open the COBOL Settings Properties
page.
- Click the Use DB2 (contains EXEC SQL statements) check
box.
- Expand the compilation procedure (ELAXFCOC, by default),
double-click on the step (COBOL, by default), and enter the following
settings:
| Compile Procedure Name: |
Name of your compilation procedure |
| Compile Procedure Step Name: |
Name of the compilation step in your compilation
procedure |
| Listing Output Data Set: |
Name of the library in which the compiler listings
of your stored procedures should be created. This data set is required
for debugging of COBOL stored procedures. |
| Object Deck Data Set: |
Name of the library in which the object decks
of your stored procedures should be created. |
| Copy Libraries: |
Name of the libraries containing the copy members
that are referenced by your stored procedures. |
- Specify the following settings:
| Database Request Module Location: |
Name of the library in which the DBRM of your
stored procedures should be created. |
- Open the PL/I Settings Properties
page.
- Click the Use DB2 (contains EXEC SQL statements) check
box.
- Expand the compilation procedure (ELAXFPL1, by default),
double-click on the step (PLI, by default), and enter the following
settings:
| Compile Procedure Name: |
Name of your compilation procedure. |
| Compile Procedure Step Name: |
Name of the compilation step in your compilation
procedure. |
| Listing Output Data Set: |
Name of the library in which the compiler listings
of your stored procedures should be created. |
| Object Deck Data Set: |
Name of the library in which the object decks
of your stored procedures should be created. |
| Include Libraries: |
Name of the libraries containing the copy members
which are referenced by your stored procedures. |
- Click OK.
- Select Link Options from the list
in the left frame and enter the following settings:
| Linkage Editor Procedure Name: |
Name of your link-edit procedure |
| Linkage Editor Procedure Step Name: |
Name of the link-edit step in your link-edit
procedure |
| Link Libraries: |
Name of the Language Environment® Link Library
and the DB2® Load Library |
| Load Module Location: |
Name of the library in which the load modules
of your stored procedures should be created. |
- Click OK.
Once the stored procedure is created, the "Data sets for
Build" editor page can be used to change the data sets required for
a build. This page contains entry fields for the following:
- Data Set Qualifier for Compiler Errors, which is used to determine
the beginning qualifier for the error feedback XML file that is generated
during a compilation.
- Object Deck Data Set
- Copy Libraries/Include Libraries
- Listing Output Data Set
- Database Request Module Location
- Load Module Location
- Link Libraries