I agree. In addition, It is worth using indexes instead of subscripts even for just a few references. If you have a loop over an subscript consider changing to a loop over an index. Define the termination value as an index data item. Before the loop, set the index to the loop termiantion value. Then set the index data item to the index.
Also using random or skip sequential VSAM access to process a VSAM file using more than about 1% of the records should be replaced with sequential comparison. especially with QSAM files. Using a path on an alternate index for sequential processing can also be a killer. IBM Mainframe Discussion List <IBM-MAIN@BAMA.UA.EDU> wrote on 10/12/2006 12:21:47 PM: > I have seen this CPU usage before for a couple of reasons: > 1). Heavy internal tabling or table lookups. > 2). Use of the "INITIALIZE" verb is a killer in a complex table > that gets executed many times. ----------------------------------------- The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. The information may also constitute a legally privileged confidential communication. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html