Neither of those address the OP's question: how to issue the command AND WAIT for the configuration change to take effect.
Oh, BTW, "CART before the horse" was a pun that already referred to CONSOLE, but CONSOLE by itself doesn't solve the problem. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Steve Smith [sasd...@gmail.com] Sent: Thursday, May 14, 2020 12:07 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Activate SMS configuration in batch For the simple case where you want to issue some commands at a particular point in a batch job, it's easy enough to just use IEBGENER or something to copy JCL commands to INTRDR. For the complex cases, the CONSOLE command provides plenty of functionality, and can be fairly easily programmed with REXX. sas On Thu, May 14, 2020 at 12:00 PM Seymour J Metz <sme...@gmu.edu> wrote: > That's putting the CART before the horse. The problem isn't issuing the > command, but waiting for initialization to complete. > > > -- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > > > ________________________________________ > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf > of Jousma, David <000001a0403c5dc1-dmarc-requ...@listserv.ua.edu> > Sent: Thursday, May 14, 2020 11:48 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Activate SMS configuration in batch > > Just highlights the need for an IBM provided "command issuer" instead of > everyone rolling their own. I personally like using the ISFSLASH > facilities for that. Uses the user's access to validate authority. I've > posted this before, which I stole from somewhere else, and tweaked it a > bit. I wish I had REXX compiler. > > /* REXX */ > /* this REXX exec will issue operator commands via SDSF REXX interface > security is based on the person using the command. this exec is to be > used for batch only */ > 'EXECIO * DISKR SYSIN (STEM mycmd. FINIS' > if rc > 0 then do > say 'Return code from OPEN was' rc > say 'Aborting...' > exit > end > > /* Allocate results output file */ > Call BPXWDYN "alloc rtddn(ddnm) sysout" > > /* Process all input commands */ > Do c=1 to mycmd.0 > oper_command.0 = 1 > oper_command.1 = mycmd.c > Call Main_process > End > > /* Free results output file */ > Call BPXWDYN "free fi(ddnm)" > Return 0 > > Main_process: > /* process all data from SYSIN */ > rc=isfcalls('ON') > Address SDSF ISFSLASH "("oper_command.") (WAIT)" > l_cnt = 0 > If datatype(isfulog.0) = "NUM" Then Do > If isfulog.0 <> 0 Then Do > l_cnt = l_cnt + 1 > l.l_cnt = substr(isfulog.1,1,43) > Do ix=1 to isfulog.0 > ll = length(isfulog.ix) > if ll <> 0 Then > qdata = substr(isfulog.ix,44,ll-43) > else > qdata = isfulog.ix > l_cnt = l_cnt + 1 > l.l_cnt = qdata > End > End > Else Do > l_cnt = l_cnt + 1 > l.l_cnt = "No command response available" > End > End > Else Do > l_cnt = l_cnt + 1 > l.l_cnt = "Error in command reponse" > End > rc=isfcalls("OFF") > If (l_cnt = 0) Then Do > l_cnt = l_cnt + 1 > l.l_cnt = ' /* no data produced */' > End > l.0 = l_cnt > Address MVS "ExecIO "l_cnt" DiskW "ddnm" (Finis Stem l.)" > l_cnt = 0 > Return > > > > > _____________________________________________________________________________________________________ > Dave Jousma > AVP | Manager, Systems Engineering > > Fifth Third Bank | 1830 East Paris Ave, SE | MD RSCB2H | Grand > Rapids, MI 49546 > 616.653.8429 | fax: 616.653.2717 > > > -----Original Message----- > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf > Of Lizette Koehler > Sent: Thursday, May 14, 2020 11:16 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Activate SMS configuration in batch > > **CAUTION EXTERNAL EMAIL** > > **DO NOT open attachments or click on links from unknown senders or > unexpected emails** > > When using the JCL COMMAND statement, I think it gets executed as soon as > the job hits the Internal reader and may not execute on the system you want > it on. Worth testing it out. > > Do you have any automation tools? > > With CA OPS/MVS I have an MSF Plex that allows me to ship commands to any > LPAR that MSF is able to see. That way my commands do not get issued until > my batch job runs. > > > Lizette > > > -----Original Message----- > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf > Of R.S. > Sent: Thursday, May 14, 2020 6:53 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Activate SMS configuration in batch > > W dniu 14.05.2020 o 12:43, Gadi Ben-Avi pisze: > > Hi, > > Does anyone know of a way to activate an SMS configuration in batch? > > > > I know I can issue the SETSMS SCDS(xx) command in batch, but I am long > > for > a way that will wait until the activation is complete before continuing to > the next step. > > > > We are running z/OS v2.2 > > > > > What about > // COMMAND > ? > > -- > Radoslaw Skorupka > Lodz, Poland > > > > > > ====================================================================== > > Jeśli nie jesteś adresatem tej wiadomości: > > - powiadom nas o tym w mailu zwrotnym (dziękujemy!), > - usuń trwale tę wiadomość (i wszystkie kopie, które wydrukowałeś lub > zapisałeś na dysku). > Wiadomość ta może zawierać chronione prawem informacje, które może > wykorzystać tylko adresat.Przypominamy, że każdy, kto rozpowszechnia > (kopiuje, rozprowadza) tę wiadomość lub podejmuje podobne działania, > narusza > prawo i może podlegać karze. > > mBank S.A. z siedzibą w Warszawie, ul. Senatorska 18, 00-950 > Warszawa, > http://secure-web.cisco.com/13ldWTpJfOhvfrjYxmS8jn0qn360OWfNfCFPVYECxVJhwTnzTKipUlloblUjAXTbKREftBqcg5PgoZ9p44Lz7m-z-YXdwLc5U1C6h3IvtmzKNXXdsRyJ-16yQM1NRp4kdsmf4LVpnJku_gTiQREuPvgsSu9FYc_dHR18u0kAYoLx9ZqPfv5nK-ZtdNa_KJm2Wi0ywLDNdE-u9ssdST-0aL_YfKK05noszPogYANLux6sG8BqwMSIZBSZ2UVygInWjKjvEYmdRSvNtpk48zCxU_4S8r-tExy6nmGHFoItQHvKv-aM1CwPVUxkfnJIJlXWvBG1nZNKnJ3gVz9vkfYnALxq2oRP9-Db2xISc-6GzkG9BlaKOI7DbNJnFi4dwFrWk7MlMecbDEvXTjWEvS_iH6gtL8ExO5vNKAzAjEsvHG2Bz3CTRjajhywWwwaKz37w8/http%3A%2F%2Fwww.mBank.pl, > e-mail: kont...@mbank.pl. Sąd Rejonowy dla m. st. > Warszawy XII Wydział Gospodarczy Krajowego Rejestru Sądowego, KRS > 0000025237, NIP: 526-021-50-88. Kapitał zakładowy (opłacony w całości) > według stanu na 01.01.2020 r. wynosi 169.401.468 złotych. > > If you are not the addressee of this message: > > - let us know by replying to this e-mail (thank you!), > - delete this message permanently (including all the copies which you have > printed out or saved). > This message may contain legally protected information, which may be used > exclusively by the addressee.Please be reminded that anyone who > disseminates > (copies, distributes) this message or takes any similar action, violates > the > law and may be penalised. > > mBank S.A. with its registered office in Warsaw, ul. Senatorska 18, 00-950 > Warszawa, > http://secure-web.cisco.com/13ldWTpJfOhvfrjYxmS8jn0qn360OWfNfCFPVYECxVJhwTnzTKipUlloblUjAXTbKREftBqcg5PgoZ9p44Lz7m-z-YXdwLc5U1C6h3IvtmzKNXXdsRyJ-16yQM1NRp4kdsmf4LVpnJku_gTiQREuPvgsSu9FYc_dHR18u0kAYoLx9ZqPfv5nK-ZtdNa_KJm2Wi0ywLDNdE-u9ssdST-0aL_YfKK05noszPogYANLux6sG8BqwMSIZBSZ2UVygInWjKjvEYmdRSvNtpk48zCxU_4S8r-tExy6nmGHFoItQHvKv-aM1CwPVUxkfnJIJlXWvBG1nZNKnJ3gVz9vkfYnALxq2oRP9-Db2xISc-6GzkG9BlaKOI7DbNJnFi4dwFrWk7MlMecbDEvXTjWEvS_iH6gtL8ExO5vNKAzAjEsvHG2Bz3CTRjajhywWwwaKz37w8/http%3A%2F%2Fwww.mBank.pl, > e-mail: kont...@mbank.pl. District Court for the > Capital City of Warsaw, 12th Commercial Division of the National Court > Register, KRS 0000025237, NIP: 526-021-50-88. Fully paid-up share capital > amounting to PLN 169.401.468 as at 1 January 2020. > > ---------------------------------------------------------------------- > 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 > **CAUTION EXTERNAL EMAIL** > > **DO NOT open attachments or click on links from unknown senders or > unexpected emails** > > > This e-mail transmission contains information that is confidential and may > be privileged. It is intended only for the addressee(s) named above. If > you receive this e-mail in error, please do not read, copy or disseminate > it in any manner. If you are not the intended recipient, any disclosure, > copying, distribution or use of the contents of this information is > prohibited. Please reply to the message immediately by informing the sender > that the message was misdirected. After replying, please erase it from your > computer system. Your assistance in correcting this error is appreciated. > > ---------------------------------------------------------------------- > 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