John,

Yes, the sort can do what you are looking for. For illustrative
purposes, I will assume that the lf is in position 80.  The following
control cards will change an X to an AB.  If the value is not X, it will
be left alone.  If this doesn't help, I'm sure we can work it out:

 SORT FIELDS=COPY 
 OUTREC FIELDS=(1,79,80,1,CHANGE=(2,C'X',C'AB'),NOMATCH=(80,1))

Good luck,
John Reda
Syncsort, Inc.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of John Wallin
Sent: Friday, October 26, 2007 11:59 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Can sort change a lf to crlf?

Can sort change a lf to crlf?  Add a character in other words?
Substitute two 
characters for one?

Regards,
John

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to