Example: Connect a server to another server

This example shows how to create Advanced Program-to-Program Communication (APPC) over token-ring connection from your server to another server.

The name of the local server is LOCAL, and the name of the remote system is REMOTE.

Note: Because all the examples use the same token-ring line description, this example discusses only the controller and device descriptions.

Focus on these points in this example:

TOKENRING2:

This example uses this line description on the remote system.

CRTLINTRN LIND(TOKENRING2) RSRCNAME(TRN_IOA) LINESPEED(16M)
          MAXFRAME(16393) ADPTADR(400003200001) EXCHID(05600000)
          SSAP((04 *MAXFRAME *CALC) (08 *MAXFRAME *CALC))
          TEXT('Line description for 400003200001')               

Controller descriptions:

These examples show the controller descriptions that are used on the local and remote systems.

CRTCTLAPPC CTLD(LOCAL_CD) LINKTYPE(*LAN) SWTLINLST(TOKENRING1)
           RMTCPNAME(REMOTECP) ADPTADR(400003200001) DSAP(04)
           SSAP(08) TEXT('Controller description on LOCAL')

CRTCTLAPPC CTLD(REMOTE_CD) LINKTYPE(*LAN) SWTLINLST(TOKENRING2)
           RMTCPNAME(LOCALCP) ADPTADR(400003190001) DSAP(08)
           SSAP(04) TEXT('Controller description on REMOTE')

Device descriptions:

In the device descriptions, the Remote network identifier (RMTNETID) parameter should match the local network-identifier of the remote system. You must use the Display Network Attributes (DSPNETA) command on the remote system to view the local network-identifier.

CRTDEVAPPC DEVD(LOCAL_DD) RMTLOCNAME(REMOTE) LCLLOCNAME(LOCAL)
           CTL(LOCAL_CD) MODE(BLANK)
           TEXT('APPC device description describing system REMOTE')

CRTDEVAPPC DEVD(REMOTE_DD) RMTLOCNAME(LOCAL) LCLLOCNAME(REMOTE)
           CTL(REMOTE_CD) MODE(BLANK)
           TEXT('APPC device description describing system LOCAL')