EDTF and End-of-Line Delimiters
July 26, 2006 Hey, Ted
I have an IFS file whose lines are terminated with a carriage-return and line-feed combination. I need them to have a line-feed character only. Is there a quick way to strip out those carriage-return characters?
Here’s an easy way that has worked for me.
First, make a backup copy of the file, in case something goes wrong. Now, use the Edit File (EDTF) command from a CL command line to open the file.
Press F15 to display the EDTF options screen. Key 5 in the Selection blank (the first entry field on the display). Tab to the last question on the display, Stream file EOL option, and change *CRLF to *LF. Press F12 to exit the display, F2 to save, and F3 to exit.