Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to prompt message to console and wait for reply via REXX?

1,003 views
Skip to first unread message

denggh

unread,
Jul 12, 2008, 8:18:24 AM7/12/08
to
I need to write a REXX exec, It first send a message "is it OK? reply 'Y' to confirm and 'N' to cancel" to console, then wait for tso user to reply it, when user reply 'Y', I continue my processes.

It just like "DISPLAY TO CONSOLE" & "ACCEPT FROM CONSOLE" statments in COBOL, But I don't know how to achieve it in REXX.

my REXX exec will be invoked by IRXJCL or IJKEFT01 program.


Best regards!

Denggh

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX

Lindy Mayfield

unread,
Jul 12, 2008, 8:33:02 AM7/12/08
to
I did a Google search (because I knew things were out there) on: rexx function wto wtor

And found this:
http://www.sscmainframe.com/freeware.htm

On this page is ALXWTOR which should meet your needs.

HTH,
Lindy

Lizette Koehler

unread,
Jul 12, 2008, 9:40:26 AM7/12/08
to
Thanks Lindy,

There seems to be several interesting pieces of REXX code on this site.

Lizette

Robert Zenuk

unread,
Jul 12, 2008, 12:10:27 PM7/12/08
to
Bill's Automation tools are great for the small shop looking for a usable
freebie. I have used them in a couple consulting engagements.

I also have a REXX Function Package I can send that does this and many more
things (see below). It was originally written by Salvador Carasco of Spain
and an old version of it is on the CBT Tape. That version does not have the
WTOR enhancements (or a few other things he did on request). After he made
the enhancements I lost contact with him. Unfortunately, I don't have it on my
laptop, but will forward it when I get home. Please reply OFF-LIST if you
want a copy.

This is the function list from his $$INDEX member.

_IRXF@DAI_ (mailto:IRXF@DAI) Rexx function - Get Dasd information
_IRXF@CSI_ (mailto:IRXF@CSI) Rexx function - Catalog Search Interface
_IRXF@DLY_ (mailto:IRXF@DLY) Rexx function - Delay
_IRXF@EDM_ (mailto:IRXF@EDM) Rexx function - Edit and mask
_IRXF@ENQ_ (mailto:IRXF@ENQ) Rexx function - Enq/Deq
_IRXF@MAT_ (mailto:IRXF@MAT) Rexx function - Match source/pattern
_IRXF@MOD_ (mailto:IRXF@MOD) Rexx function - QEdit capabilities
_IRXF@MON_ (mailto:IRXF@MON) Rexx function - Progress Barr
_IRXF@SRT_ (mailto:IRXF@SRT) Rexx function - Calling Sort from Rexx
_IRXF@U34_ (mailto:IRXF@U34) Rexx function - Read tape units UCBs
_IRXF@VSK_ (mailto:IRXF@VSK) Rexx function - Vsam KSDS rexx interface
_IRXF@WTO_ (mailto:IRXF@WTO) Rexx function - WTO/WTOR
_IRXF@DOM_ (mailto:IRXF@DOM) Rexx function - Delete Operator Message
_IRXF@CA1_ (mailto:IRXF@CA1) Rexx function - Get CA1 volume information
_IRXF@VST_ (mailto:IRXF@VST) Rexx function - Verify Started Task
IRXFLOC Rexx Package
IRXFLOC$ Rexx Package - Documentation
IRXFLOCJ Rexx Package - Compile job
IRXFMONI Progress Barr program.
IRXFMONP ISPF Panel for Progress Barr.

ISFPSAM$ Spool Access Method - Documentation
ISFPSAMC Spool Access Method - Interface Rexx - S.A.M
ISFPSAMP Spool Access Method - Parm list macro
ISFPSAMR Spool Access Method - Main Module
ISFPSAM1 Spool Access Method - Rexx Example

UTILMATC Utilities - Match Source/Pattern

Here is how his L_WTO function works:

L_WTO.

Write to operator. WTO/WTOR
L_WTO("MSG"=,"R|B"!=,"S"!)
MSG max 122 chars.
"R" reply required.
"B" 'Bold' wto. (Wto with descriptor code 12, White-non rollable)
"S" Supervisor State. Suppress "+" in WTO text.
Return = 1 - OK
Message identification number - For "Bold" wtos.
Reply Information (up to 118) - For "Replys" wtos.(WTORs)

|retc = L_WTO("BEGIN PROCESS")
|wton = L_WTO("Initialization....","B")
|if L_WTO("OK TO CONTINUE","R") = "OK" then do

It is a ZIP file and comes with no warranties. I found his example files
pretty self explanatory.



Rob




In a message dated 7/12/2008 6:40:22 A.M. US Mountain Standard Time,
star...@MINDSPRING.COM writes:

Thanks Lindy,

Lizette


**************Get the scoop on last night's hottest shows and the live music
scene in your area - Check out TourTracker.com!
(http://www.tourtracker.com?NCID=aolmus00050000000112)

denggh

unread,
Jul 14, 2008, 9:20:53 AM7/14/08
to
Thanks. That's very useful for me, and I have finished my Rexx program with it.

------------------
denggh
2008-07-14

-------------------------------------------------------------
发件人:Lindy Mayfield
发送日期:2008-07-12 20:33:05
收件人:TSO-...@VM.MARIST.EDU
抄送:
主题:Re: how to prompt message to console and wait for reply via REXX?

denggh

unread,
Jul 14, 2008, 9:25:37 AM7/14/08
to
Rob,
Thanks for your help, I saw many of it on the CBT web!

------------------
denggh
2008-07-14

0 new messages