IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

exec macro in the end of edit


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anatol

Active User


Joined: 20 May 2010
Posts: 121
Location: canada

PostPosted: Fri Sep 22, 2017 5:10 am
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: 1306
Location: Vilnius, Lithuania

PostPosted: Fri Sep 22, 2017 11:33 am
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: 121
Location: canada

PostPosted: Fri Sep 22, 2017 4:37 pm
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: 121
Location: canada

PostPosted: Fri Sep 22, 2017 5:09 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Sep 22, 2017 5:42 pm
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: 121
Location: canada

PostPosted: Fri Sep 22, 2017 6:09 pm
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

Global Moderator


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

PostPosted: Fri Sep 22, 2017 9:35 pm
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

Global Moderator


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

PostPosted: Fri Sep 22, 2017 9:39 pm
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: 121
Location: canada

PostPosted: Fri Sep 22, 2017 10:03 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts Need help to resolve a hard edit COBOL Programming 8
Search our Forums:

Back to Top