From: Magee M. <ma...@cs...> - 2006-02-10 15:14:09
|
I've just re-read my previous post. It does seem confusing now. The school is running redhat linux x64 which I also have at home. *nix/Dos line endings I have an understanding of. The cobol programs I write at school do not output the <cr>'s, just traditional linux line ending <lf>. Tiny cobol 0.63, which I compiled using -m32 with gcc, inserts <cr>s into the output file each and every time I use WRITE print-rec AFTER... If I use ORGANIZATION LINE SEQUENTIAL, they go away but then the lines are not 79 characters long anymore(trailing spaces removed) I know that if I ftp or sftp an output file back to my school account, each <cr><lf> combination will be converted to an <lf>. I also have received a nice text file with some 'sed' options. I am interested in knowing if there is a way to turn these <cr>s off completely, is this something built into tiny cobol that cannot be changed, or the possibility that I have compiled the thing wrong. Marion C. Magee Student/ECU ma...@cs... 918-448-1133 508-421-9681 Marion C. Magee wrote: > I have looked just about to the end of the internet and have not found > any help for this problem: The cobol class I am taken at ECU uses Open > Cobol which does not introduce a <CR> into any record writen to a file > with 'WRITE print-rec' or 'WRITE print-rec AFTER...'. It just leaves a > nice 0x10 each place a line break should be. I've tried different > SELECT ... ORGANIZATION combinations with no luck...Question: Is there a > way to turn this off in Tiny-Cobol? or do I have to manually hex my > output files to remove the 0x13's ? Thanks much > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Tin...@li... https://lists.sourceforge.net/lists/listinfo/tiny-cobol-users |