in reply to Re^3: Add new line character to and ebcdic file
in thread Add new line character to and ebcdic file

I can see '%' in my output file. Here is the sample of how it is being printed:
ð÷ððððððððððòðòòðõñóðóñðóðððóùðòøøð +ðððððððððððððððððððððððððððÃððððððð +ððððððððððððððððððððððððððððððððððà +°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ãðððððððððððð%ð +÷ðòñ@@@@@@@ðñðñõòòðñóðòòôððóòñöóñðöùö@@ +@óðõòõñùòñöððððôùøöóùöõòðùõ@@ð@@ððõùð +ððððððð@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ðò@ððððððððððà +°Ã°Ã°Ã°Ã°Ã°Ã°Ã°Ã@@@@@@@@@@@@@@@@@@@@@@@@@%ð÷ðòñ@@@@@@@ðñðñõ +òòðñóðòòôððóòñöóñðöùö@@@óðõòõñùòñöðð +ðÃ÷ðóøøöòðððóðóôùøöóùöõòðùõ@@ð@@ððõùð +ððððððð@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ðò@ðððððÃ@@@@@@@@@@ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@%
I need the above to be printed line by line not continously.

Replies are listed 'Best First'.
Re^5: Add new line character to and ebcdic file
by Don Coyote (Hermit) on Apr 15, 2013 at 11:40 UTC
    I get an input file, which i read line wise and then convert each record from ascii to ebcdic format. After conversion, i have to write this to an output file. Then read the next record and do the same and print it in the next line.

    Why do you need to print out the ebcdic file into a human readable ascii format? In your op your requirement is to convert the input file record by record into ebcdic lines which you have done. This is then then sent to IBM. IBM will presumably do any necessary conversions into readable formats if they need to.

Re^5: Add new line character to and ebcdic file
by soonix (Chancellor) on Apr 15, 2013 at 19:21 UTC
    Asked in different words: What you want is translate everything to EBCDIC except the newlines so that you can look at the output on your ASCII terminal?