HP3000-L Archives

December 2000, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
[log in to unmask][log in to unmask]
>
>
>
>
>54_12Dec200017:26:[log in to unmask]
Date:
Thu, 14 Dec 2000 16:39:25 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
X-no-Archive:yes
On Monday, November 06, 2000 3:22 PM, Tracy Pierce wrote:
> a good point re portability; I believe that HP's %octal
> representation is non-standard.

So I was bemused to find the following in command line help for the SET
command on NT:
Numeric values are decimal numbers, unless
prefixed by 0x for hexidecimal numbers, 0b for binary numbers and 0 for
octals numbers.  So 0x12 is the same as 0b10010 is the same as 022.
Please note that the octal notation can be confusing: 08 and 09 are
not valid numbers because 8 and 9 are not valid octal digits.

While this has nothing to do whatsoever with COBOL, I found it interesting
that octal is available on a relatively current OS, even though I would be
mildly surprised to see it in someone's batch job.

Greg Stigers
http://www.cgiusa.com

ATOM RSS1 RSS2