1825756 Members
2297 Online
109687 Solutions
New Discussion

Line Feed ASCII code

 
Peter Chang_1
New Member

Line Feed ASCII code

Does anyone know how to pass an ASCII line feed control character from a EBCDIC machine.

We are implementing a printer that uses an ASCII line feed control character to end each line of data. However, we are printing from an mainframe application that is EBCDIC based.

Any assistance would be appreciated.
2 REPLIES 2
Dave La Mar
Honored Contributor

Re: Line Feed ASCII code

LF in EBCDIC is % in ascii.
dl
"I'm not dumb. I just have a command of thoroughly useless information."
Rodney Hills
Honored Contributor

Re: Line Feed ASCII code

Since you posted your question to hpux, here is the hpux command to convert from ebcdic to ascii (line feed codes will be added)

dd if=ebcdic_file of=ascii_file conv=ascii,unblock ibs=1024 cbs=80

The dd options are- "if" is the ebcdic input file, "of" is the resulting ascii output file, "ibs" is the block size of the file (sample shows 1024 bytes), and "cbs" is the fixed length record size (sample shows 80 bytes) of each ebcdic record.

-- Rod Hills
There be dragons...