Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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: 8165
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us