View previous topic :: View next topic |
Author |
Message |
basheerbaba Beginner
Joined: 03 Jan 2007 Posts: 13 Topics: 6 Location: Hyderabad,India
|
Posted: Wed Feb 28, 2007 12:11 am Post subject: Internal table size in a program |
|
|
Hi,
"automatically review internal program tables for potential overflow. Produce automatic notification if a threshold has been reached".
the above lines are my problem statment, is there any way to check the table overflow with out changing all the programs in the applilcation system.
Thanks in advance. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12367 Topics: 75 Location: San Jose
|
Posted: Wed Feb 28, 2007 9:40 am Post subject: |
|
|
basheerbaba,
Look up the compiler option SSRANGE. Search the forum for that word and you will find many examples.
Kolusu _________________ Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
basheerbaba Beginner
Joined: 03 Jan 2007 Posts: 13 Topics: 6 Location: Hyderabad,India
|
Posted: Wed Apr 25, 2007 7:16 am Post subject: |
|
|
Hi Kolusu,
Thanks for your reply, here my job should not abend, I just need to get the warning message. whenever the table size reaches its size limit.
Thanks,
Basheer. |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Apr 25, 2007 7:28 am Post subject: |
|
|
then you need to put code in to check. I would suggest that before you 'ADD' an item, check the table size (counter, whatever) to insure that the overflow will not be reached. Hopefully, you only add items in a few places and your re-write will not be that complicated.
Better than trying to trap a SOC4 would be to put a little logic in to maintain a count of current items and when you add an item, compare the current-item-count to the total-possible-table-count. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
|
|