ILE C/C++ Programmer's Guide

Creating Binder Language Using the RTVBNDSRC Command

The Retrieve Binder Source (RTVBNDSRC) command can automatically create a binder language source file. It retrieves the exports from a module, or a set of modules. It generates the binder language for these exports, and places exports and binder language in a specified file member. This file member can later be used as input to the EXPORT parameter of the Create Service Program (CRTSRVPGM) command.

Note:
After the binder language has been retrieved into a source file member, you can edit the binder language and modify it as needed (for example, if you make changes to a module or if you want to make certain exports unavailable to calling programs).

The syntax for the RTVBNDSRC command is:

RTVBNDSRC MODULE(MYLIB/SEARCH) SRCFILE(MYLIB/QSRVSRC) SRCMBR(*DFT) MBROPT(*REPLACE)

For detailed information on the RTVBNDSRC command and its parameters enter RTVBNDSRC on a command line and press F1 for Help.

The following example shows how to create a binder language source file for module SEARCH, located in library MYLIB, using the RTVBNDSRC command. The source code for module SEARCH is shown in Source Code Files.

RTVBNDSRC MODULE(MYLIB/SEARCH) SRCFILE(MYLIB/QSRVSRC) SRCMBR(ONE)

This command automatically:

  1. Creates a source physical file QSRVSRC in library MYLIB.
  2. Adds a member ONE to QSRVSRC.
  3. Generates binder language from module SEARCH in library MYLIB and places it in member ONE.

Member ONE in file MYLIB/QSRVSRC now contains the following binder language:

Figure 12. Binder Language Source File Generated for Module SEARCH


+--------------------------------------------------------------------------------+
| Columns . . . :    1  71           Browse                    MYLIB/QSRVSRC     |
| SEU==>                                                                  ONE    |
| FMT **  ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7  |
|        *************** Beginning of data ************************************  |
|0000.01 STRPGMEXP PGMLVL(*CURRENT)                                              |
|0000.02 /*********************************************************************/ |
|0000.03 /*   *MODULE      SEARCH       MYLIB        95/06/10  17:34:41       */ |
|0000.04 /*********************************************************************/ |
|0000.05   EXPORT SYMBOL("__ct__6SearchFPc")                                     |
|0000.06   EXPORT SYMBOL("__ct__6SearchFPUc")                                    |
|0000.07   EXPORT SYMBOL("__ct__6SearchFPUci")                                   |
|0000.08 ENDPGMEXP                                                               |
|        ****************** End of data **************************************** |
|                                                                                |
+--------------------------------------------------------------------------------+


[ Top of Page | Previous Page | Next Page | Table of Contents ]