View previous topic :: View next topic
|
Author |
Message |
Mahesh Kkaumudi
New User
Joined: 02 Sep 2010 Posts: 1 Location: Hyderabad
|
|
|
|
Why we declare High & Low values in COBOL? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
what do you mean? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Did you mean "what" instead of "why" in your question?
However if it's "why", I'd, probably say, there are occasions when you may wish to set a variable to an infinitely high or infinitely low number. For example, this thread might give you a hint. |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Quote: |
Why we declare High & Low values in COBOL? |
How can we "declare" High and Low values ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
The "why" is real simple -- we need HIGH-VALUES or LOW-VALUES in the program. |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
HIGH VALUE or LOW VALUE are typically used for initialising storage ares to prove that previous contents have been erased. In applications were your execution logic does not control the usual 'modify before reference' sequence it can be useful to use these special literal values to ensure your data areas are in a initialized state. |
|
Back to top |
|
|
|