HP-UX SNAplus2 CPI-C Programmer's Guide (June 2003)
Writing CPI-C Applications
CPI-C Call Summary
Chapter 270
Converting Data Between ASCII and EBCDIC
For Unix The following calls enable a program to translate local data from ASCII
to EBCDIC before sending it to the partner program, or translate data
received from the partner program from EBCDIC to ASCII. The program
needs to use these functions only if the partner program requires data to
be in EBCDIC.
Convert_Incoming (cmcnvi)
This call converts an EBCDIC data string into ASCII.
Convert_Outgoing (cmcnvo)
This call converts an ASCII data string into EBCDIC.
For Windows The program can use the CSV CONVERT verb to convert data between
ASCII and EBCDIC. Refer to the SNAplus2 CSV Programmers Guide for
more information.
End of Section Confirming Receipt of Data and Reporting Errors
The following calls confirm receipt of data or report an error.
Confirmed (cmcfmd)
This call replies to a confirmation request from the partner program. It
informs the partner program that the local program has not detected an
error in the received data. Because the program issuing the confirmation
request waits for a confirmation, the Confirmed call synchronizes the
processing of the two programs.
Set_Error_Direction (cmsed)
This call specifies whether a program detected an error while receiving
data or while preparing to send data. Error direction is relevant only
when a program issues the Send_Error call in Send-Pending state.