Binding C

When binding the C object module as shown in Figure 1, the binder generates the following definition side-deck:
IMPORT CODE 'BASICIO'   bopen
IMPORT CODE ,BASICIO,   bclose
IMPORT CODE ,BASICIO,   bread
IMPORT CODE ,BASICIO,   bwrite
IMPORT DATA ,BASICIO,   berror

You can edit the definition side-deck to remove any functions or variables that you do not want to export. For instance, in the above example, if you do not want to expose berror, remove the control statement IMPORT DATA ,BASICIO, berror from the definition side-deck.

Note:
  1. You should also provide a header file containing the prototypes for exported functions and external variable declarations for exported variables.
  2. Side-decks are created without newline characters, therefore you cannot edit them with an editor that expects newline characters, such as vi in z/OS UNIX.

For more information on binding C, see z/OS XL C/C++ User's Guide.