On 2020-02-03 21:52, Bob Bridges wrote:
I've never used the COMPARE command. (Never used MACRO_MSG, either.) What
message were you expecting from COMPARE?
"Files are the same"
or of course the message that tells me they're not. It would allow me to cancel
the update that in fact isn't an update, there's a "master" REXX exec that fires
off updates of a lot of other execs and edit macros if some key file is changed.
It also updates the change-logs in each of the affected execs, and as we keep a
few generations of older versions around, it's irritating that compares show
that the change-log has been updated, but that there are no other changes. For
now I've worked around it by comparing the (relatively) small number of
lines-to-be changed with what's already there, and cancelling the update if they
are the same.
Robert
--
Robert AH Prins
robert(a)prino(d)org
The hitchhiking grandfather - https://prino.neocities.org/indez.html
Some REXX code for use on z/OS - https://prino.neocities.org/zOS/zOS-Tools.html
> -----Original Message-----
From: ispf-l-l...@nd.edu [mailto:ispf-l-l...@nd.edu] On Behalf Of Robert Prins
Sent: Monday, February 3, 2020 09:11
I've been using this for ages, and in case you've never heard of it:
MACRO_MSG Set or Query the Macro Message switch
The MACRO_MSG assignment statement sets or retrieves the value of the
macro_msg switch, which controls whether macro processing delivers ISPF
messages to the macro.
Syntax
>>--ISREDIT--(varname)-- = --MACRO_MSG----------------------------------><
+-ON--+
>>--ISREDIT--MACRO_MSG-- = --+-----+------------------------------------><
+-OFF-+
varname The name of a variable containing the setting of MACRO_MSG.
ON ISPF messages generated by macro commands are formatted.
OFF ISPF messages are not formatted.
Description
The MACRO_MSG assignment statement sets a switch for subsequent macro
processing. When set ON, any message that is generated by a macro command
is formatted and made available in variables in ZEDILMSG, ZEDISMSG, and
ZEDMSGNO.
This is a diagnostic switch and should only be used to extract messages as
required. Macros that perform operations on many edit lines may experience
a performance degradation if this switch is ON.
Return codes
0 Normal completion
20 Severe error
I now wanted to use it to get at the message set by the "COMPARE" command, as
that just returns RC=0, no matter (differences or no differences) what, but in
this case all three above mentioned variables come back as 8-character blank
strings. Am I doing something wrong, or is this a bug?
Replies please to IBM-MAIN only (I cross-posted this also to ISPF-L)
--
Robert AH Prins
robert.ah.prins(a)gmail.com
The hitchhiking grandfather - https://prino.neocities.org/indez.html
Some REXX code for use on z/OS - https://prino.neocities.org/zOS/zOS-Tools.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN