z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Setting up the sample BINOP program

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

This topic describes the prerequisites of using the sample BINOP program.

Before you begin

You need to know how to access data sets and copy files.

Procedure

Perform the following steps as prerequisites to compiling, linking, and running the sample BINOP program.

  1. Copy the sample data sets from SEZAINST to your user ID.
    From location To location
    SEZAINST(BINOP) user_id.binop.c
    SEZAINST(BINOPCC) user_id.binopc.c
    SEZAINST(BINOPSC) user_id.binops.c
    SEZAINST(BINDEFS) user_id.bindefs.h
    SEZAINST(BINOPI) user_id.binop.idl
  2. Copy the imported data sets from SEZAINST to your user ID.
    From location To location
    SEZAINST(BASEI) user_id.base.idl
    SEZAINST(NBASEI) user_id.nbase.idl
    SEZAINST(RPCI) user_id.rpc.idl
  3. To generate stubs, run NIDL using the following command:
       RUNNIDL BINOP IDL INC(BINDEFS)
  4. Copy the included C header files to your user ID.
    From location To location
    SEZACMAC(BASE) user_id.base.h
    SEZACMAC(NBASE) user_id.nbase.h
    SEZACMAC(NCSDEFS) user_id.ncsdefs.h
    SEZACMAC(TYPES) user_id.types.h
    SEZACMAC(BSDTIME) user_id.bsdtime.h
    SEZACMAC(BSDTOCMS) user_id.bsdtocms.h
    SEZACMAC(BSDTYPES) user_id.bsdtypes.h
    SEZACMAC(IDL@BASE) user_id.idl@base.h
    SEZACMAC(PFM) user_id.pfm.h
    SEZACMAC(NCSRPC) user_id.rpc.h
    'C' library user_id.setjmp.h
    'C' library user_id.stdio.h
    'C' library user_id.time.h
    Note: C library header files depend on the compiler you are using. For example:
    • C370 2.2
    • AD/Cycle C/370™
  5. You must run CPP to change $ to _ before you can compile this code. To run CPP, enter the following commands:
       RUNCPP BINOPS C
       RUNCPP BINOPC C
       RUNCPP BINOP@S C@SSTUB
       RUNCPP BINOP@C C@CSTUB
       RUNCPP BINOP@W C@CSWTCH
       RUNCPP BINOP C

Results

You know you are done when RUNCPP completes with no errors.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014