[comp.lang.asm370] Writting to the console on MVS system.

CCA3407@SAKAAU03.BITNET (03/03/91)

Hi all,

     Could anybody out there tell me how to write to the console, terminal,
on the MVS operating system or can recommends a books or manuals discriping
the way to do it.

Any comment will be appreatuated.
Thanks in advanced.

Saad Al-Harthi <CCA3407.SAKAAU03.BITNET>
Jeddah, SA.

VALDIS@VTVM1.CC.VT.EDU (Valdis Kletnieks) (03/03/91)

On Sat, 2 Mar 91 18:59:12 G+3 <CCA3407%SAKAAU03.BITNET@OHSTVMA.IRCC.OHIO-STATE.E
>     Could anybody out there tell me how to write to the console, terminal,
>on the MVS operating system or can recommends a books or manuals discriping
>the way to do it.

Hmm.. Been a *long* time since I hacked any OS code, but..

To write to the systems console, see the WTO and WTOR macros.
Note that doing this in a large multi-processing environment may be a
Bad Idea, as the systems operator is probably *not* expecting for your
program to communicate with him directly...

To write to the *user* terminal, I think you want the TPUT and TGET (although
this may be a TSO-only rather than an MVS macro...)


                                  Valdis Kletnieks
                                  Computer Systems Engineer
                                  Virginia Polytechnic Institute

TIERNEY@UNSVAX.BITNET (TIM TIERNEY) (03/05/91)

In article <9103021608.AA01018@ucbvax.Berkeley.EDU> you write:
>Hi all,
>
>     Could anybody out there tell me how to write to the console, terminal,
>on the MVS operating system or can recommends a books or manuals discriping
>the way to do it.
>
>Any comment will be appreatuated.
>Thanks in advanced.
>
>Saad Al-Harthi <CCA3407.SAKAAU03.BITNET>
>Jeddah, SA.

Salam Wa Aleykum, Saad.

My name is Tim Tierney, and I work for the University of Nevada.  In order
to write to the MVS console, you need to use the WTO, or WTOR macro.  The
WTO will allow you to just write a message, and the WTOR will allow you to
write a message and wait for a reply from the operator.

By the way, I'm an MVS/ESA systems programmer. I worked in Riyadh from
1984 - 1986 with GOSI in Riyadh, and from 1986 - 1989 with StorageTek in
Kuwait.  I'm thinking about coming back over, and I'm wondering what the
contract situation is over there.  Any information you could provide,
especially if you know of a company needing a systems programmer, would
be appreciated.

Shukran,
Tim

dandrews@bilver.uucp (Dave Andrews) (03/05/91)

In the simplest case, writing to the MVS operator's console can
be accomplished by coding a WTO macro:
   WTO   'text'
where the text can be up to 120 characters, if memory serves me right.
There is a variety of optional parameters that affect message routing,
display attributes and such, which you can get out of the Supervisor
Services SPL.

If you want to write to a terminal (i.e. a TSO terminal), then you'll
need the TPUT macro - or the PUTLINE macro.  Both are documented in
the "Guide to Writing a Terminal Monitor Program or Command Processor".
I haven't used TPUT or PUTLINE in a long time and are sufficiently fuzzy
so that I won't post what I think are the requirements here.

Hope this helps.

kayjs@WAM.UMD.EDU (James Stuart Kay) (03/07/91)

If it's XA, see System Macros and Facilities Volume 2.

Or just code:

     WTO 'your text here'

That's all there is.

Jim Kay