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


Linking the sample BANK program

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

This topic describes the steps of linking the BANK program.

Before you begin

You need to have completed the steps in Setting up the sample BANK program and Compiling the sample BANK 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 lines:
           //SYSLIN   DD  DSN=user_id.OBJ(&MEM),DISP=SHR
           //         DD  DSN=user_id.LOADLIST(&MEM),DISP=SHR
  5. Include the following lines 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 line:
           //SYSLMOD   DD  DSN=user_id.LOAD(&MEM),DISP=SHR
  7. Create one member of the partitioned data set user_id.LOADLIST by adding the following lines to the data set BANK:
               INCLUDE SYSLIB(RPC@S)
               INCLUDE SYSLIB(RPC@SEQ)
               INCLUDE SYSLIB(RPC@UTIL)
               INCLUDE SYSLIB(SOCKET)
               INCLUDE USERLIB(BANK@C)
               INCLUDE USERLIB(BANK@W)
               INCLUDE USERLIB(UTIL)
               INCLUDE USERLIB(UUIDBIND)
               MODE AMODE(31)
               ENTRY CEESTART
  8. Create a second member of the partitioned data set user_id.LOADLIST by adding the following lines to the data set BANKD:
               INCLUDE SYSLIB(RPC@S)
               INCLUDE SYSLIB(RPC@SEQ)
               INCLUDE SYSLIB(RPC@UTIL)
               INCLUDE SYSLIB(SOCKET)
               INCLUDE USERLIB(BANK@S)
               INCLUDE USERLIB(UTIL)
               INCLUDE USERLIB(UUIDBIND)
               MODE AMODE(31)
               ENTRY CEESTART
  9. Submit the link-edit job at the SDSF command panel, by entering the following lines:
           /s EDCL,MEM=BANK
           /s EDCL,MEM=BANKD

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