Peter Vander Woude wrote:
I'm doing an analysis of one of our application programs. As part of this, I'm seeing the COBOL code generate a lot of PACK/UNPACK instruction pairs.
Does anyone have an idea on the performance impact of all these (potential 
millions of executions in a single run)?

What's the impact of just the PACK instruction?

Hard to say in terms of absolute numbers, but I've
always had the impression PACK is relatively slow.


I see lots of comparisons where COBOL has to generate PACK statements before 
doing the compare.

You can fix that by not doing compares with data of
different types. Also, consider your NUMPROC option
setting. Also, make sure your data are signed (have
an 'S' in the picture) if you will be doing any
compares or computations with it.

Hope this helps.

Kind regards,

-Steve Comstock

----------------------------------------------------------------------
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

Reply via email to