Translates EBCDIC zoned decimal data to ASCII numeric format. This function can be used for translating data from the iSeries™ server for use in ASCII text format.
cwbDT_ZonedToWide
unsigned int CWB_ENTRY cwbDT_ZonedToASCII( char *target, char *source, unsigned long length, unsigned long decimalPosition);
The following list shows common return values.
The caller must make sure that there is adequate space to hold the target information. The high half of the last byte of the zoned data indicates the sign of the number. If the high half-byte is 0xb or 0xd, then a negative number is indicated. Any other value indicates a positive number. This function checks that the high half of each byte of zoned data must be 0xf except for the last byte. The low half of each byte of zoned data must be in the range 0-9. 0 <= decimalPosition < length.