Pathway/iTS TCP and Terminal Programming Guide

Compaq NonStop™ Pathway/iTS TCP and Terminal Programming Guide426751-001
4-1
4
Writing User Conversion Procedures
If you include a USER CONVERSION clause in a screen description entry, a message
description entry, or a SEND MESSAGE statement, you must provide a corresponding
user conversion procedure. The user conversion procedure lets you make your own
validation checks or conversions of data passed between a SCREEN COBOL program
and a terminal screen or intelligent device.
This section presents information about the following topics:
User conversion procedures
User-written user conversion procedures
Screen input procedures
Screen output procedures
3270 key mapping
Intelligent device input procedures
Intelligent device output procedures
User Conversion Procedures
Compaq provides nine user conversion procedures with the Compaq NonStop
Pathway/iTS software: four to convert terminal screen data, four to convert intelligent
device message data, and one to support IBM 3270 attention keys. The data conversion
procedures consist of input and output procedures. The input procedures provide
conversion and data validation; the output procedures provide output conversion. The
key-mapping procedure supports the program attention keys (PA4 through PA10) on an
IBM 3270 (or analogous) terminal. In summary, the user conversion procedures are as
follows:
The five terminal procedures and four intelligent-device procedures exist in the TCP
object library. The TCP calls the specified procedure whenever you include a USER
Conversion Procedures Data
Terminals Screen input Numeric data
Alphanumeric data
Screen output Numeric data
Alphanumeric data
3270 key mapping Attention keys
Intelligent Devices Device input Numeric data
Alphanumeric data
Device output Numeric data
Alphanumeric data