MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

need EDIT Macro to replace with newline

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
abc2000
Beginner


Joined: 22 Mar 2006
Posts: 18
Topics: 9

PostPosted: Thu May 11, 2006 5:21 am    Post subject: need EDIT Macro to replace with newline Reply with quote

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
View user's profile Send private message
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Thu May 11, 2006 6:47 am    Post subject: Re: need EDIT Macro to replace with newline Reply with quote

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. Wink

Hope this helps.
Stefan
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group