In using Netview to trap a message and send to a CList, I am having difficulty creating the logic that will execute a command the first time this message is trapped; THEN wait 15 minutes (even if that message is issued 10,20,etc. more times) before executing that command again.
The Netview REXX documentation describes a WAIT statement.
The closest i'm getting, once the message is trapped, is issuing the command then Waiting (60 seconds for testing purposes). The problem is, after 60 seconds, any subsequent times the message has been trapped, the command is executed...
This is what i have so far in the CList member (that is called once the message is trapped via the automation table)
(the message is parsed into variables)
SELECT
WHEN V1 = 'IEEXXXX' THEN DO
'WTOH 'V1 V2 V3
WAIT 60
END
OTHERWISE
END
Like I described, the above code simply waits 60 seconds, then issues any WTOH that has happened in the meantime. I need a way to simply disregard the IEEXXXX message until 60 seconds is up.
Thanks in advance.