<?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: dir/date by YYYY-MMM-DD in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025599#M24010</link>
    <description>&lt;BR /&gt;I like making dir output sortable dates.&lt;BR /&gt;&lt;BR /&gt;But you can also teach sort how to do dates.&lt;BR /&gt;&lt;BR /&gt;Here is the core from an old procedure which I first saw back in 1991 created by Eric Osman @ Digital.&lt;BR /&gt;&lt;BR /&gt;$ pipe dir/col=1/wid=fil=55/nohead/notrai/date | sort/spec=sort_by_date.sort sys$pipe sys$output&lt;BR /&gt;&lt;BR /&gt;----------- sort_by_date.sort -----------&lt;BR /&gt;/collating_sequence=&lt;BR /&gt;    (&lt;BR /&gt;    sequence=("AN","EB","AR","PR","AY","UN","UL","UG","EP","CT","OV","EC",&lt;BR /&gt;    " ","0"-"9"),&lt;BR /&gt;    fold&lt;BR /&gt;    )&lt;BR /&gt;                        ! second and third letters of each month&lt;BR /&gt;&lt;BR /&gt;/field=(name=year,pos:65,size:4)&lt;BR /&gt;/field=(name=month,pos:62,size:2)       ! start at SECOND letter&lt;BR /&gt;/field=(name=day,pos:58,size:2)&lt;BR /&gt;/field=(name=time,pos:70,size:11)&lt;BR /&gt;                        ! assume "14-OCT-1986 09:14:46.00" at position 58&lt;BR /&gt;/key=(year,descending)&lt;BR /&gt;/key=(month,descending)&lt;BR /&gt;/key=(day,descending)&lt;BR /&gt;/key=(time,descending)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.</description>
    <pubDate>Tue, 30 Jan 2007 16:17:40 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2007-01-30T16:17:40Z</dc:date>
    <item>
      <title>dir/date by YYYY-MMM-DD</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025596#M24007</link>
      <description>I have a need to show files in a directory sorted by date. I wrote a hokey DCL procedure to do that, but I was wondering if there's a way to tell the DIR command to output the date in YYYY-MMM-DD format instead of DD-MMM-YYYY. That way I could just send the output to a file and then sort it.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Tue, 30 Jan 2007 14:56:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025596#M24007</guid>
      <dc:creator>Stephen Daddona</dc:creator>
      <dc:date>2007-01-30T14:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: dir/date by YYYY-MMM-DD</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025597#M24008</link>
      <description>&lt;!--!*#--&gt;Yes, just do:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE LIB$DT_FORMAT -&lt;BR /&gt;LIB$DATE_FORMAT_037,LIB$TIME_FORMAT_001</description>
      <pubDate>Tue, 30 Jan 2007 15:50:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025597#M24008</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-01-30T15:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: dir/date by YYYY-MMM-DD</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025598#M24009</link>
      <description>I should have mentioned that you need to execute this command if it is not already in one of your system startup files:&lt;BR /&gt;&lt;BR /&gt;$ @SYS$MANAGER:LIB$DT_STARTUP</description>
      <pubDate>Tue, 30 Jan 2007 16:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025598#M24009</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2007-01-30T16:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: dir/date by YYYY-MMM-DD</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025599#M24010</link>
      <description>&lt;BR /&gt;I like making dir output sortable dates.&lt;BR /&gt;&lt;BR /&gt;But you can also teach sort how to do dates.&lt;BR /&gt;&lt;BR /&gt;Here is the core from an old procedure which I first saw back in 1991 created by Eric Osman @ Digital.&lt;BR /&gt;&lt;BR /&gt;$ pipe dir/col=1/wid=fil=55/nohead/notrai/date | sort/spec=sort_by_date.sort sys$pipe sys$output&lt;BR /&gt;&lt;BR /&gt;----------- sort_by_date.sort -----------&lt;BR /&gt;/collating_sequence=&lt;BR /&gt;    (&lt;BR /&gt;    sequence=("AN","EB","AR","PR","AY","UN","UL","UG","EP","CT","OV","EC",&lt;BR /&gt;    " ","0"-"9"),&lt;BR /&gt;    fold&lt;BR /&gt;    )&lt;BR /&gt;                        ! second and third letters of each month&lt;BR /&gt;&lt;BR /&gt;/field=(name=year,pos:65,size:4)&lt;BR /&gt;/field=(name=month,pos:62,size:2)       ! start at SECOND letter&lt;BR /&gt;/field=(name=day,pos:58,size:2)&lt;BR /&gt;/field=(name=time,pos:70,size:11)&lt;BR /&gt;                        ! assume "14-OCT-1986 09:14:46.00" at position 58&lt;BR /&gt;/key=(year,descending)&lt;BR /&gt;/key=(month,descending)&lt;BR /&gt;/key=(day,descending)&lt;BR /&gt;/key=(time,descending)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.</description>
      <pubDate>Tue, 30 Jan 2007 16:17:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025599#M24010</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-01-30T16:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: dir/date by YYYY-MMM-DD</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025600#M24011</link>
      <description>Jess,&lt;BR /&gt;&lt;BR /&gt;I just found that out!  Thanks!</description>
      <pubDate>Tue, 30 Jan 2007 16:25:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025600#M24011</guid>
      <dc:creator>Stephen Daddona</dc:creator>
      <dc:date>2007-01-30T16:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: dir/date by YYYY-MMM-DD</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025601#M24012</link>
      <description>Craig, there's a utility by  K.G.G. Clippeleyr called QDSB which enhances the DIR command and allows for different sorts :-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;QDSB&lt;BR /&gt;&lt;BR /&gt;  /SORTED_BY&lt;BR /&gt;&lt;BR /&gt;    /SORTED_BY=(keyword[,...])&lt;BR /&gt;&lt;BR /&gt;    Presents the information sorted according to  several  criteria.   The&lt;BR /&gt;    following keywords are allowed:&lt;BR /&gt;&lt;BR /&gt;        NODE&lt;BR /&gt;        List  of  files  is  sorted  by  node   specification   (currently&lt;BR /&gt;        unsupported).&lt;BR /&gt;&lt;BR /&gt;        DEVICE&lt;BR /&gt;        List of files is sorted by device specification.&lt;BR /&gt;&lt;BR /&gt;        DIRECTORY&lt;BR /&gt;        List of files is sorted by directory specification.&lt;BR /&gt;&lt;BR /&gt;        NAME&lt;BR /&gt;        List of files is sorted by filename.&lt;BR /&gt;&lt;BR /&gt;        TYPE&lt;BR /&gt;        List of files is sorted by file type.&lt;BR /&gt;&lt;BR /&gt;        VERSION&lt;BR /&gt;        List of files is  sorted  by  version  (descending  order  is  the&lt;BR /&gt;        default).&lt;BR /&gt;&lt;BR /&gt;        FILE_ID&lt;BR /&gt;        List of  files  is  sorted  by  file  identification  (by  default&lt;BR /&gt;        ascending on RVN, then on FID).&lt;BR /&gt;&lt;BR /&gt;        OWNER_ALPHANUMERIC&lt;BR /&gt;        List of files is sorted by the alphanumeric representation of  the&lt;BR /&gt;        owner of the files.&lt;BR /&gt;&lt;BR /&gt;        OWNER_NUMERIC&lt;BR /&gt;        List of files is sorted by the numeric representation of the owner of the files.&lt;BR /&gt;&lt;BR /&gt;        SIZE_USED&lt;BR /&gt;        List of files is sorted by the size of the files.&lt;BR /&gt;&lt;BR /&gt;        SIZE_ALLOCATED&lt;BR /&gt;        List of files is sorted by the allocated size of the files.&lt;BR /&gt;&lt;BR /&gt;        DATE_CREATED&lt;BR /&gt;        List of files is sorted by the creation date of the files.&lt;BR /&gt;&lt;BR /&gt;        DATE_MODIFIED&lt;BR /&gt;        List of files is sorted by the revision date of the files.&lt;BR /&gt;&lt;BR /&gt;        DATE_EXPIRED&lt;BR /&gt;        List of files is sorted by the expiration date of the files.&lt;BR /&gt;&lt;BR /&gt;        DATE_BACKUPED&lt;BR /&gt;        List of files is sorted by the backup date of the files.&lt;BR /&gt;&lt;BR /&gt;        DATE_EFFECTIVE&lt;BR /&gt;        List of files is sorted by the effective date of the files.&lt;BR /&gt;&lt;BR /&gt;        DATE_RECORDED&lt;BR /&gt;        List of files is sorted by the recorded date of the files.&lt;BR /&gt;&lt;BR /&gt;        DATE_ACCESSED&lt;BR /&gt;        List of files is sorted by the date the files were last accessed.&lt;BR /&gt;&lt;BR /&gt;        DATE_ATTRIBUTES_MODIFIED&lt;BR /&gt;        List of files is sorted by the date the attributes  of  the  files&lt;BR /&gt;        were changed.&lt;BR /&gt;&lt;BR /&gt;        DATE_DATA_MODIFIED&lt;BR /&gt;        List of files is sorted by the date the contents of the files were&lt;BR /&gt;        changed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    Each keyword can be accompanied by two other keywords:&lt;BR /&gt;&lt;BR /&gt;        ORDER&lt;BR /&gt;        ORDER=ASCENDING (the default, except for VERSION),  indicates  the&lt;BR /&gt;        information must be sorted in ascending order.&lt;BR /&gt;        ORDER=DESCENDING, indicates the  information  must  be  sorted  in&lt;BR /&gt;        descending order.&lt;BR /&gt;&lt;BR /&gt;        PRIORITY&lt;BR /&gt;        PRIORITY=n, where 'n' is a positive integer number, indicates  the&lt;BR /&gt;        priority  of  the item in the sort operation; the lower the value,&lt;BR /&gt;        the higher the priority.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rob.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jan 2007 03:43:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025601#M24012</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2007-01-31T03:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: dir/date by YYYY-MMM-DD</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025602#M24013</link>
      <description>Craig,&lt;BR /&gt;&lt;BR /&gt;As Robert mentioned (thanx) the QDSB utility is downloadable from our website ( &lt;A href="http://www.quadratrix.be" target="_blank"&gt;www.quadratrix.be&lt;/A&gt; , look in the Products section). A new version (V0.3) is coming up (I'm polishing it right now).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jan 2007 06:32:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025602#M24013</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2007-01-31T06:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: dir/date by YYYY-MMM-DD</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025603#M24014</link>
      <description>I got QDSB and tried it, and it works great!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 31 Jan 2007 12:31:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-date-by-yyyy-mmm-dd/m-p/5025603#M24014</guid>
      <dc:creator>Stephen Daddona</dc:creator>
      <dc:date>2007-01-31T12:31:25Z</dc:date>
    </item>
  </channel>
</rss>

