Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

CICS :: RE: Read of TDQ fails in LENGERR

$
0
0
Author: Robert Sample
Posted: Wed Apr 05, 2017 9:41 pm (GMT 5.5)

TRUNC is a common culprit with COBOL programs that are having storage issues -- many sites use TRUNC(OPT) which does not allow the programmer to know in advance how COMP variables will work. One alternative you might want to consider is making all COMP variables COMP-5 instead. COMP-5 will ALWAYS use the memory size and not the PICTURE size.
_________________
TANSTAAFL

The first rule of code reuse is that the code needs to be worth re-using.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth


Viewing all articles
Browse latest Browse all 8500

Trending Articles