<?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: SORTing a VMS file as per time stamp in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026575#M81654</link>
    <description>Slihgt correction on Gerard Labadie's answer.&lt;BR /&gt;Sin your date-stamp is NOT Year-month-day, you need to construct a multi-key SORT, for which you have to break-up your date-field.&lt;BR /&gt;&lt;BR /&gt;As Gerard says:&lt;BR /&gt;$ HELP SORT&lt;BR /&gt;especially the /KEY paragraph is relevant here.&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</description>
    <pubDate>Mon, 05 Feb 2007 06:32:20 GMT</pubDate>
    <dc:creator>Jan van den Ende</dc:creator>
    <dc:date>2007-02-05T06:32:20Z</dc:date>
    <item>
      <title>SORTing a VMS file as per time stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026572#M81651</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Please guide me on how to sort the file as per time stamp in descending order. I am atttaching a sample file for this.</description>
      <pubDate>Mon, 05 Feb 2007 05:47:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026572#M81651</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2007-02-05T05:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: SORTing a VMS file as per time stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026573#M81652</link>
      <description>if your file is called a.tmp, something like&lt;BR /&gt;&lt;BR /&gt;sort /key=(pos:39,siz=19) a.tmp b.tmp&lt;BR /&gt;&lt;BR /&gt;You have the sorted file in b.tmp&lt;BR /&gt;&lt;BR /&gt;$ Help sort&lt;BR /&gt;&lt;BR /&gt;will give you more information.</description>
      <pubDate>Mon, 05 Feb 2007 06:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026573#M81652</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2007-02-05T06:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: SORTing a VMS file as per time stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026574#M81653</link>
      <description>Hassan,&lt;BR /&gt;&lt;BR /&gt;After lookiing at your sample file, a straightforward observation: First correct the time/date format to yyyy-mm-dd:hh:mm:ss. &lt;BR /&gt;&lt;BR /&gt;Changing the time information to the above format will allow the time/date information to be sorted as a single key. Then use a SORT command as Gerard stated in his post.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Mon, 05 Feb 2007 06:15:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026574#M81653</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2007-02-05T06:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: SORTing a VMS file as per time stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026575#M81654</link>
      <description>Slihgt correction on Gerard Labadie's answer.&lt;BR /&gt;Sin your date-stamp is NOT Year-month-day, you need to construct a multi-key SORT, for which you have to break-up your date-field.&lt;BR /&gt;&lt;BR /&gt;As Gerard says:&lt;BR /&gt;$ HELP SORT&lt;BR /&gt;especially the /KEY paragraph is relevant here.&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</description>
      <pubDate>Mon, 05 Feb 2007 06:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026575#M81654</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-02-05T06:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: SORTing a VMS file as per time stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026576#M81655</link>
      <description>That dd-mm-yyyy:hh:mm:cc is an easy time stamp!&lt;BR /&gt;Too bad it was not yyyy-mm-dd:.... even easier!&lt;BR /&gt;&lt;BR /&gt;Anyway to get several ideas:&lt;BR /&gt;google: +openvms +directory +sort "by date"&lt;BR /&gt;&lt;BR /&gt;And of course, check HELP SORT/KEY as suggesed.&lt;BR /&gt;&lt;BR /&gt;A recent entry here with tricky, textual, months:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1095459" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1095459&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Actual solution is probably:&lt;BR /&gt;&lt;BR /&gt;$ sort/key=(pos:46,size:4,des)/key=(pos:43,siz:2,des)/key=(pos:40,siz:2,des)/key=(pos:51,siz:8,des) &lt;INPUT /&gt; &lt;OUTPUT&gt;&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;&lt;/OUTPUT&gt;</description>
      <pubDate>Mon, 05 Feb 2007 07:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026576#M81655</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-02-05T07:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: SORTing a VMS file as per time stamp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026577#M81656</link>
      <description>Thanks for your help.</description>
      <pubDate>Tue, 06 Feb 2007 08:11:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sorting-a-vms-file-as-per-time-stamp/m-p/5026577#M81656</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2007-02-06T08:11:55Z</dc:date>
    </item>
  </channel>
</rss>

