I got part of it figured out, but part of it still puzzles me. If the
calling routine is an Edit macro itself, I can call the external routine
this way:
address ISREDIT macname
That works correctly. But if the user invokes the calling routine with the
"TSO" prefix, ie
==>tso caller
...then any attempt to do an ISREDIT command will return rc=20. Is there a
way to get around this? If I'm in a View or Edit session and type "tso
caller", is there any way to get the CALLER routine to fire up an external
Edit macro to look at the current listing?
(Side hike: It's silly to call it an Edit "macro". These are full-blown
programs, not just macros. The same with VBA programs in MS Office; they go
far beyond "macros".)
---
Bob Bridges, cell
336 382-7313
robhb...@gmail.com
rbri...@InfoSecInc.com
/* A delay is better than a disaster. -Found taped to a departed IS
manager's keyboard */
-----Original Message-----
From: Bob Bridges [mailto:
robhb...@gmail.com]
Sent: Tuesday, January 22, 2019 05:35
I have an Edit macro that is capable of parsing certain information under
the cursor: It determines which of several types of listings it's looking
at, and extracts the information based on the expected format. Now I find
that I want to write another Edit macro that starts the same way.
So what I want to write first is an Edit macro that can fetch that
information and return it to the calling routine. No problem, right?
Except now that I've started on it, I realize I'm uncertain about the syntax
of the call.
I know how to invoke an Edit macro in a Edit or View invocation:
address ISPEXEC 'EDIT DATASET('whatever') MACRO('macname')'
But what about when the listing is already being displayed? If I try
calling it in any of the usual ways...
address TSO macname
<macname>
call value(macname)
...surely the ISREDIT commands won't be available? I'm not sure where to
look for this in the documentation. Has anyone done it before?
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to
LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX