View previous topic :: View next topic
|
Author |
Message |
anatol
Active User
Joined: 20 May 2010 Posts: 121 Location: canada
|
|
|
|
Hi,
I am new in ISPF macro world ...
For example I am editing member and before I close the member I need to change all ~~ to @@ ... so if I put in any line ~~ , when I next time open the member I should see @@ where I type ~~ ... is it possible? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
A yes/no question deserves a yes/no answer: yes.
And this is a forum for experts, and they should RTFM or STFW! |
|
Back to top |
|
|
anatol
Active User
Joined: 20 May 2010 Posts: 121 Location: canada
|
|
|
|
yes, I read and searched - no luck... so decide to ask, but looks like disturb the "gods", sorry |
|
Back to top |
|
|
anatol
Active User
Joined: 20 May 2010 Posts: 121 Location: canada
|
|
|
|
for Prino , I like one of your post: "If you do not have any solution or idea or any information then just stay away for this discussion.
And that's what I will do with every future posting from you on this forum." ... maybe you can apply your advice to yourself? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
why the need to enter ~~ and later on change it to @@ ?
anyway if You want it automated the only way IIRC is to use an INITIAL EDIT macro
and then You will have to enter @@ instead of ~~
since there are no global exits for edit termination You are out of luck
Your alternatives are
1) disable all the ispf edit termination commands and substitute them with Your own edit macros
( remember also that You will have to intercept also the CRATE and REPLACE -
You would not want the CREATED/REPLACED members polluted by the ugly ~~ chars )
2) write an edit macro ( could the same initial edit macro )
and remember to use it before saving or replacing/creating things
3) simpler ...
just remember to "c '~~' '@@' all"
before saving or replacing/creating things
frankly I do not see the use of wasting time writing an edit macro
and ask on a forum for such a simple/irrelevant requirement |
|
Back to top |
|
|
anatol
Active User
Joined: 20 May 2010 Posts: 121 Location: canada
|
|
|
|
Thank you, Enrico ... as always your suggestion if very informative. I think I have to find other solution for my problem. The problem that in IDZ ( former RDZ) in host connect emulator there is no not equal sign - idea was to use ~ but when user close the edit it should be converted to not equal sign. Initial macro is not good for that - it run when you open edit, not when you close the edit. So, will try to find not macro solution and this topic could be closed. Thank you again. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2545 Location: Silicon Valley
|
|
|
|
I have a different but somewhat similar suggestion:
1. set an initial macro
2. in the macro, use DEFINE macro statement to create an alias for END so that it executes a second macro when the END key is pressed.
3. In this other macro, issue the change that you want, then use BUILTIN macro statement to actually do real the END. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2545 Location: Silicon Valley
|
|
|
|
Quote: |
host connect emulator there is no not equal sign |
Did you mean the 'not' sign? You should be able to re-map the keyboard to set shift/6 to be the 'not' sign. (though, I am not an IDz / RDz user) |
|
Back to top |
|
|
anatol
Active User
Joined: 20 May 2010 Posts: 121 Location: canada
|
|
|
|
hmmmm , very nice trick, Pedro... I will try , thanks |
|
Back to top |
|
|
|