Using "dd" command to format EBCDIC file to ASCII in Linux has differences with Solaris.
(Doc ID 2315746.1)
Last updated on SEPTEMBER 21, 2021
Applies to:Linux OS - Version Oracle Linux 6.0 to Oracle Linux 7.4 [Release OL6 to OL7U4]
Oracle Cloud Infrastructure - Version N/A and later
When using 'dd' command to convert a EBCDIC(Extended Binary Coded Decimal Interchange Code) file created in another architecture to ASCII, certain characters could not be converted.
Trying to run the same "dd" command in Solaris or HPUX environments it convert the all the characters if the file was created on those architectures or another (Big-Endians).
How to reproduce the issue (Example):
1) Original EBCDIC is FILE_EBCDIC.report was created in a Mainframe (source) is configured to use IBM-037 (Big Endians).
2) The file EBCDIC was convert on Solaris 10. IN this case it is: prod_FILE_EBCDIC_Solaris.dat
3) Creating an ASCII file in Linux:
On both methods for check We can see that the files has differences.
It can generate issues if the file is opened in another architecture. It could proceed issues in a full environment that include multi-architectures (Solaris - HPUX - IBM - Linux ).
The dd command In Linux is provided in the package coreutils.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document