<?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: Files with no name in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/files-with-no-name/m-p/4984505#M76880</link>
    <description>Art,&lt;BR /&gt;&lt;BR /&gt;  The issue here is the DIRECTORY command default filespec of *.*;*&lt;BR /&gt;&lt;BR /&gt;  If you leave the filename field blank, DIRECTORY will fill in "*". As Steven has shown, "%*" means "any non null", so the /EXCLUDE qualifier can be used to exclude those files, leaving you with the ones you're interested in.&lt;BR /&gt;&lt;BR /&gt;  Another method is to use a command which doesn't have a wildcard default filename. For example:&lt;BR /&gt;&lt;BR /&gt;  $ COPY .TXT;* NL:/LOG&lt;BR /&gt;&lt;BR /&gt;or use F$SEARCH&lt;BR /&gt;&lt;BR /&gt;  $ loop:&lt;BR /&gt;  $   f=F$SEARCH(".TXT;*")&lt;BR /&gt;  $   WRITE SYS$OUTPUT f&lt;BR /&gt;  $ IF f.NES."" THEN GOTO loop&lt;BR /&gt;&lt;BR /&gt;The important thing to take away from this is that the behaviour you see is a result of the DIRECTORY command, not RMS filespecs in general (but note that BACKUP uses the same defaults as DIRECTORY...)&lt;BR /&gt;&lt;BR /&gt;RENAME is like COPY, so you can just RENAME the files into a subdirectory:&lt;BR /&gt;&lt;BR /&gt;  $ RENAME .*;* [.NONAME]/LOG&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Jun 2006 18:33:53 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2006-06-12T18:33:53Z</dc:date>
    <item>
      <title>Files with no name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/files-with-no-name/m-p/4984503#M76878</link>
      <description>I have yet another directory with 10's of thousands of files of small files consuming vast amounts of allocated space (because of a poor choice on cluster size).  I noticed while trying to list the contents of the directory, that there are "many" files that don't have a name ie. just an extension and a version.&lt;BR /&gt;&lt;BR /&gt;How can I "work" with these files.  If I enter DIR [dir.subdir].TXT;* I get all .TXT files, not just the no-name ones.&lt;BR /&gt;&lt;BR /&gt;My goal is to backup/delete the files by year created and put them in subdirectory from where I can ZIP them if they are old enough.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Art</description>
      <pubDate>Fri, 09 Jun 2006 16:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/files-with-no-name/m-p/4984503#M76878</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2006-06-09T16:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Files with no name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/files-with-no-name/m-p/4984504#M76879</link>
      <description>"%*.TXT" (or "*%.TXT") will match only the&lt;BR /&gt;ones with a non-null name.&lt;BR /&gt;&lt;BR /&gt;alp $ dire %*.txt&lt;BR /&gt;&lt;BR /&gt;Directory ALP$DKA0:[SMS.TEST3]&lt;BR /&gt;&lt;BR /&gt;A.TXT;1&lt;BR /&gt;&lt;BR /&gt;Total of 1 file.&lt;BR /&gt;&lt;BR /&gt;alp $ dire /excl = %*.txt *.txt&lt;BR /&gt;&lt;BR /&gt;Directory ALP$DKA0:[SMS.TEST3]&lt;BR /&gt;&lt;BR /&gt;.TXT;1&lt;BR /&gt;&lt;BR /&gt;Total of 1 file.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jun 2006 16:29:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/files-with-no-name/m-p/4984504#M76879</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-06-09T16:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Files with no name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/files-with-no-name/m-p/4984505#M76880</link>
      <description>Art,&lt;BR /&gt;&lt;BR /&gt;  The issue here is the DIRECTORY command default filespec of *.*;*&lt;BR /&gt;&lt;BR /&gt;  If you leave the filename field blank, DIRECTORY will fill in "*". As Steven has shown, "%*" means "any non null", so the /EXCLUDE qualifier can be used to exclude those files, leaving you with the ones you're interested in.&lt;BR /&gt;&lt;BR /&gt;  Another method is to use a command which doesn't have a wildcard default filename. For example:&lt;BR /&gt;&lt;BR /&gt;  $ COPY .TXT;* NL:/LOG&lt;BR /&gt;&lt;BR /&gt;or use F$SEARCH&lt;BR /&gt;&lt;BR /&gt;  $ loop:&lt;BR /&gt;  $   f=F$SEARCH(".TXT;*")&lt;BR /&gt;  $   WRITE SYS$OUTPUT f&lt;BR /&gt;  $ IF f.NES."" THEN GOTO loop&lt;BR /&gt;&lt;BR /&gt;The important thing to take away from this is that the behaviour you see is a result of the DIRECTORY command, not RMS filespecs in general (but note that BACKUP uses the same defaults as DIRECTORY...)&lt;BR /&gt;&lt;BR /&gt;RENAME is like COPY, so you can just RENAME the files into a subdirectory:&lt;BR /&gt;&lt;BR /&gt;  $ RENAME .*;* [.NONAME]/LOG&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Jun 2006 18:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/files-with-no-name/m-p/4984505#M76880</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2006-06-12T18:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Files with no name</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/files-with-no-name/m-p/4984506#M76881</link>
      <description>Thanks guys!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Art</description>
      <pubDate>Tue, 13 Jun 2006 07:39:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/files-with-no-name/m-p/4984506#M76881</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2006-06-13T07:39:15Z</dc:date>
    </item>
  </channel>
</rss>

