Use
The call CMCNVO converts a data buffer from ASCII to EBCDIC. It uses the library function LIB$TRAASCEBC.
Activities
Syntax
CMCNVO (buffer, length, rc)
Parameters
buffer
Buffer to be converted
length
Number of characters to be converted (input value)
rc
Return code
CM_OK: Routine was executed without errors.
The return code contains the same value as rc.

(for UNIX)
Under UNIX, you can define your own conversion table. The SAP standard tables are contained in Conversion Tables EBCIDC « ASCII.