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.
- 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 |
- 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 |
- To generate stubs, run NIDL using the following command:
RUNNIDL BINOP IDL INC(BINDEFS)
- 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:
- 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.