Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Why we declare High & Low values in COBOL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Mahesh Kkaumudi

New User


Joined: 02 Sep 2010
Posts: 1
Location: Hyderabad

PostPosted: Mon Sep 06, 2010 3:50 pm    Post subject: Why we declare High & Low values in COBOL?
Reply with quote

Why we declare High & Low values in COBOL?
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Mon Sep 06, 2010 4:45 pm    Post subject:
Reply with quote

what do you mean?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Sep 06, 2010 5:03 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Mon Sep 06, 2010 5:30 pm    Post subject:
Reply with quote

Quote:
Why we declare High & Low values in COBOL?
How can we "declare" High and Low values ? icon_rolleyes.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Mon Sep 06, 2010 7:09 pm    Post subject:
Reply with quote

The "why" is real simple -- we need HIGH-VALUES or LOW-VALUES in the program.
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Mon Sep 06, 2010 8:46 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 10 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us