This topic describes the prerequisites of using
the NCSSMP 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 NCSSMP program.
- Copy the sample data sets from SEZAINST to your user ID.
From location |
To location |
---|
SEZAINST(NCSSERV1) |
user_id.ncsserv1.c |
SEZAINST(NCSCLNT1) |
user_id.ncsclnt1.c |
SEZAINST(NCSSMPI) |
user_id.ncssmp.idl |
SEZAINST(NSMPDEFS) |
user_id.nsmpdefs.h |
- Copy the imported data sets from SEZAINST to your user
ID.
From location |
To location |
---|
SEZAINST(RPCI) |
user_id.rpc.idl |
SEZAINST(BASEI) |
user_id.base.idl |
SEZAINST(NBASEI) |
user_id.nbase.idl |
- To generate stubs, run NIDL using the following command:
RUNNIDL NCSSMP IDL INC(nsmpdefs)
- Copy the data sets included by CPP to your user ID.
From location |
To location |
---|
SEZACMAC(NCSDEFS) |
user_id.ncsdefs.h |
SEZACMAC(BSDTOCMS) |
user_id.bsdtocms.h |
SEZACMAC(BASE) |
user_id.base.h |
SEZACMAC(IDL@BASE) |
user_id.idl@base.h |
SEZACMAC(NBASE) |
user_id.nbase.h |
SEZACMAC(LB) |
user_id.lb.h |
SEZACMAC(GLB) |
user_id.glb.h |
SEZACMAC(TYPES) |
user_id.types.h |
SEZACMAC(BSDTYPES) |
user_id.bsdtypes.h |
SEZACMAC(BSDTIME) |
user_id.bsdtime.h |
SEZACMAC(PFM) |
user_id.pfm.h |
C library |
user_id.stdio.h |
C library |
user_id.setjmp.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 NCSSERV1 C
RUNCPP NCSCLNT1 C
RUNCPP NCSSMP@S C@SSTUB
RUNCPP NCSSMP@C C@CSTUB
RUNCPP NCSSMP@W C@CSWTCH
Results
You know you are done when RUNCPP completes with no errors.