I have a few hundred Cobol programs writing output using DISPLAY. E.g.[tt]
DISPLAY "COMMIT WORK"[/tt]
The Cobol files are compiled like[tt]
$ COB/ANSI/NOLIST/DISPLAY_FORMATTED xyz.cob[/tt]
The programs are producing simple log files, e.g.:
[tt]
$ DEFINE/USER SYS$OUTPUT xyz_log.dat
$ RUN MM$$EXEC:xyz
[/tt]
When I do "type xyz_log.dat" it looks just fine on the screen:[tt]
CL_STANDARD
TABLE728a
TAB734
CTS1.CL_DATA_TYPE
COMMIT WORK[/tt]
But if I open the file in emacs it looks like:[tt]
CL_STANDARD^M
TABLE728a^M
TAB734^M
CTS1.CL_DATA_TYPE^M
COMMIT WORK^M[/tt]
As you can see the file has an extra [tt]^M[/tt] at end of each line.
Is there a simple way to get rid of these characters?
DISPLAY "COMMIT WORK"[/tt]
The Cobol files are compiled like[tt]
$ COB/ANSI/NOLIST/DISPLAY_FORMATTED xyz.cob[/tt]
The programs are producing simple log files, e.g.:
[tt]
$ DEFINE/USER SYS$OUTPUT xyz_log.dat
$ RUN MM$$EXEC:xyz
[/tt]
When I do "type xyz_log.dat" it looks just fine on the screen:[tt]
CL_STANDARD
TABLE728a
TAB734
CTS1.CL_DATA_TYPE
COMMIT WORK[/tt]
But if I open the file in emacs it looks like:[tt]
CL_STANDARD^M
TABLE728a^M
TAB734^M
CTS1.CL_DATA_TYPE^M
COMMIT WORK^M[/tt]
As you can see the file has an extra [tt]^M[/tt] at end of each line.
Is there a simple way to get rid of these characters?