Kolusu, thanks for you replay. I can execute the comand from SDSF, but have no console authority. Is there any other way? Horacio ________________________________ De: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> en nombre de Sri h Kolusu <skol...@us.ibm.com> Enviado: lunes, 16 de mayo de 2022 18:33 Para: IBM-MAIN@LISTSERV.UA.EDU <IBM-MAIN@LISTSERV.UA.EDU> Asunto: [EXTERNAL] Re: Do you have an example of .......
>> I'd like to catch the output of an SMS command, like 'DISPLAY SMS, >> STORGRP(ALL), from REXX. Is that possible? Horacio, Try this /* rexx */ cmd='d sms,storgrp(all)' "console activate" "console syscmd("cmd")" mcode=getmsg('conmsg1.','sol',,,60) if conmsg1.0 = 0 then do say 'no message returned' return end else do i=1 to conmsg1.0 say conmsg1.i end conmsg1.0=0 "console deactivate" exit Thanks, Kolusu ---------------------------------------------------------------------- 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