Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
exec macro in the end of edit

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
anatol

Active User


Joined: 20 May 2010
Posts: 111
Location: canada

PostPosted: Fri Sep 22, 2017 5:10 am    Post subject: exec macro in the end of edit
Reply with quote

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

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1060
Location: Oostende, Belgium

PostPosted: Fri Sep 22, 2017 11:33 am    Post subject:
Reply with quote

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

Active User


Joined: 20 May 2010
Posts: 111
Location: canada

PostPosted: Fri Sep 22, 2017 4:37 pm    Post subject: Reply to: exec macro in the end of edit
Reply with quote

yes, I read and searched - no luck... so decide to ask, but looks like disturb the "gods", sorry
Back to top
View user's profile Send private message
anatol

Active User


Joined: 20 May 2010
Posts: 111
Location: canada

PostPosted: Fri Sep 22, 2017 5:09 pm    Post subject: Reply to: exec macro in the end of edit
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Fri Sep 22, 2017 5:42 pm    Post subject: Reply to: exec macro in the end of edit
Reply with quote

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

Active User


Joined: 20 May 2010
Posts: 111
Location: canada

PostPosted: Fri Sep 22, 2017 6:09 pm    Post subject: Reply to: exec macro in the end of edit
Reply with quote

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

Senior Member


Joined: 01 Sep 2006
Posts: 2086
Location: Silicon Valley

PostPosted: Fri Sep 22, 2017 9:35 pm    Post subject: Reply to: exec macro in the end of edit
Reply with quote

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

Senior Member


Joined: 01 Sep 2006
Posts: 2086
Location: Silicon Valley

PostPosted: Fri Sep 22, 2017 9:39 pm    Post subject: Reply to: exec macro in the end of edit
Reply with quote

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

Active User


Joined: 20 May 2010
Posts: 111
Location: canada

PostPosted: Fri Sep 22, 2017 10:03 pm    Post subject: Reply to: exec macro in the end of edit
Reply with quote

hmmmm , very nice trick, Pedro... I will try , thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us