On Thu, 17 Apr 2014 18:58:10 +0000, Sankaranarayanan, Vignesh wrote: > >I'm looping some 5000 times in REXX and doing functions (NetView ping, SNMP >walk, etc) sequentially. They don't necessarily need to be sequential. I'm >just going through a list of printers and I want to test them. > >So.. Is it possible that I make the first run a data run - reading parameters >from files for each printer (reading PDS member) - and the second run as a >thread creator of sorts. Each thread going off to test one printer. > >The first run should be almost instantaneous. My thinking is.. Is it possible >to parallelly do the pinging and SNMP connection bits. It would cut 20 minutes >runtime to just a couple. > I suggested elsewhere in this thread, "SYSCALL spawn". The only z/OS-supported Rexx facility that provides concurrency (AFAIK). Considerable coding; much to learn if you haven't used it before; but it's effective. Each child (I don't believe you can do 5000 at once), could write its report to a separate file, and when all complete the master could merge, catenate, or summarize them.
-- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
