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: 6966
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: 7996
Location: Bellevue, IA

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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm


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