RPCGEN compiler
To use RPCGEN, you write a program definition in RPCL, a language similar to a subset of C®, designed for the definition of ONC RPC distributed programs.
To use RPCGEN, you write a program definition in RPCL, a language similar to a subset of C, designed for the definition of ONC RPC distributed programs. The definition defines the data to be transferred and procedures to be used for both client and server. The client application source program is written as though the remote procedure call were a call to a local program. The code to send the call and get the reply are part of the client stub, which is generated by RPCGEN. Similarly the code the server needs to accept the call and send back the reply are part of the server stub, which is also generated by RPCGEN. Figure 1 illustrates the role of RPCGEN in application development.

- Generating pairs of XDR routines, as described in the previous section
- Generating a client stub to be linked with the application for the client system
- Generating header files
CICS ONC RPC does not use the server stub generated by RPCGEN.