<?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 Re: F$PARSE in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039921#M35889</link>
    <description>Thanks to all for the prompt reply.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Worked in a single shot.&lt;BR /&gt;&lt;BR /&gt;All credits to John.&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
    <pubDate>Thu, 12 Apr 2007 10:53:46 GMT</pubDate>
    <dc:creator>FOX MULDER_2</dc:creator>
    <dc:date>2007-04-12T10:53:46Z</dc:date>
    <item>
      <title>F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039917#M35885</link>
      <description>Hi,&lt;BR /&gt;I need to return the highest version number of a file.&lt;BR /&gt;I tried using &lt;BR /&gt;$ SPEC = F$PARSE("INFO.COM",,,"VERSION",""SYNTAX_ONLY"")&lt;BR /&gt;$ sh sym spec&lt;BR /&gt;&lt;BR /&gt;The return value is ";" only.&lt;BR /&gt;&lt;BR /&gt;Can anyone please let me know how to obtain the highest version of a file using F$PARSE.&lt;BR /&gt;&lt;BR /&gt;Thnaks</description>
      <pubDate>Thu, 12 Apr 2007 10:21:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039917#M35885</guid>
      <dc:creator>FOX MULDER_2</dc:creator>
      <dc:date>2007-04-12T10:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039918#M35886</link>
      <description>How's about&lt;BR /&gt;&lt;BR /&gt;$SPEC =&lt;BR /&gt;F$PARSE(F$SEARCH("INFO.COM;"),,,"VERSION")-";"&lt;BR /&gt;&lt;BR /&gt;J.</description>
      <pubDate>Thu, 12 Apr 2007 10:30:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039918#M35886</guid>
      <dc:creator>John Abbott_2</dc:creator>
      <dc:date>2007-04-12T10:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039919#M35887</link>
      <description>&lt;!--!*#--&gt;If you want real information about real&lt;BR /&gt;files, remove the "SYNTAX_ONLY".&lt;BR /&gt;&lt;BR /&gt;LEXICALS&lt;BR /&gt;  F$PARSE&lt;BR /&gt;    Arguments&lt;BR /&gt;      parse-type&lt;BR /&gt;[...]&lt;BR /&gt;SYNTAX_     The syntax of the file specification is checked&lt;BR /&gt;ONLY        without verifying that the specified directory exists&lt;BR /&gt;            on the specified device.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2007 10:33:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039919#M35887</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-04-12T10:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039920#M35888</link>
      <description>F$PARSE will not return the version by looking at the file, it is parsing the filespec and supplying defaults.&lt;BR /&gt;&lt;BR /&gt;$ dir sys$login:login.com;&lt;BR /&gt;&lt;BR /&gt;Directory ROOT$USERS:[JON]&lt;BR /&gt;&lt;BR /&gt;LOGIN.COM;231       &lt;BR /&gt;&lt;BR /&gt;Total of 1 file.&lt;BR /&gt;$ write sys$output f$parse("sys$login:login.com;",,,"VERSION")&lt;BR /&gt;;&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;John Abbott had the correct answer with f$search, which is what actually does directory lookups.  Give him points.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2007 10:51:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039920#M35888</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-04-12T10:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039921#M35889</link>
      <description>Thanks to all for the prompt reply.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Worked in a single shot.&lt;BR /&gt;&lt;BR /&gt;All credits to John.&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Thu, 12 Apr 2007 10:53:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039921#M35889</guid>
      <dc:creator>FOX MULDER_2</dc:creator>
      <dc:date>2007-04-12T10:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039922#M35890</link>
      <description>Actually... it looks like this might be broken.&lt;BR /&gt;&lt;BR /&gt;Seems like too big a bug to be but still.&lt;BR /&gt;I tried on OpenVMS 7.2-1 and  8.3&lt;BR /&gt;&lt;BR /&gt;An 'ask the wizard' article on this avoids the question:&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/wizard/wiz_9147.html" target="_blank"&gt;http://h71000.www7.hp.com/wizard/wiz_9147.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The only working examples I see are effectively using:&lt;BR /&gt;&lt;BR /&gt;F$PARSE(F$SEARCH(file...),,,"VERSION")&lt;BR /&gt;In that case obviously the "SYNTAX_ONLY" does no harm and can be recommended.&lt;BR /&gt;&lt;BR /&gt;btw... why the double-double-quotes?&lt;BR /&gt;Act of desperation?&lt;BR /&gt;&lt;BR /&gt;So for now i would recommend&lt;BR /&gt;$ SPEC = F$PARSE("INFO.COM",,,"VERSION",""SYNTAX_ONLY"")&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel (at gmail dot com)&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2007 10:54:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039922#M35890</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-12T10:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039923#M35891</link>
      <description>As I have found the solution,I am closing the thread.&lt;BR /&gt;&lt;BR /&gt;Thnaks to all.</description>
      <pubDate>Thu, 12 Apr 2007 11:00:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039923#M35891</guid>
      <dc:creator>FOX MULDER_2</dc:creator>
      <dc:date>2007-04-12T11:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039924#M35892</link>
      <description>Not broken of course. &lt;BR /&gt;Functionning as designed.&lt;BR /&gt;Got side-tracked.&lt;BR /&gt;&lt;BR /&gt;Parse is supposed to do just that: look at pieces of string.&lt;BR /&gt;&lt;BR /&gt;It should NOT look up the file.&lt;BR /&gt;F$SEARCH will do that.&lt;BR /&gt;&lt;BR /&gt;Sorry if I confused anyone.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2007 11:01:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039924#M35892</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-12T11:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039925#M35893</link>
      <description>&lt;!--!*#--&gt;I recently ran into an interesting undocumented "feature" of F$PARSE.  If you use the "field" argument then a SYNTAX_ONLY parse is always done.  I.E.  if you ask for only one part of the filespec to be returned then F$PARSE never verifies that the device/directory exists.&lt;BR /&gt;&lt;BR /&gt;$ say f$parse("DISK:[NOEXIST]JUNK.DAT",,,,"SYNTAX_ONLY")&lt;BR /&gt;DISK:[NOEXIST]JUNK.DAT;&lt;BR /&gt;$ say f$parse("DISK:[NOEXIST]JUNK.DAT",,,,)&lt;BR /&gt;&lt;BR /&gt;$ say f$parse("DISK:[NOEXIST]JUNK.DAT",,,"DEVICE",)&lt;BR /&gt;DISK:&lt;BR /&gt;$ say f$parse("DISK:[NOEXIST]JUNK.DAT",,,"DIRECTORY",)&lt;BR /&gt;[NOEXIST]&lt;BR /&gt;$ say f$parse("DISK:[NOEXIST]JUNK.DAT",,,"NAME",)&lt;BR /&gt;JUNK&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Apr 2007 12:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039925#M35893</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-04-12T12:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039926#M35894</link>
      <description>The HELP message does state that it won't verify the directory if a field is specified.  It doesn't mention device, filename, etc. but I guess it applies to those too, if a field is specified.&lt;BR /&gt;&lt;BR /&gt;"By default, the F$PARSE function verifies that the directory in the file specification exists on the device in the file specification; however, the existence of the directory is not verified if you provide a field argument."&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Apr 2007 08:38:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039926#M35894</guid>
      <dc:creator>EdgarZamora</dc:creator>
      <dc:date>2007-04-13T08:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: F$PARSE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039927#M35895</link>
      <description>PS...&lt;BR /&gt;&lt;BR /&gt;You can wrap it in F$INTEGER to return the value as as a numeric symbol rather than a string&lt;BR /&gt;&lt;BR /&gt;Eg.&lt;BR /&gt;&lt;BR /&gt;$SPEC =&lt;BR /&gt;F$INTEGER(F$PARSE(F$SEARCH("INFO.COM;"),,,"VERSION")-";")&lt;BR /&gt;&lt;BR /&gt;J.</description>
      <pubDate>Sat, 14 Apr 2007 10:31:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-parse/m-p/5039927#M35895</guid>
      <dc:creator>John Abbott_2</dc:creator>
      <dc:date>2007-04-14T10:31:19Z</dc:date>
    </item>
  </channel>
</rss>

