This example connects your system to itself. That is, the tokens travel around the local token ring network before returning to your system.
You can do the example to test an application within your system before testing it in the network. Because all the examples use the same token-ring line description, this example discusses only the controller and device descriptions.
Two sets of controller and device descriptions connect your system to itself. The first set dials (initiates) a connection request, and the second set answers (accepts) the connection request.
In this example, focus on these points:
Dial command set:
CRTCTLAPPC CTLD(DIAL_CD) LINKTYPE(*LAN) APPN(*NO) INLCNN(*DIAL) SWTLINLST(TOKENRING1) ADPTADR(400003190001) DSAP(08) SSAP(04) TEXT('Link from SAP 04 to 08') CRTDEVAPPC DEVD(DIAL_DD) RMTLOCNAME(ANS) LCLLOCNAME(DIAL) CTL(DIAL_CD) MODE(BLANK) APPN(*NO)
Answer command set:
CRTCTLAPPC CTLD(ANS_CD) LINKTYPE(*LAN) APPN(*NO) INLCNN(*ANS) SWTLINLST(TOKENRING1) ADPTADR(400003190001) DSAP(04) SSAP(08) TEXT('Link from SAP 08 to 04') CRTDEVAPPC DEVD(ANS_DD) RMTLOCNAME(DIAL) LCLLOCNAME(ANS) CTL(ANS_CD) MODE(BLANK) APPN(*NO)