I experienced a similar performance gain by swapping a iterative REXX stem 
compare with a ISPF Edit Macro search. Instead of performing a one at a time 
comparison through 10000+ records, a FIND loop on the first 7 characters, then 
6, 5, 4, etc turned a couple of thousand iterations to about 4 on average for 
this particular data.

Instead of thinking 'how can I code this', it is usually more efficient to 
think 'how would I best do this manually', then code around this approach.

Cheers,
MARK DOUGLAS 
Senior IT Support Consultant
Mainframe
 
317 Edward Street 
BRISBANE QLD 4000
 
Ph:          (07) 322 22739
Mob:       0410 937 141
Email:     [email protected] 
Tomorrow's Queensland: strong, green, smart, healthy and fair 
www.towardQ2.qld.gov.au
www.citec.com.au 
        
 

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Jonathan Goossen
Sent: Thursday, 22 March 2012 2:13 AM
To: [email protected]
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.

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 <[email protected]> wrote on 03/21/2012 
10:38:03 AM:

> From: Tim Brown <[email protected]>
> To: [email protected]
> Date: 03/21/2012 10:39 AM
> Subject: rexx cpu intensive
> Sent by: IBM Mainframe Discussion List <[email protected]>
> 
> 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: [email protected] <<mailto:[email protected]>>
> 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 [email protected] 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 [email protected] with the message: INFO IBM-MAIN


***************************** Disclaimer *****************************

The contents of this electronic message and any attachments are intended only 
for the addressee and may contain privileged or confidential information. They 
may only be used for the purposes for which they were supplied. If you are not 
the addressee, you are notified that any transmission, distribution, 
downloading, printing or photocopying of the contents of this message or 
attachments is strictly prohibited. The privilege of confidentiality attached 
to this message and attachments is not waived, lost or destroyed by reason of 
mistaken delivery to you. If you receive this message in error please notify 
the sender by return e-mail or telephone.

Please note: the Department of Public Works carries out automatic software 
scanning, filtering and blocking of E-mails and attachments (including emails 
of a personal nature) for detection of viruses, malicious code, SPAM, 
executable programs or content it deems unacceptable. All reasonable 
precautions will be taken to respect the privacy of individuals in accordance 
with the Information Privacy Act 2009 (Qld). Personal information will only be 
used for official purposes, e.g. monitoring Departmental Personnel's compliance 
with Departmental Policies. Personal information will not be divulged or 
disclosed to others, unless authorised or required by Departmental Policy 
and/or law.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to