<?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: Calculate weeknumber with a DCL-script in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951121#M73650</link>
    <description>Hi,&lt;BR /&gt;Thanks to all. :-)</description>
    <pubDate>Wed, 11 Jan 2006 08:13:37 GMT</pubDate>
    <dc:creator>geir_2</dc:creator>
    <dc:date>2006-01-11T08:13:37Z</dc:date>
    <item>
      <title>Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951113#M73642</link>
      <description>is it possible to use a simple DCL-script to calculate the actual weeknumber? 1-52 (53, some special events)&lt;BR /&gt;&lt;BR /&gt;Maybe it's possibel to use daynumber in the year together with a modulo function?&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Geir&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jan 2006 05:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951113#M73642</guid>
      <dc:creator>geir_2</dc:creator>
      <dc:date>2006-01-10T05:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951114#M73643</link>
      <description>Geir,&lt;BR /&gt;&lt;BR /&gt;use the lexical f$cvtime to get the weeknumber.&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Marc</description>
      <pubDate>Tue, 10 Jan 2006 05:19:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951114#M73643</guid>
      <dc:creator>Marc Van den Broeck</dc:creator>
      <dc:date>2006-01-10T05:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951115#M73644</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have problem to find suitable arguments to calculate weeknumber. Myabe I have som trouble to see the correct argument??&lt;BR /&gt;&lt;BR /&gt;geir</description>
      <pubDate>Tue, 10 Jan 2006 05:33:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951115#M73644</guid>
      <dc:creator>geir_2</dc:creator>
      <dc:date>2006-01-10T05:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951116#M73645</link>
      <description>Does this do want you want?&lt;BR /&gt;WEEKNO = 1+ f$cvtime(,"ABSOLUTE","DAYOFYEAR")/7&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jan 2006 05:34:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951116#M73645</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-01-10T05:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951117#M73646</link>
      <description>Geir,&lt;BR /&gt;Got this (=attachment) a while back from the net (don't know where exactly).&lt;BR /&gt;According to the comments, the algorithm is by Rick McCarty.&lt;BR /&gt;It seems to do what you want.&lt;BR /&gt;Have fun,&lt;BR /&gt;Kris (aka Qkcl)&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jan 2006 06:49:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951117#M73646</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2006-01-10T06:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951118#M73647</link>
      <description>Presumably the answer would depend on how you define the first week of the year. Ian's answer above would give Sunday 1st Jan-Saturday 6th Jan as week 1; the ISO answer says 1st Jan was week 52 of last year. Next year Ian's answer would be Monday 1st Jan-Sunday 6th Jan. &lt;BR /&gt;Other definitions of week 1 would be the week that contains Jan 1; the week that contains the first Monday of the year; or the first week that contains a majority of days in this year. &lt;BR /&gt;So probably best that you define in words what your definition of the first week of the year is, then doubtless someone will come up with a bit of DCL for you!&lt;BR /&gt;&lt;BR /&gt;Have fun,&lt;BR /&gt;&lt;BR /&gt;PJ</description>
      <pubDate>Tue, 10 Jan 2006 20:02:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951118#M73647</guid>
      <dc:creator>Paul Jerrom</dc:creator>
      <dc:date>2006-01-10T20:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951119#M73648</link>
      <description>Paul,&lt;BR /&gt;&lt;BR /&gt;see the attachment by QKCL for the official ISO definition.&lt;BR /&gt;The week (monday though sunday) containing the first THURSDAY of the year is defined to be Week 01.&lt;BR /&gt;And if you wonder how they got to THAT definition: they probably were utterly drunk and at the same time using some illegal hallicinogens at the same time!&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;BR /&gt;</description>
      <pubDate>Wed, 11 Jan 2006 04:42:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951119#M73648</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-01-11T04:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951120#M73649</link>
      <description>Jan, no , they were just (too?) sober: the Thursday rule makes sure week 01 contains at least 1 working day.&lt;BR /&gt;&lt;BR /&gt;(Although I admit it is true for western culture only, where Sat./Sunday is the weekend).</description>
      <pubDate>Wed, 11 Jan 2006 08:04:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951120#M73649</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2006-01-11T08:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951121#M73650</link>
      <description>Hi,&lt;BR /&gt;Thanks to all. :-)</description>
      <pubDate>Wed, 11 Jan 2006 08:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951121#M73650</guid>
      <dc:creator>geir_2</dc:creator>
      <dc:date>2006-01-11T08:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951122#M73651</link>
      <description>Jan,&lt;BR /&gt;&lt;BR /&gt;the thursday rule is equivalent to "week containing at least 4 days" or "majority of days in the week".&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Wed, 11 Jan 2006 09:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951122#M73651</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2006-01-11T09:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951123#M73652</link>
      <description>Jan,&lt;BR /&gt;&lt;BR /&gt;"week containing the first thursday" is equivalent to "first week containing at least 4 days" or "first week with a majority of days in the week".&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Wed, 11 Jan 2006 09:25:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951123#M73652</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2006-01-11T09:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate weeknumber with a DCL-script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951124#M73653</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;ok, that explains it a bit better than the official text!&lt;BR /&gt;&lt;BR /&gt;Tnx.&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, 11 Jan 2006 09:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/calculate-weeknumber-with-a-dcl-script/m-p/4951124#M73653</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-01-11T09:35:51Z</dc:date>
    </item>
  </channel>
</rss>

