Hi Tim,

You may want to look at what may be keeping huge amounts of data in memory & 
see if there's a way to pre-sort & aggregate it. If you are not seeing a lot of 
I/O, the code may very well be reevaluating entire [sets of] arrays with each 
record.  

The sort packages will far outperform an internal Rexx programmatic sort & can 
perform several additional functions (aggregation, multiple output files, etc) 
at the same time.  

I don't believe compiling will save you much if you're reevaluating all the 
data for each record & suspect Jon Goossen's reply is on track.  (If you see a 
nonlinear cpu increase with the number of records processed, i'm pretty sure 
Jon hit the nail on the head.)

In general, I'd very strongly recommend the system SORT as at least a 
preprocessor.  Rexx is incredibly useful for small amounts of data (e.g. 
several of Mark Zelden's tools); it is equally powerful, but not very efficient 
with large amounts of data (which is probably why you instead see 
DFSORT/ICETOOL, etc. for sample programs to produce reports from moderate/large 
volumes SMF data).

Good Luck,
Peter

p.s. if you have z/OS 1.13, take a look at 'SYS1.SAMPLIB(IXGRPT2)' for a good 
example of an ICETOOL report on the system logger (from yesterday's NaSPA 
presentation @IBM/NY, thanks Andrew Sica, Mark Nelson, NaSPA, et al). 

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Tim Brown
Sent: Wednesday, March 21, 2012 11:38 AM
To: [email protected]
Subject: rexx cpu intensive

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

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

Reply via email to