<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hex to Decimal in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961974#M22787</link>
    <description>Is there a quick way to convert a HEX value to decimal in a script?</description>
    <pubDate>Wed, 22 Feb 2006 12:57:47 GMT</pubDate>
    <dc:creator>Aaron Lewis_1</dc:creator>
    <dc:date>2006-02-22T12:57:47Z</dc:date>
    <item>
      <title>Hex to Decimal</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961974#M22787</link>
      <description>Is there a quick way to convert a HEX value to decimal in a script?</description>
      <pubDate>Wed, 22 Feb 2006 12:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961974#M22787</guid>
      <dc:creator>Aaron Lewis_1</dc:creator>
      <dc:date>2006-02-22T12:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hex to Decimal</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961975#M22788</link>
      <description>Yes, pretty easy:&lt;BR /&gt;&lt;BR /&gt;$ v = %xfe&lt;BR /&gt;$ show symbol v&lt;BR /&gt;  V = 254   Hex = 000000FE  Octal = 00000000376&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;$ h = "A7"&lt;BR /&gt;$ v = %x'h'&lt;BR /&gt;$ show symbol v&lt;BR /&gt;  V = 167   Hex = 000000A7  Octal = 00000000247&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;$ write sys$output %xc9&lt;BR /&gt;201&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2006 13:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961975#M22788</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2006-02-22T13:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hex to Decimal</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961976#M22789</link>
      <description>Thanx!!!</description>
      <pubDate>Wed, 22 Feb 2006 13:39:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961976#M22789</guid>
      <dc:creator>Aaron Lewis_1</dc:creator>
      <dc:date>2006-02-22T13:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hex to Decimal</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961977#M22790</link>
      <description>Aaron,&lt;BR /&gt;&lt;BR /&gt;You asked:  "in a script" &lt;BR /&gt;&lt;BR /&gt;Probably then, the best thing is F$FAO.&lt;BR /&gt;&lt;BR /&gt;-- use an integer value as Oct, Dec, Hex string:&lt;BR /&gt;&lt;BR /&gt;$ write sys$output "Hex value of ''int' :", f$fao("!XL", int )&lt;BR /&gt;&lt;BR /&gt;$ write sys$output "Oct value of ''int' :", f$fao("!OL", int )&lt;BR /&gt;&lt;BR /&gt;For decimal, 7 positions WITH leading zeroes:&lt;BR /&gt;&lt;BR /&gt;$ write sys$output "7digit value of ''int' :", f$fao("!7ZL", int )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For decimal, 7 positions SUPPRESSING leading zeroes:&lt;BR /&gt;&lt;BR /&gt;$ write sys$output "7 pos right adjust value of ''int' :", f$fao("!7SL", int )&lt;BR /&gt;&lt;BR /&gt;- the S every time stands for Longword, X for Hex, O for Oct, Z for (leading) Zeroes, S for (leading) Spaces.&lt;BR /&gt;A number between the "!" and the format specifier is the number of positions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It DOES take some getting used to, but its uses are simply phantastic.&lt;BR /&gt;&lt;BR /&gt;HELP LEXICAL F$FAO ARG  for MUCH more!&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2006 14:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961977#M22790</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-02-22T14:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hex to Decimal</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961978#M22791</link>
      <description>Jan,&lt;BR /&gt;&lt;BR /&gt;It's the L that stands for Longword&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;The Z format causes the sign of the value to be ignored.&lt;BR /&gt;&lt;BR /&gt;!SL produces no blanks&lt;BR /&gt;!nSL will produce leading blanks if the number is smaller than the field.&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Wed, 22 Feb 2006 23:36:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961978#M22791</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2006-02-22T23:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hex to Decimal</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961979#M22792</link>
      <description>Robert,&lt;BR /&gt;&lt;BR /&gt;the "L" was a typo.&lt;BR /&gt;I did not know about "S" for Signed, I always use it for what you call the additional effect.&lt;BR /&gt;Does "Z" really IGNORE the sign, or does it treat the Longword as UNsigned?&lt;BR /&gt;I will have to test it sometime.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2006 03:44:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/hex-to-decimal/m-p/4961979#M22792</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-02-23T03:44:48Z</dc:date>
    </item>
  </channel>
</rss>

