This is what I'm trying to accomplish:

I was asked to look at providing an interface between one of our
products that runs in CMS to another of our products that runs in z/OS.
I already have a general-purpose REXX program in CMS that communicates
with the z/OS-based program via REXX sockets. It acts as an agent for
the z/OS program, in that it will issue commands on its behalf, return
results, as well as plug itself into the *MSG and *VMEVENT system
services (a bit like WAKEUP). At the heart of the REXX program is an
event handler that waits on socket events, console events, IUCV events
(converted to MT CMS events by a nucleus extension) and timer events.

The problem I have is that product that the CMS-based product appears to
only return information via the program stack. That prompted me to look
for a way to be told about data arriving on the program stack so that I
could read each line as it arrives from the stack and convert it to an
MT CMS event that my dispatcher loop could deal with.

You've answered my question, the answer being what I suspected (there
not being a way to be notified about data being queued to the stack).
  
It's sounding like I should talk to the people who own this CMS-based
product about having it modified to have the option to use something a
little more sophisticated than the program stack to return information.
That's the next step I'll take if this goes any further (which it
probably won't).

Thanks,
Mark Gillis.

-----Original Message-----
From: The IBM z/VM Operating System [mailto:IBMVM@LISTSERV.UARK.EDU] On
Behalf Of Alan Altmark
Sent: Sunday, 1 May 2011 2:06 AM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: Managing the CMS program stack from a multitasking CMS
application

On Thursday, 04/28/2011 at 05:17 EDT, "Gillis, Mark"
<mark.gil...@ca.com> 
wrote:
> I have a multitasking CMS application that waits for a number of 
different 
> types of events and I would like to add a new event type that
represents 
data 
> from the CMS stack. I thought that the obvious way to do this would be

to start 
> a separate thread that would own the stack and issue an event to
contain 
each 
> line that arrives on the stack. My question is:
> 
> Is there a way to be notified when data is added to the CMS program 
stack? I 
> don?t want to poll, or do anything to cause a read to result to the 
virtual 
> console. I don?t see anything in the CMS Macros and Function
Reference, 
REXX/VM 
> Reference, CMS Callable Services Reference, or the CMS Application 
Multitasking 
> manuals that appear to fit the bill.

There is no built-in event monitor for CMS program stack events.  If you

tell us what you're trying to accomplish, perhaps we can provide some 
guidance.

Alan Altmark

z/VM and Linux on System z Consultant
IBM System Lab Services and Training 
ibm.com/systems/services/labservices 
office: 607.429.3323
mobile; 607.321.7556
alan_altm...@us.ibm.com
IBM Endicott

Reply via email to