Forsythe Solutions Sponsor Message | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||
April 1999 | |||||||||||||||||||||||||
Surviving MANMAN's Ides of March | |||||||||||||||||||||||||
What's
your opinion? Send your comments about this article to me. Include your
name your company, or just post anonymously.
Ron Seybold, Editor In Chief |
|||||||||||||||||||||||||
Persistent integer date issues require source code
changes By David Floyd and Rob Gentry the Support Group, inc. Greetings from the land of Y2K. On this visit we come from a slightly different location: MANMANs ugly monster of the past, the integer date problem. Since Release 7, 9999 has represented March 16, 1999. Everyone thought ASK Computer Systems had fixed this 9999 problem in Release 7, replacing this representation of the end of time with the integer 32767. Our customers began telling us otherwise early this year. Programs in versions as late as Release 11 of MANMAN have references to 9999 as a special date. A client called in with a problem associated with adding a work order using AD300 in the manufacturing module. That one only affects those MANMAN sites that use ECOs extensively. There are no database corruption problems that we know about. After some investigation, our clients problem turned out to be caused by a subroutine called GETREVS in the SSOURCE group. We found a setting for REVOBS to the value 10000 in four different places. This error is in the system all the way through the MANMAN 9.6 release. It was corrected in versions generated on or after May 16, 1994. Our single discovery sent us on a scavenger hunt for other opportunities, as we call them. And we found them. In all, we located a dozen programs with the integer value checks that could cause problems in some form in MANMAN releases 7 through 11. In our page 6 figure we identify what we found, and how to fix the programs. Keep in mind that the code we have identified only shows results from searching different versions of the MANMAN systems within our client base. It may not include all possible occurrences of this bug, especially in any of the other modules of the MANMAN system, since we have only audited the core 4 MANMAN systems as of the time of this article. Some source code files are present but not used. Other code is relevant to the use of specific functions, and may or may not apply to how you use your system. The programs listed in our table require changes as noted to the source code, compiling it into the correct RL, and then recreating the dispatchers (LINKMAN, unless you are on an older version of MANMAN). In three of these cases, the recompiling and linking of stand-alone routines is required. Be sure to correct any customized code where one of these routines was used as the base program. And one more thing: Document the program as you modify it, both in the lead-in section and at each change in the code. Please. Program: ADDSHPS.FSOURCE David Floyd and Rob Gentry are support engineers at the Support Group inc., a manufacturing application support provider in Austin, Texas. |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Copyright 3000 NewsWire, all rights reserved |