<?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: UNIX procedure equivalent in OVMS? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681416#M33139</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;to get only the file name for use in remote specification use F$PARSE. [may be omit the version]&lt;BR /&gt;&lt;BR /&gt;FNAMSHORT = f$PARSE(FNAM,,,"NAME") + f$PARSE(FNAM,,,"TYPE") [ + f$PARSE(FNAM,,,"VERSION") ]&lt;BR /&gt;&lt;BR /&gt;Mike&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Nov 2005 04:49:14 GMT</pubDate>
    <dc:creator>Mike Reznak</dc:creator>
    <dc:date>2005-11-30T04:49:14Z</dc:date>
    <item>
      <title>UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681413#M33136</link>
      <description>Hello!&lt;BR /&gt;I'm a newbie to VMS scripting and i would greatly appreciate if someone would offer me some solutions here.&lt;BR /&gt;&lt;BR /&gt;I've been trying to perform the following procedure in OpenVMS as i've done well in UNIX.&lt;BR /&gt;&lt;BR /&gt;foreach file (`ls &lt;DIR&gt;`)&lt;BR /&gt;mem del $file&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;What exactly i'm trying to do here is to capture a list of existing files in a specified directory and delete those same files residing in a connected industrial machine. The statement "mem del" is basically delete files in the machine's memory.&lt;BR /&gt;&lt;BR /&gt;On top of this, there's another problem with VMS. I noticed when i performed a "directory" command on a location. All the files comes with a version number at the end. This would pose a problem when i try to use the filenames to delete in my machine's memory. In this case, i would need to truncate the trailing version numbers.&lt;BR /&gt;&lt;BR /&gt;How can i get these done with similar commands which i'd used in my UNIX script? Please help....please?!&lt;BR /&gt;&lt;BR /&gt;Augustine Andrew&lt;/DIR&gt;</description>
      <pubDate>Wed, 30 Nov 2005 04:24:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681413#M33136</guid>
      <dc:creator>Andrew Yip</dc:creator>
      <dc:date>2005-11-30T04:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681414#M33137</link>
      <description>The mechanism to loop over files in a directory is by using a "lexical function" named F$SEARCH():&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;$LOOP:&lt;BR /&gt;$ FNAM = F$SEARCH ("*.*;*")&lt;BR /&gt;$ if FNAM .eqs. "" then $ goto DONE&lt;BR /&gt;$! delete 'FNAM'&lt;BR /&gt;$ write SYS$OUTPUT FNAM&lt;BR /&gt;$ goto LOOP&lt;BR /&gt;$DONE:&lt;BR /&gt;$ exit&lt;BR /&gt;-----&lt;BR /&gt;&lt;BR /&gt;&amp;gt; All the files comes with a version number at the end. This would pose a problem when i try to use the filenames to delete in my machine's memory.&lt;BR /&gt;&lt;BR /&gt;You MUST specify a version number (or the "*" wildcard) in order to be able to delete a file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; i would need to truncate the trailing version numbers.&lt;BR /&gt;&lt;BR /&gt;In case you need this for something else - use:&lt;BR /&gt;$ directory *.*; /select=file=noversion /column=1&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Nov 2005 04:30:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681414#M33137</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-11-30T04:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681415#M33138</link>
      <description>I am not sure there is a Vms equivalent of "mem del".&lt;BR /&gt;&lt;BR /&gt;If you want to check the files in a directory, use f$search, and you can check the help with &lt;BR /&gt;$ help lexical f$search &lt;BR /&gt;&lt;BR /&gt;an example&lt;BR /&gt;$ loop:&lt;BR /&gt;$ file = f$search("my_directory:*.dat")&lt;BR /&gt;$ if file.eqs."" then exit&lt;BR /&gt;$ !your code about that file, here a search (grep in Unix) ...&lt;BR /&gt;$ search 'file my_string&lt;BR /&gt;$ goto loop:&lt;BR /&gt;&lt;BR /&gt;With f$search, if you do several concurrent searches, you will use the stream id (here 1 and 2)&lt;BR /&gt;&lt;BR /&gt;$ START: &lt;BR /&gt;$    COM = F$SEARCH ("*.COM;*",1) &lt;BR /&gt;$    DAT = F$SEARCH ("*.DAT;*",2) &lt;BR /&gt;$    SHOW SYMBOL COM &lt;BR /&gt;$    SHOW SYMBOL DAT &lt;BR /&gt;$    IF (COM.EQS. "") .AND. (DAT.EQS. "") THEN EXIT &lt;BR /&gt;$    GOTO START &lt;BR /&gt;</description>
      <pubDate>Wed, 30 Nov 2005 04:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681415#M33138</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2005-11-30T04:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681416#M33139</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;to get only the file name for use in remote specification use F$PARSE. [may be omit the version]&lt;BR /&gt;&lt;BR /&gt;FNAMSHORT = f$PARSE(FNAM,,,"NAME") + f$PARSE(FNAM,,,"TYPE") [ + f$PARSE(FNAM,,,"VERSION") ]&lt;BR /&gt;&lt;BR /&gt;Mike&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Nov 2005 04:49:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681416#M33139</guid>
      <dc:creator>Mike Reznak</dc:creator>
      <dc:date>2005-11-30T04:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681417#M33140</link>
      <description>Andrew,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt; residing in a connected industrial machine. The statement "mem del" is basically delete files in the machine's memory.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;The way I interpret your question: "at the VMS system there is a directory in which files reside, copies of which exist in the memory of the connected machine".&lt;BR /&gt;&lt;BR /&gt;If so:&lt;BR /&gt;- what is the OS of those machines?&lt;BR /&gt;- do you just need to remove the memory copies, or also the VMS files?&lt;BR /&gt;&lt;BR /&gt;How to get the list of files is by any of the given methods.&lt;BR /&gt;If you just beed a list, I would use the last line given by Uwe, perhaps with the addition of /NOHEADER and /NOTRAILER.&lt;BR /&gt;Put that in a file ( /OUTPUT= filename ). or use PIPE, to feed your original example.&lt;BR /&gt;&lt;BR /&gt;If you also want to delete the VMS file, then use the file mechanism. You have to add the version number again (use wildcard, ;* ) for a VMS DELETE.&lt;BR /&gt;If there is no need to remove both synchronously, use the PIPE method, and for VMS just delete the whole bunch at one go: DELETE *.*;*&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Success&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Wed, 30 Nov 2005 07:42:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681417#M33140</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-11-30T07:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681418#M33141</link>
      <description>&lt;BR /&gt;You can also select files with&lt;BR /&gt;&lt;BR /&gt;$ delete /before=&lt;TIME goes="" here=""&gt;&lt;BR /&gt;&lt;BR /&gt;$ purge &lt;BR /&gt;&lt;BR /&gt;will delete earlier versions of a file and keep the latest.  Use $purge/keep=x  to keep the latest x versions of a file.  &lt;BR /&gt;&lt;BR /&gt;The /LOG switch applies to both and will display a list of files deleted.  You can use pipe or define a file for sys$output.  &lt;BR /&gt;&lt;BR /&gt;$ define sys$output andy.txt&lt;BR /&gt;$ pur andy.com/log&lt;BR /&gt;%PURGE-I-FILPURG, DKA200:[MDMS]ANDY.COM;19 deleted (9 blocks)&lt;BR /&gt;$ deass sys$output&lt;BR /&gt;$ type andy.txt&lt;BR /&gt;%PURGE-I-FILPURG, DKA200:[MDMS]ANDY.COM;19 deleted (9 blocks)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Andy&lt;/TIME&gt;</description>
      <pubDate>Wed, 30 Nov 2005 12:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681418#M33141</guid>
      <dc:creator>Andy Bustamante</dc:creator>
      <dc:date>2005-11-30T12:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681419#M33142</link>
      <description>Hey guys!&lt;BR /&gt;&lt;BR /&gt;Wow! This is like family! What prompt response we have here?! You guys are great!&lt;BR /&gt;But anyway, i still have some problems after trying out your wonderful suggestions.&lt;BR /&gt;============================================&lt;BR /&gt;Hi Uwe,&lt;BR /&gt;Your idea works. But i've a problem when i need to delete the list of files generated by the F$SEARCH function in a different directory. FNAM returns the full directory path of the search list. Hence, i wouldn't be able delete the same files in any other directory other than the original search location. Do you have a fix on this small glitch?&lt;BR /&gt;&lt;BR /&gt;On the other hand, your truncation method doesn't work on my machine.It seems like mine doesn't support the 'file' keyword.&lt;BR /&gt;*[%DCL-W-IVKEYW, unrecognized keyword - check validity and spelling&lt;BR /&gt; \FILE\]&lt;BR /&gt;&lt;BR /&gt;How do i check the version of my OVMS for scripting compatibility? I felt that my OVMS's scripting language works a little different. Hmm...strange!&lt;BR /&gt;============================================&lt;BR /&gt;Hi Labadie,&lt;BR /&gt;Thanks for your ideas too!&lt;BR /&gt;"Mem Del" is not a OVMS command, it's my other machine's command. It doesn't matter.&lt;BR /&gt;Thanks!&lt;BR /&gt;============================================&lt;BR /&gt;Hi Mike,&lt;BR /&gt;Thanks for your command there although i don't understand it.&lt;BR /&gt;The command line works for me, but it returns an error msg when i invoke it.&lt;BR /&gt;*[%DCL-W-SYMDEL, invalid symbol or value delimiter - check command syntax]&lt;BR /&gt;What is this all about?&lt;BR /&gt;============================================&lt;BR /&gt;Hi Jpe,&lt;BR /&gt;Yes, you've got my point.&lt;BR /&gt;The OS of my connected machine doesn't matter. It's making use of OVMS to communicate with it. I only need to delete the memory copies in that machine using the "mem del" command. No issues with that.&lt;BR /&gt;&lt;BR /&gt;Sorry, i may sound stupid but how do i utilize the /NOHEADER &amp;amp; /NOTRAILER qualifiers to Uwe's command?&lt;BR /&gt;&lt;BR /&gt;/OUTPUT doesn't seemed to work on my OVMS. My OVMS works a little different from others, i think.&lt;BR /&gt;============================================&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Andrew&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Dec 2005 02:36:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681419#M33142</guid>
      <dc:creator>Andrew Yip</dc:creator>
      <dc:date>2005-12-01T02:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681420#M33143</link>
      <description>&lt;BR /&gt;Your alter ego on computing.net specified a bit more precisely that You have VMS 5.5 !&lt;BR /&gt;And in this ANCIENT version there was rarely a /output qualifier for commands.&lt;BR /&gt;&lt;BR /&gt;So You have to redirect output of the dir command by&lt;BR /&gt; define/user sys$output somename.tmp&lt;BR /&gt; dir ...&lt;BR /&gt;to achieve the same as  dir/output=somename.tmp .&lt;BR /&gt;&lt;BR /&gt;And as I have said in computing.net, parse the file-specification into nt=name+type, then&lt;BR /&gt; delete thedisk:[thedirectories]'nt';*&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 01 Dec 2005 03:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681420#M33143</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-01T03:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681421#M33144</link>
      <description>Andrew,&lt;BR /&gt;&lt;BR /&gt;Attached command procedure works for me.&lt;BR /&gt;Note that I haven't tested it thoroughly.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)</description>
      <pubDate>Thu, 01 Dec 2005 04:11:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681421#M33144</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2005-12-01T04:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681422#M33145</link>
      <description>Andrew,&lt;BR /&gt;&lt;BR /&gt;So, VMS 5.5, and the procedure runs on VMS, to operate on the remote system, and the directory over there is different (say: remdir)&lt;BR /&gt;(supposing MEM DEL is doing the same as on *X:)&lt;BR /&gt;&lt;BR /&gt;$ DEFINE SYS$OUTPUT DIRLIS.TMP&lt;BR /&gt;$ DIRE &lt;DIR&gt;/NOHEADER/NOTRAIL/COL=1&lt;BR /&gt;$ OPEN IFI DIRLIS.TMP&lt;BR /&gt;$LOOP:&lt;BR /&gt;$ READ IFI FIL /END=DONE&lt;BR /&gt;$ REMFIL = &lt;REMDIR&gt; + F$PARSE(FIL,,,"NAME") + F$PARSE(FIL,,,"TYPE")&lt;BR /&gt;$ MEM DEL 'REMFIL'&lt;BR /&gt;$ !? DELETE 'FIL' !? maybe local del as well?   &lt;BR /&gt;$ goto loop&lt;BR /&gt;$DONE:&lt;BR /&gt;$ CLOSE IFI&lt;BR /&gt;$ DELETE DIRLIS.TMP.*&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth&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;/REMDIR&gt;&lt;/DIR&gt;</description>
      <pubDate>Thu, 01 Dec 2005 15:44:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681422#M33145</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-12-01T15:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681423#M33146</link>
      <description>Thanks! Your ideas work well!&lt;BR /&gt; &lt;BR /&gt;Jpe,&lt;BR /&gt;&lt;BR /&gt;Your method works faster than having to use the f$search and IF-THEN-ELSE statements.&lt;BR /&gt;&lt;BR /&gt;By the way, how do i append my next output when applying the define method?&lt;BR /&gt;&lt;BR /&gt;E.g:&lt;BR /&gt;&lt;BR /&gt;DEFINE SYS$OUTPUT test.log&lt;BR /&gt;show time&lt;BR /&gt;DEASSIGN SYS$OUTPUT</description>
      <pubDate>Mon, 05 Dec 2005 01:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681423#M33146</guid>
      <dc:creator>Andrew Yip</dc:creator>
      <dc:date>2005-12-05T01:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681424#M33147</link>
      <description>That's not possible, I think, but:&lt;BR /&gt;&lt;BR /&gt;$ define sys$output time.tmp&lt;BR /&gt;$ show time&lt;BR /&gt;$ deassign sys$output&lt;BR /&gt;$ append time.tmp test.log&lt;BR /&gt;%APPEND-W-INCOMPAT, USER_1:[ZESSIN]TIME.TMP;1 (input) and USER_1:[ZESSIN]TEST.LOG;1 (output) have incompatible attributes&lt;BR /&gt;$ delete time.tmp;&lt;BR /&gt;$ type test.log&lt;BR /&gt;abc&lt;BR /&gt;___5-DEC-2005 07:55:59&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Another idea:&lt;BR /&gt;&lt;BR /&gt;$ open /append t_log test.log&lt;BR /&gt;$ write t_log "  "+f$cvtime(f$time(),"absolute")&lt;BR /&gt;$ close t_log&lt;BR /&gt;$ type test.log&lt;BR /&gt;abc&lt;BR /&gt;___5-DEC-2005 07:55:59&lt;BR /&gt;__5-DEC-2005 07:59:51.50&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;(I have replaced the leading spaces in the file output with underscores "_" to better illustrate the difference, because ITRC eats spaces :-(</description>
      <pubDate>Mon, 05 Dec 2005 02:03:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681424#M33147</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-12-05T02:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681425#M33148</link>
      <description>&lt;QUOTE&gt;&lt;BR /&gt;Your method works faster than having to use the f$search and IF-THEN-ELSE statements.&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Although it has nothing to do with the original  question,&lt;BR /&gt;but this statement sounds unjustified.&lt;BR /&gt;&lt;BR /&gt;Writing the output of a command to a file, then reading it is clumpsy as long as there is an equivalent function built into DCL like in this case DIRECTORY/OUTPUT vs. f$search.&lt;BR /&gt;&lt;BR /&gt;And why creating a file,invoking an image, opening and reading a file should be faster than DCL-internal directory search is beyond my imagination.&lt;BR /&gt; &lt;BR /&gt;Could You explain how You measured it being faster ?&lt;BR /&gt;&lt;BR /&gt;Directory output to a file is IMHO only needed, if some /EXCLUDE or other criteria can't be achieved easily inside DCL, or if the file list has to be sorted somehow.</description>
      <pubDate>Mon, 05 Dec 2005 04:05:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681425#M33148</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-05T04:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681426#M33149</link>
      <description>Joseph,&lt;BR /&gt;&lt;BR /&gt;I've just compared a simple F$SEARCH loop finding 200 files with a DIR /OUT and reading its output: the DIR solution is faster:&lt;BR /&gt;&lt;BR /&gt;- is uses less CPU and elapsed time and BufIO&lt;BR /&gt;- is needs more hard faults and DirIO&lt;BR /&gt;&lt;BR /&gt;Normally I would prefer the DCL F$SEARCH solution, because you are not dependant on the format of the DIR output.&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Mon, 05 Dec 2005 05:49:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681426#M33149</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2005-12-05T05:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681427#M33150</link>
      <description>Kalle,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;- is uses less CPU and elapsed time and BufIO&lt;BR /&gt;- is needs more hard faults and DirIO&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Remove Elapsed Time from these lines, and it means, that the amouts of Elapsed Time are configuration-dependant. Much CPU power and Memory favors the DIR solution, good Caching and fast disk IO favors the F$SEARCH.&lt;BR /&gt;&lt;BR /&gt;-- although whenever possible a personally favor lexical function solutions over output-parsing!&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;</description>
      <pubDate>Mon, 05 Dec 2005 06:38:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681427#M33150</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-12-05T06:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681428#M33151</link>
      <description>Interesting !&lt;BR /&gt;I made tests with my slowest and fastest CPUs, and it seems that only for short (few hundreds) number of files DIRECT/output wins. In all other cases f$search loops are faster, and gain with the number of files.&lt;BR /&gt;Seems that f$search has a bigger 'pedestal' at initialization.</description>
      <pubDate>Mon, 05 Dec 2005 08:07:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681428#M33151</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-05T08:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681429#M33152</link>
      <description>&lt;BR /&gt;And one additional note on the differences:&lt;BR /&gt;&lt;BR /&gt;DIRECTORY lists ALIAS files/directories,&lt;BR /&gt;f$search does not return aliases !&lt;BR /&gt;&lt;BR /&gt;So it may well make a difference wether the list of files is for processing or e.g. for delete/remove.</description>
      <pubDate>Mon, 05 Dec 2005 08:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681429#M33152</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-05T08:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681430#M33153</link>
      <description>Can't speak for VAX, but on OpenVMS Alpha V7.3-2 it lists aliases - no matter if the primary entry is in the same or a different directory.</description>
      <pubDate>Mon, 05 Dec 2005 08:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681430#M33153</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-12-05T08:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681431#M33154</link>
      <description>Maybe I was a bit unclear:&lt;BR /&gt;if You explicitely do f$search("[.dir]*.*"), then yes, it returns files wether being aliases of some files in other directories.&lt;BR /&gt;But say You have [.a] and [.b] being an alias directory of [.a], then f$search [...]*.* returns the files only once, not the files in [.b].</description>
      <pubDate>Mon, 05 Dec 2005 08:45:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681431#M33154</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-05T08:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: UNIX procedure equivalent in OVMS?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681432#M33155</link>
      <description>Sorry , forget my previous statement.&lt;BR /&gt;Uwe is right, I had by chance exactly as many files to purge as I had aliases resulting in the same difference of number of files between&lt;BR /&gt;f$search() and DIRECTORY.&lt;BR /&gt;&lt;BR /&gt;So not the alias behaviour is different, but&lt;BR /&gt; &lt;BR /&gt; f$search("*.*") is not the same as&lt;BR /&gt; directory *.*&lt;BR /&gt;&lt;BR /&gt;the directory command defaults to version ";*" if not explicitely version 0 (";" or ";0") is specified, while f$search("*.*") returns only the highest version.</description>
      <pubDate>Mon, 05 Dec 2005 08:56:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unix-procedure-equivalent-in-ovms/m-p/3681432#M33155</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-12-05T08:56:04Z</dc:date>
    </item>
  </channel>
</rss>

