View previous topic :: View next topic |
Author |
Message |
abc2000 Beginner
Joined: 22 Mar 2006 Posts: 18 Topics: 9
|
Posted: Thu May 11, 2006 5:21 am Post subject: need EDIT Macro to replace with newline |
|
|
need EDIT Macro replace with newline
IN Ultraedit, searching and replacing newline (Carriage Return/Line Feed) characters may be searched for or replaced. To specify the newline characters, use "^p" characters for CR/LF, "^n" for LF only and "^r" for CR only in the dialog.
text:
abcd; efgh; ijlklm
after search ";" replace with "^p"
text changed:
abcd
efgh
ijlklm
in z/os ISPF editor, how to do this? |
|
Back to top |
|
 |
stefan Beginner
Joined: 20 Nov 2003 Posts: 41 Topics: 2 Location: Germany
|
Posted: Thu May 11, 2006 6:47 am Post subject: Re: need EDIT Macro to replace with newline |
|
|
You have to write an edit macro in your preferred language (in my case it's REXX) which does the following:
Code: |
/* rexx */
address isredit
"find x'5e' first"
find_rc = rc
do until find_rc <> 0
"tsplit"
"find x'5e' next"
find_rc = rc
end
exit
|
That's probably not the whole coding, but there should be someting left for you to investigate.
Hope this helps.
Stefan |
|
Back to top |
|
 |
|
|