IBM Support

How to convert packed decimal data from EBCDIC to ASCII?

Question & Answer


Question

How to convert packed decimal data from EBCDIC to ASCII?

Answer

Records containing EBCDIC and packed decimal fields cannot be converted using the Connect:Direct translation table. That would corrupt the packed decimal fields.
The only way to convert just the EBCDIC fields leaving the packed decimal fields untouched would be coding a DATAEXIT on the C:D z/OS that would do the translation and sending the file specifying no translation:
SYSOPTS=”(XLATE(NO)” or SYSOPTS=”:xlate=no:”

Another possible solution would be just sending the file specifying no translation and having an application on Windows/Unix doing the translation.

[{"Product":{"code":"SSFGBN","label":"IBM Sterling Connect:Direct for z\/OS"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

FAQ3968

Document Information

Modified date:
17 December 2019

UID

swg21518897