Convert a decimal number to IBM EBCDIC packed decimal format. If for some reason you need to export a number to IBM systems in native format, you can define a SQL Server field as binary(8) and Pack() your decimal number into it. Then IBM mainframes and COBOL/CICS systems can read the numbers from your data base. See Unpack() script if you need to go the other way.
2007-10-02 (first published: 2002-06-20)
15,450 reads