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


Linking the NCSSMP program

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

This topic describes the steps of linking the NCSSMP program.

Before you begin

You need to have completed the steps in Setting up the NCSSMP program and Compiling the NCSSMP program.

In order for the program to link correctly, you must make changes to the EDCL cataloged procedure. For more information about the procedure, see z/OS XL C/C++ User's Guide.

Procedure

Perform the following steps to link-edit your program.

  1. Remove the OUTFILE parameter.
  2. Add the following statements after the //SYSLIB DD statement:
           //      DD  DSN=SEZALIBN,DISP=SHR
           //      DD  DSN=SEZACMTX,DISP=SHR
  3. Add the following //USERLIB DD statement:
           //USERLIB  DD DSN=user_id.OBJ,DISP=SHR
  4. Replace the //SYSLIN DD statement with the following:
           //SYSLIN   DD  DSN=user_id.OBJ(&MEM),DISP=SHR
           //         DD  DSN=user_id.LOADLIST(&MEM),DISP=SHR
  5. Include the following when you link-edit your application code, because not all entry points are defined as external references in SEZALIBN.
              INCLUDE SYSLIB(RPC@S)
              INCLUDE SYSLIB(RPC@SEQ)
              INCLUDE SYSLIB(RPC@UTIL)
              INCLUDE SYSLIB(SOCKET)
  6. Replace the //SYSLMOD DD statement with the following:
           //SYSLMOD   DD  DSN=user_id.LOAD(&MEM),DISP=SHR
  7. Create one member of the partitioned data set userid.LOADLIST by adding the following lines to the data set NCSCLNT1.
               INCLUDE SYSLIB(RPC@S)
               INCLUDE SYSLIB(RPC@SEQ)
               INCLUDE SYSLIB(RPC@UTIL)
               INCLUDE SYSLIB(SOCKET)
               INCLUDE USERLIB(NCSSMP@C)
               INCLUDE USERLIB(NCSSMP@W)
               MODE AMODE(31)
               ENTRY CEESTART
  8. Create a second member of the partitioned data set userid.LOADLIST by adding the following lines to the data set NCSSERV1.
               INCLUDE SYSLIB(RPC@S)
               INCLUDE SYSLIB(RPC@SEQ)
               INCLUDE SYSLIB(RPC@UTIL)
               INCLUDE SYSLIB(SOCKET)
               INCLUDE USERLIB(NCSSMP@S)
               MODE AMODE(31)
               ENTRY CEESTART
  9. Submit the link-edit job at the SDSF command panel, by entering the following:
           /s EDCL,MEM=NCSCLNT1
           /s EDCL,MEM=NCSSERV1

Results

You know you are done when no errors are received.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014