Woops. Just realized that (E)JES is a software product. I initially read
it as JES 4.5, not (E)JES 4.5.
Don't have it, but the SDSF is a good suggestion that I will try.
Still, thanks Ed.
Tony Thigpen
Tony Thigpen wrote on 12/19/2017 11:27 AM:
Ed,
Thanks. I did find you presentation about it when I googled it. I am
going to read it shortly.
Finding doc for this stuff in z/OS is a *lot* harder than in z/VSE. It
seems to be spread over many manuals whereas in z/VSE they mention
everything in the REXX reference manual.
I am still googling to find
One question. I am at RELEASE z/OS 01.13.00. What version of JES2 am I
running?
Tony Thigpen
Ed Jaffe wrote on 12/19/2017 11:06 AM:
On 12/19/2017 1:31 AM, Tony Thigpen wrote:
I am using CONSOLE ACTIVATE in batch jobs to issue messages to the
operator.
Most of the time, it works flawlessly, but if two jobs are running at
the same time, one of the jobs receives an error on the ACTIVATE ane
the message is never issued.
MCS does not allow two consoles with the same name to be active in the
sysplex at the same time. It does not appear from your example that you
need to inspect the command response. Therefore, you probably don't need
a console at all for this command i.e., you could send it from the
internal console.
To do this using (E)JES, you would replace all of your REXX CONSOLE
stuff with simply:
cmd = "$D M,D=OSCAR."who",'"info"'"
rc = ejesrexx("EXECAPI 0 'I/"cmd"' (TERM")
If you only have SDSF available, you could do it like this:
rc = isfcalls('ON')
cmd.0 = 1
cmd.1 = "$D M,D=OSCAR."who",'"info"'"
address SDSF "ISFSLASH (cmd.) (INTERNAL)"
rc = isfcalls('OFF')
There might also be "freeware" programs on the CBT tape that will issue
a simple MGCR[E] for you. Or you could roll your own. It's only a few
lines of code.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN