z/OS Communications Server: SNA Programmer's LU 6.2 Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example of a sample LU 6.2 application program

z/OS Communications Server: SNA Programmer's LU 6.2 Guide
SC27-3669-00

This appendix contains the source code of a sample LU 6.2 application program and a console log created from the execution of the sample program.

The source code is designed to generate two sample programs capable of using VTAM® LU 6.2 macroinstruction for communication. The program presented here is designed for a z/OS® operating system. The sample uses the WTO macroinstruction as a trace mechanism to identify various code points being executed.

A console log of the two applications running is displayed after the source code. The console log shows the activity each sample program performs in order to establish conversations, communicate data over the conversations, and terminate two conversations.

In order to better isolate the processing being performed by the two applications, information regarding one application is on the left side of the console log and information regarding the other application is on the right side of the console log. The console log represents the whole run time integrated vertically.

The interaction between the two programs demonstrates an application program:
  • Identifying itself to VTAM
  • Negotiating session limits
  • Processing the ATTN exit routine
  • Allocating and deallocating a conversation
  • Sending and receiving logical records
  • Changing conversation states

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014