To build a remote procedure

The following steps are used to install an RPC on the VMS system. (If you are using RMS on Itanium, the options file is the same as that for Alpha users: RMSALPH.OPT.)

 

  1. Determine the appropriate object library

    For RMS, the name is CNXRMSC0.OLB

    For DBMS, the name is CNXDBM0.OLB

    For Rdb, the name is CNXRDBC0.OLB

    Note:
    The '0' at the end of the name is a zero and not the letter O

  2. Make a backup copy of the original object library, for example:
     

$ COPY CNXRDBC0.OLB CNXRDB_ORIG.OLB

  1. Use the appropriate compiler to create an object file, for example:

$ BASIC RPC_

  1. Create a new executable:

    For RMS, the link command is as follows:

    $ LINK/EXE=CNXRMSC0.EXE RPC_.obj CNXRMSC0.OLB/LIB/INCLUDE=(FACTORY), RMSVAX.OPT/OPT


    (For Alpha systems, the options file is called RMSALPH.OPT)

    For Rdb, the link command is as follows:

    $ LINK/EXE=CNXRDBC0.EXE RPC_.obj CNXRDBC0.OLB/LIB /INCLUDE= (FACTORY) , RDBVAX.OPT/OPT


    (For Alpha systems, the options file is called RDBALPH.OPT)

    For DBMS, the link command is as follows:

    $ LINK/EXE=CNXDBMC0.EXE RPC_.obj CNXDBMC0.OLB/LIB /INCLUDE= (FACTORY) , DBMVAX.OPT/OPT


    (For Alpha systems, the options file is called DBMALPH.OPT)

    If the CONNX server was installed as a shared image, replace the image with the new version of the executable. Refer to the appropriate VMS manual for instructions on using the INSTALL utility.

    If you do not have a license to use the VAX BASIC compiler, RPC.BAS can be rewritten in any language available. Descriptor passes the string parameters, while the integer parameters are passed by reference.