EBCDIC
A built-in variable that, when set to a numeric value greater than 0, causes input lines to be converted from the various forms of EBCDIC to the standard ANSI code page. Since a file is always going to be either standard ANSI or one of the EBCDIC code pages, the EBCDIC built-in variable should be set in the BEGIN block to indicate that the script is expecting an EBCDIC file.
Example
# sets the code page to US EBCDIC.
BEGIN {
EBCDIC = 37;
The table below indicates the EBCDIC code page tables that can be translated and the numeric values for each of them:
Supported EBCDIC Codes and Their Numeric Values
Last modified date: 12/03/2024