fhg
Volume 6, Number 28 -- July 26, 2006

EDTF and End-of-Line Delimiters

Published: 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?

--Bob


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.

EDTF STMF('somefile.txt')

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.

--Ted



Sponsored By
PRODATA COMPUTER SERVICES

RSP 4.0 Available Now!
Some of the new features:
Persistent state environment
New editing environment
Automatic file upload
New commands
10 times faster
New functions

All NEW ServerProven products that are virtually FREE with IBM's rebate offering!

Sign up to Win a Video iPod!
800.228.6318
www.prodatacomputer.com



Senior Technical Editor: Ted Holt
Technical Editors: Howard Arner, Joe Hertvik, Shannon O'Donnell, Kevin Vandever
Contributing Technical Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Brian Kelly, Marc Logemann, David Morris
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

LANSA:  An entirely different approach to application modernization and innovation
SafeData:  Cost-effective, subscription-based data protection services for the business community
COMMON:  Join us at the Fall 2006 conference, September 17-21, in Miami Beach, Florida

 


 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement