The getmsg() is valid; the problem is before that. You're not showing enough of your code to diagnose the problem. Include a trace i before the CONSOLE command.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Nobuhiko Furuya [furu...@v-sol.co.jp] Sent: Tuesday, August 16, 2022 1:18 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: How to set time parameter in TSO/E REXX getmsg function Thanks. But I can't find how to code it. I would line to change time value depend on the logic. How can I resolve this ? For example, when I coded as follows, T=60 msghsm = getmsg('resp.','SOL','HSM',,T) the following messages appeared. IKJ55303I THE CONSOLE COMMAND HAS TERMINATED.+ IKJ55303I AN ERROR OCCURRED DURING CONSOLE INITIALIZATION. THE MCSOPER RETURN CODE WAS X'00000004' AND THE REASON CODE WAS X'00000000'. 25 *-* address console "CART HSM" +++ RC(-3) +++ 31 *-* address console "F "hsmid","hsmcmd +++ RC(-3) +++ IKJ55323I GETMSG PROCESSING HAS TERMINATED. A CONSOLE SESSION IS NOT ACTIVE. IKJ55307I THE CONSOLE COMMAND HAS TERMINATED.+ Best regards, Nobuhiko Furuya(古谷信彦) V-SOL Inc. On 2022/08/16 13:33, Seymour J Metz wrote: > There is nothing special about getmsg; the time parameter can be any > expression that evaluates to a positive number. > > Note: specifying the CART in hexadecimal is certainly valid, but it makes the > code harder to read. > > ________________________________________ > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of > Nobuhiko Furuya <furu...@v-sol.co.jp> > Sent: Monday, August 15, 2022 9:54 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: How to set time parameter in TSO/E REXX getmsg function > > Hi all, > > Can we set variable time parameter in TSO/E REXX getmsg function ? > We would like to specify wait time value from argue. > But getmsg seems to accept only specific numeric seconds as follows. > > msgrett = getmsg(’dmsg’,’sol’,’C1D7D7D3F2F9F6F8’X,,60) > > time > the amount of time, in seconds, that GETMSG should wait, if the requested > message has not yet been routed to the user's console. If you specify a time > value and the time expires before the message is routed to the user's > console, GETMSG does not retrieve the message. Otherwise, if the message > is available before the time expires, GETMSG retrieves the message. > If you do not specify time, GETMSG uses a time value of 0 seconds. If the > message has not been routed to the user's console, GETMSG does not > retrieve the message. > > Best regarss, > > Nobuhiko Furuya(古谷信彦) > V-SOL Inc. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN