Converting between EBCDIC and ASCII

LU 6.2 assumes that the interface between it and the transaction program (or the application subsystem) uses EBCDIC characters where specified by the verb. These values include the transaction program name, the partner LU name supplied on ALLOCATE, the mode name, the user ID, and the user password. If your program stores the incoming names in ASCII, it must be prepared to perform conversions between ASCII and EBCDIC.

Whether a transaction program needs to translate data depends on a private agreement between the partner transaction programs. If your program is communicating with a node that normally uses EBCDIC, you should convert data to EBCDIC as appropriate.

As a convenience, LU 6.2 provides the CONVERT verb, which converts ASCII codes to EBCDIC or EBCDIC codes to ASCII. For more information, see CONVERT.