Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Dumb "figurative constant" rules
Just as an (amusing???) follow-up to the current discussion on HIGH-VALUES a
nd
LOW-VALUES, I thought I would mention the following:

The '85 Standard (and I assume all earlier ones) allows one to MOVE

- QUOTE
- HIGH-VALUES
- LOW-VALUES
- all "literal"   *> with alphanumeric characters in the literal

to a NUMERIC (any usage - I think) receiving field - in SOME very rare cases
LOW-VALUES *might* be a "DISPLAY" zero or HIGH-VALUES a display nine, but I
suspect this is INCREDIBLY rare.  When QUOTE is a numeric integer, is even m
ore
problematic.

The '02 Standard made this "archaic" (not obsolete)  and the draft of the '0
8
Standard gives some more examples of when this would work - but not as expec
ted,
e.g.

05  Num1  Pic 99V99
..
Move All "9" to Num1
Evaluate  Num1
when  99.99
Display "You might think so - but NO"
when 99.00
Display "This is standard - but is it expected?"
End-Evaluate

P.S.  The '02 Standard introduced "Function Highest-Algebraic" (and
Lowest-Algebraic) to give the "expected" results for the above code.


--
Bill Klein
wmklein <at> ix.netcom.com



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
05-26-05 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:29 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.