John - thanks for the snippet. I missed that post. But I'm still not understanding what Sergio wants. There is a JES command that seems to do what I think he wants:
$D M Jnnn,'JOB CANCELED BECAUSE IT APPEARS TO BE LOOPING' $C jobname -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Roberts, John J Sent: Thursday, October 06, 2011 10:41 AM To: [email protected] Subject: Re: WTO Sample Program Hal Merritt Posted: >I think we seem to be missing a basic chicken-and-egg issue. If I understand, >the OP >wants to -originate- the message from the console and does not say >who/what is the >intended recipient. I think Sergio is having trouble explaining his requirements, since English is probably his third language. Maybe if he posted his needs in Portugese, we could run it thru Google translate and obtain a better understanding. But this is what he said to Lizette earlier: >>The people here, think this, because, one job was cancelled, and the operator >>not >>seen. >>So, the Idea , is IF something was wrong, run a JOB, that DISPLAY a warning >>message , >>and asks from Operator type something. >>If have a REXX program , We think more easy do a maintenance. I read this as meaning he wants a batch job to send a message to the console and receive a response from the operator. So WTOR would seem appropriate (as would DISPLAY UPON CONSOLE followed by ACCEPT FROM CONSOLE, as someone else mentioned). BUT, reading the other fragments of his message, his intent could also be to allow the console operator to explain why a JOB was cancelled. He COULD be thinking that I will add a COND=EVEN jobstep to ask the operator "WHY DID YOU CANCEL THIS JOB???" and permit the operator to explain "BECAUSE IT WAS TAKING TOO LONG!!!". Of course, COND=EVEN won't trap a Sx22 ABEND, so if this is what he is hoping to do, he is out of luck. John ---------------------------------------------------------------------- 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 NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ---------------------------------------------------------------------- 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

