Console and Terminal I/O
Your application can use the
following methods to create an interactive application:
- Use the XMITMSG command. XMITMSG accesses a message from a CMS message repository file or your own message repository file and displays the message. For information on using the XMITMSG command, see Creating and Using Message Repositories.
- Use the Interactive System Productivity Facility (ISPF) and the Display
Management System for CMS (DMS/CMS)
ISPF and DMS/CMS provide services to make your application interactive. For details on ISPF and DMS/CMS, see Creating an Interactive Program.
- Use the CONSOLE, LINERD, and LINEWRT macros.
- CONSOLE
- provides CMS fullscreen console services, which includes 3270 I/O operations. See the z/VM: CMS Application Development Guide for Assembler for details on using the CONSOLE macro to access CMS fullscreen console services.
- LINERD and LINEWRT
- LINERD reads a line of input from the terminal. LINEWRT displays a line of output at a terminal. See the z/VM: CMS Application Development Guide for Assembler for details on using the LINERD and LINEWRT macros.
- Use the CMS Pipelines stage commands FULLSCREEN, BUILDSCR, CONSOLE, FULLSCRQ, FULLSCRS,
APLENCODE, APLDECODE, 3270ENC, or 3270BFRA, which
are operands on the PIPE command.
- FULLSCREEN
- writes 3270 data streams to the virtual console in fullscreen mode or to a 3270 device.
- BUILDSCR
- builds 3270 data streams.
- CONSOLE
- reads from or writes to the terminal in line mode.
- FULLSCRQ
- provides information about the terminal.
- FULLSCRS
- processes the output from FULLSCRQ to make it easier to use.
- APLENCODE
- reads its primary input stream records and translates a single character into a graphic escape character sequence that can be displayed on a 3270 terminal capable of displaying APL/TEXT characters.
- APLDECODE
- reads its primary input stream records that contain data from a 3270 terminal capable of displaying APL/TEXT characters and translates a graphic escape character sequence into a single character.
- 3270ENC
- prepares a 64 character translate table used to convert binary values in the range B'000000' through B'111111' (64 values) to displayable 1-byte graphic characters for placement in a 3270 data stream.
- 3270BFRA
- converts a 2-byte unsigned integer (the format of the 14- and 16-bit buffer addresses) to a 12-bit buffer address, or vice versa.
OS/MVS™ Simulation provides WTO and WTOR macros to support terminal I/O. See the z/VM: CMS Application Development Guide for Assembler for more information.