Peter Nuttall wrote:
Hi IBM-Main,
I read somewhere that there have been some major performance
improvements to the use of the TRUNC(BIN) compiler option.
ENTERPRISE COBOL FOR Z/OS 3.3.1
and
ENTERPRISE COBOL FOR Z/OS 3.4.0
Does anyone have any information on this ? ...
Most of the information on performance improvements for
TRUNC(BIN) have appeard in Tom Ross's SHARE presentations.
Tom sometimes hangs out here, maybe he can respond.
My understanding is TRUNC(BIN) was used by a lot of customers
because they were afraid of data being truncated when working
with, say, DB2 and other apps that use the whole capacity of
a binary field. Problem is, it's a compile-wide option, so
all work with all binary fields had to go through the same
[undocumented] algorithm.
So one way to help improve things is to improve the
generated code for compiles using TRUNC(BIN); another way
they improved things was to introduce comp-5 data type.
This kind of binary item is never truncated, regardless
of the compiler option. So the recommendation has become:
use TRUNC(OPT) in general; then for specific items where
there might be some truncation, specify a comp-5 usage
instead of comp.
The background on this is we are undergoing a performance review of
application code and one of the things we have noticed is that the use of
TRUNC(BIN) in the application compiler options is quite prevalent, and there
were some concerns regarding the associated performance degradation.
Any information would be much appreciated.
Many thanks and kind regards,
Peter
<ad>
We discuss this, and a lot more, in our two day course
"Enterprise COBOL Update I: Fundamentals" which covers
the changes in the IBM implementation of COBOL from
COBOL II through Enterprise COBOL 3.4.
Details at:
http://www.trainersfriend.com/COBOL_Courses/d704descr.htm
</ad>
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
** Spring Promotion **
10% - 15% off for classes booked by April 30, 2007
to be taught by September 30, 2007
Call or email for details.
** Spring Promotion **
----------------------------------------------------------------------
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