- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Hex to Decimal
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 04:57 AM
02-22-2006 04:57 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 05:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 05:39 AM
02-22-2006 05:39 AM
Re: Hex to Decimal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 06:21 AM
02-22-2006 06:21 AM
Re: Hex to Decimal
You asked: "in a script"
Probably then, the best thing is F$FAO.
-- use an integer value as Oct, Dec, Hex string:
$ write sys$output "Hex value of ''int' :", f$fao("!XL", int )
$ write sys$output "Oct value of ''int' :", f$fao("!OL", int )
For decimal, 7 positions WITH leading zeroes:
$ write sys$output "7digit value of ''int' :", f$fao("!7ZL", int )
For decimal, 7 positions SUPPRESSING leading zeroes:
$ write sys$output "7 pos right adjust value of ''int' :", f$fao("!7SL", int )
- the S every time stands for Longword, X for Hex, O for Oct, Z for (leading) Zeroes, S for (leading) Spaces.
A number between the "!" and the format specifier is the number of positions.
It DOES take some getting used to, but its uses are simply phantastic.
HELP LEXICAL F$FAO ARG for MUCH more!
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 03:36 PM
02-22-2006 03:36 PM
Re: Hex to Decimal
It's the L that stands for Longword
The S stands for Signed, not spaces. It does have the additional effect of filling with blanks if the width of the field is specified.
The Z format causes the sign of the value to be ignored.
!SL produces no blanks
!nSL will produce leading blanks if the number is smaller than the field.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2006 07:44 PM
02-22-2006 07:44 PM
Re: Hex to Decimal
the "L" was a typo.
I did not know about "S" for Signed, I always use it for what you call the additional effect.
Does "Z" really IGNORE the sign, or does it treat the Longword as UNsigned?
I will have to test it sometime.
Proost.
Have one on me.
jpe