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.
One of our performance people was concerned that my REXX job took 6 hours to run. I was loading a large file into an array to process it. I added monitoring of the rate at which elements were processed and found that the rate slowed from more than 100 elements per second to 2 seconds per element before I canceled it. I rewrote the REXX program to read an element and process it. This required a sort step to put the data in the order that I needed to process the data. The job then finished in 5 minutes. This redesign isn't always possible, but for me, it is possible more often then not. Thank you and have a Terrific day! Jonathan Goossen, DTM ACT Mainframe Storage Group Personal: 651-361-4541 Department Support Line: 651-361-5555 For help with communication and leadership skills checkout Woodwinds Toastmasters IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu> wrote on 03/21/2012 10:38:03 AM: > From: Tim Brown <tbr...@cenhud.com> > To: IBM-MAIN@bama.ua.edu > Date: 03/21/2012 10:39 AM > Subject: rexx cpu intensive > Sent by: IBM Mainframe Discussion List <IBM-MAIN@bama.ua.edu> > > What can be done to prevent REXXX programs from being so CPU intensive > > > > Thanks, > > > > Tim Brown > Systems Specialist - Project Leader > Central Hudson Gas & Electric > 284 South Ave > Poughkeepsie, NY 12601 > Email: tbr...@cenhud.com <<mailto:tbr...@cenhud.com>> > Phone: 845-486-5643 > Fax: 845-486-5921 > Cell: 845-235-4255 > > > > > This message contains confidential information and is only for the > intended recipient. If the reader of this message is not the > intended recipient, or an employee or agent responsible for > delivering this message to the intended recipient, please notify the > sender immediately by replying to this note and deleting all copies > and attachments. > > > > > > > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN This e-mail message and all attachments transmitted with it may contain legally privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message and all copies and backups thereof. Thank you. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN