On 17 April 2014 14:58, Sankaranarayanan, Vignesh <[email protected]> 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.
When you say NetView ping, SNMP walk, etc, are these canned programs you have to run, or functions you have written in your REXX using the sockets interface? I assume the former, but if the latter, the REXX sockets API does support nonblocking mode, so in theory you could have multiple connections on the go at once without multitasking/threading. Tony H. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
