I once greatly improved a Rexx routine exploiting the associative Rexx array. It was some extract from a TMS report. It was originally written like any other array with a subscript variable. And a lot of for loops. I changed it to use the main key (in this case the tape volser) as the index. Elapsed and CPU times where reduced 80 to 90 percent.
Dave Gibney Information Technology Services Washington State University > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On > Behalf Of Jonathan Goossen > Sent: Wednesday, March 21, 2012 9:13 AM > To: IBM-MAIN@bama.ua.edu > Subject: Re: rexx cpu intensive > > Look at your code design and remember that REXX arrays are associative. > Every access to an array element is a search for the full variable name > with the index as part of the name. > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN