I've tried this (2 minute delay):

netcmd = 'DISPLAY NET,E,ID=' || vtamlu
if test = 'TEST' then say 'Command:' netcmd
"CONSOLE SYSCMD(" netcmd ") CART(VTAM0000)"
msg = getmsg(netresp.,'either','VTAM0000',,120)

And this:
"CONSOLE SYSCMD(" netcmd ") CART(VPSC0002)"
msg = getmsg(netresp.,'SOL',VPSC ,'FFFFFFFF00000000'X,120)

both with 'SOL' and 'either," no difference, only one line returned.

This exec issues three system commands, one to derive the VTAM LU from VPS, the second, above, to derive the IP address from VTAM, and then the third to display from TCPIP NETSTAT the status of the printer.  It never gets to command #3.

Thanks,
/Tom
On 5/5/2021 12:07 PM, Charles Mills wrote:
Can you post your code with CART and a two-second delay?

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Tom Sims
Sent: Wednesday, May 5, 2021 11:23 AM
To: [email protected]
Subject: Re: DISPLAY VTAM commands from TSO CONSOLE

Thanks, I've tried with/without CART, as well as waiting up to 2 minutes
for responses, with no change in the dreary outcome.

/Tom

On 5/5/2021 11:16 AM, Seymour J Metz wrote:
Program in a delay.. I'd also suggest using a CART.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of Tom 
Sims [[email protected]]
Sent: Wednesday, May 5, 2021 2:10 PM
To: [email protected]
Subject: DISPLAY VTAM commands from TSO CONSOLE

I am having difficulty obtaining predictable and repeatable results from
DISPLAY VTAM commands in TSO CONSOLE.

In all cases, the first response is returned, e.g., for processing via
getmsg():

10:06:05.30 SYSTVPSC 00000290  DISPLAY NET,ID=SYSTP011
10:06:05.31 SYSTVPSC 00000090  IST097I DISPLAY ACCEPTED

All too often, though, the subsequent detail display is not, and
getmsg() returns, e.g., by msgresp.0 a number of lines=1 and nothing
beyond, so though these are in the syslog, they are not returned to my exec:

10:06:05.31 SYSTVPSC 00000090  IST075I NAME = NETNAME.SYSTP011
                    783 00000090  IST486I STATUS= ACTIV, DESIRED...etc.

I think I have tried every combination of CONSPROF and getmsg() parms,
nothing seems to work.

Any idea what I'm missing?  Thanks in advance,

Tom Sims
Trident Services, Inc.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to