Patrick,

The C-library __console2() api gives you everything in the assember API.
Using /dev/console works, but is less flexible.

If you download the free Co:Z toolkit (http://dovetail.com/coz), it includes
a shell command called "wto" that you can use from REXX or a shell script.
It uses the __console2() api.

I've attached below the usage/syntax of the wto command.

Kirk Wolf
Dovetailed Technologies

=======================================================
$ wto

Missing WTO message
USAGE: wto [-r ROUTCDE,...] [-d DESC,...] message

where:
  ROUTCDE:                              DESC:
   1 - Operator Action                   1 - System Failure (*)
   2 - Operator Information              2 - Immediate Action Required (*)
   3 - Tape Pool                         3 - Eventual Action Required (*)
   4 - Direct Access Pool                4 - System Status (*)
   5 - Tape Library                      5 - Immediate Command Response (*)
   6 - Disk Library                      6 - Job Status (*)
   7 - Unit Record Pool                  7 - Task-Related
   8 - Teleprocessing Control            8 - Out-of-Line
   9 - System Security                   9 - Operator's Request
  10 - System/Error Maintenance         10 - Not Defined
  11 - Programmer Information           11 - Critical Eventual Action
Required (*)
  12 - Emulation                        12 - Important Information (*)
  13-128 - See Authorized Asm Ref            (*) - Mutually exclusive

If you omit the ROUTCDE or DESC codes, the system uses the routing code
specified on the ROUTCODE keyword on the DEFAULT statement in the CONSOLxx
member of SYS1.PARMLIB.

NOTE:
  The message will be prefixed by: "BPXM023I (userid)" unless the userid has
access to "BPX.CONSOLE" in the SAF "FACILITY" class.

==================================================================

On Sat, Mar 15, 2008 at 2:39 PM, Patrick O'Keefe <[EMAIL PROTECTED]>
wrote:

> I need to be able to issue a WTO from REXX running under Unix
> System Services on z/OS 1.8 and beyond.  I've been looking the in
> fine manuals and can find next to nothing.  I've searched the IBM-Main
> archives and also find next to nothing.   (That probably implies I've
> searched for the wrong terms.)
>
> The only thing I found was reference to a Unix_console().  I have not
> found where that is documented, but I saw it's use requires uid(0).
> That sounds a bit restrictive for a simple WTO so I suspect this command
> is not what I'm looking for.
>
> I did find a description of BPXICCS, callable from assembler, so I guess
> I could write a small assembler routine to do this but that seems like
> overkill.
>
> Would somebody point me to a sample that does this, or at least
> point me to a manual describing it?
>
> Thanks.
>
> Pat O'Keefe
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to