 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 2039 Year Limitation in CVTDATE</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 11:56:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: gfprogrammer</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114171</link>
		<dc:creator>gfprogrammer</dc:creator>
		<pubDate>Mon, 10 Dec 2012 22:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114171</guid>
		<description><![CDATA[&lt;p&gt;As Bruce pointed out 1900 and 2100 are not leap years.&#160; To be a leap year the century must be divisible by 400 and not 4 as other&#160;leap years.&#160;We were luck for the year 2000.&#160; &lt;/p&gt;&lt;p&gt;I will not have the &quot;pleasure&quot; to&#160; see how the next century dates will be programmed&#160;but it should be interesting.&#160; Banks and mortgage companies will have to start thinking about this in a few short years.&lt;/p&gt;]]></description>
		<content:encoded><![CDATA[<p>As Bruce pointed out 1900 and 2100 are not leap years.&nbsp; To be a leap year the century must be divisible by 400 and not 4 as other&nbsp;leap years.&nbsp;We were luck for the year 2000.&nbsp; </p>
<p>I will not have the &#8220;pleasure&#8221; to&nbsp; see how the next century dates will be programmed&nbsp;but it should be interesting.&nbsp; Banks and mortgage companies will have to start thinking about this in a few short years.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bvining</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114104</link>
		<dc:creator>bvining</dc:creator>
		<pubDate>Fri, 07 Dec 2012 17:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114104</guid>
		<description><![CDATA[Tom,
You have correctly identified the problem years when working with Julian dates that do not provide century digits. Using 2-digit years CVTDAT would assume the year being processed is 2000, which has a leap day. Both 1900 and 2100 on the other hand do not have leap days, so julian day of year mapping with formats such as *YMD would cause incorrect day values, in those years, for days past February 28.]]></description>
		<content:encoded><![CDATA[<p>Tom,<br />
You have correctly identified the problem years when working with Julian dates that do not provide century digits. Using 2-digit years CVTDAT would assume the year being processed is 2000, which has a leap day. Both 1900 and 2100 on the other hand do not have leap days, so julian day of year mapping with formats such as *YMD would cause incorrect day values, in those years, for days past February 28.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114082</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Fri, 07 Dec 2012 06:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114082</guid>
		<description><![CDATA[&lt;EM&gt;we require date in julian format to determine the day of the week , the week no , and no of days elapsed in the year and left in &#160;the year ...&lt;/EM&gt;
&#160;
In that case, you might be better off using the SQL DAYOFYEAR() and WEEK() (or WEEK_ISO()) &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fdb2%2Frbafzmstscale.htm&quot; rel=&quot;nofollow&quot;&gt;Scalar functions&lt;/A&gt;.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p><em>we require date in julian format to determine the day of the week , the week no , and no of days elapsed in the year and left in &nbsp;the year &#8230;</em><br />
&nbsp;<br />
In that case, you might be better off using the SQL DAYOFYEAR() and WEEK() (or WEEK_ISO()) <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fdb2%2Frbafzmstscale.htm" rel="nofollow">Scalar functions</a>.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asakla</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114081</link>
		<dc:creator>asakla</dc:creator>
		<pubDate>Fri, 07 Dec 2012 05:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114081</guid>
		<description><![CDATA[Yes we require date in julian format to determine the day of the week , the week no , and no of days elapsed in the year and left in &#160;the year ....&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;For this CVTDAT limitation of 2039 we created a new Command now same as CVTDAT but no limitation on year ,&#160;&lt;/div&gt;&lt;div&gt;As we will be taking the Input Year as YYYY instead of YY , So this Solves the problem for us&#160;&lt;/div&gt;]]></description>
		<content:encoded><![CDATA[<p>Yes we require date in julian format to determine the day of the week , the week no , and no of days elapsed in the year and left in &nbsp;the year &#8230;.
<div></div>
<div>For this CVTDAT limitation of 2039 we created a new Command now same as CVTDAT but no limitation on year ,&nbsp;</div>
<div>As we will be taking the Input Year as YYYY instead of YY , So this Solves the problem for us&nbsp;</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114080</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Fri, 07 Dec 2012 05:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114080</guid>
		<description><![CDATA[Only a minor point if it doesn&#039;t need to be handled. But I seem to recall that you&#039;ve done some work with internal calendars in detail, so you&#039;ve got some useful experience and probably useful info. First thing I&#039;d be concerned about with Julian dates would be the actual range of dates that had to be covered. For example, I&#039;d be nervous about a date projected past early 2100.or back into 1900. What else? -- Tom]]></description>
		<content:encoded><![CDATA[<p>Only a minor point if it doesn&#8217;t need to be handled. But I seem to recall that you&#8217;ve done some work with internal calendars in detail, so you&#8217;ve got some useful experience and probably useful info. First thing I&#8217;d be concerned about with Julian dates would be the actual range of dates that had to be covered. For example, I&#8217;d be nervous about a date projected past early 2100.or back into 1900. What else? &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bvining</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114076</link>
		<dc:creator>bvining</dc:creator>
		<pubDate>Fri, 07 Dec 2012 03:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114076</guid>
		<description><![CDATA[A minor point perhaps, but not using the century digits will result in correct conversions roughly&#160;99.003+ %  of the time. Anyone care to guess why 00.006+ % will be wrong?]]></description>
		<content:encoded><![CDATA[<p>A minor point perhaps, but not using the century digits will result in correct conversions roughly&nbsp;99.003+ %  of the time. Anyone care to guess why 00.006+ % will be wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114068</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Thu, 06 Dec 2012 22:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114068</guid>
		<description><![CDATA[You can also simply not use CVTDAT at all. The ILE CEE &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapis%2FCEEDAYS.htm&quot; rel=&quot;nofollow&quot;&gt;Convert Date to Lilian Format (CEEDAYS)&lt;/A&gt; and &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapis%2FCEEDATE.htm&quot; rel=&quot;nofollow&quot;&gt;Convert Lilian Date to Character Format (CEEDATE)&lt;/A&gt; APIs can convert between any reasonable formats for dates from 14 October 1582 to 31 December 9999.
&#160;
Call&#160;those in a procedure with or without using a command wrapper, or code them directly into ILE CL. The CVTDAT command is convenient for common uses. But if you can&#039;t get past its limitations, you need to do some programming.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p>You can also simply not use CVTDAT at all. The ILE CEE <a href="http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapis%2FCEEDAYS.htm" rel="nofollow">Convert Date to Lilian Format (CEEDAYS)</a> and <a href="http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Fapis%2FCEEDATE.htm" rel="nofollow">Convert Lilian Date to Character Format (CEEDATE)</a> APIs can convert between any reasonable formats for dates from 14 October 1582 to 31 December 9999.<br />
&nbsp;<br />
Call&nbsp;those in a procedure with or without using a command wrapper, or code them directly into ILE CL. The CVTDAT command is convenient for common uses. But if you can&#8217;t get past its limitations, you need to do some programming.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bvining</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114060</link>
		<dc:creator>bvining</dc:creator>
		<pubDate>Thu, 06 Dec 2012 14:26:36 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-114060</guid>
		<description><![CDATA[One alternative available to you is to use the ExtremeCL Date and Time commands. Using the Change Date Variable (CHGDATXCL) command the following program returns a &amp;ToDate value of 3043/266 (the default of the DATSEP keyword is to return a date separator based on the format).
Pgm&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Dcl&#160;&#160;&#160;&#160;&#160;&#160;&#160; Var(&amp;FromDate) Type(*Char) Len(8) + &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Value(&#039;30430923&#039;)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Dcl&#160;&#160;&#160;&#160;&#160;&#160;&#160; Var(&amp;ToDate)&#160;&#160; Type(*Char) Len(10)&#160; ChgDatXCL&#160; Var(&amp;ToDate) Fmt(*LongJul) +&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; BasVal(&amp;FromDate) BasFmt(*YYMD)&#160;&#160; EndPgm&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
As you can see, 2070 is not a concern with the ChgDatXCL command. The command documentation can be found at &lt;a href=&quot;http://www.powercl.com/images/stories/cmdxcldt.html&quot; rel=&quot;nofollow&quot;&gt;http://www.powercl.com/images/stories/cmdxcldt.html&lt;/A&gt;
The Date and Time commands are available starting with V5R4 and with a one-time charge of less than 20 dollars (US) generally don&#039;t cause much in the way of budget problems. Though not shown, the ChgDatXCL command also has a Date adjustment (DATADJ) keyword that allows you to add or subtract up to 50 durations (add &amp;X months, subtract &amp;Y days, etc). Similar commands are included for time and timestamp variables.
Please note that I do work for the company offering this command.
Bruce Vining]]></description>
		<content:encoded><![CDATA[<p>One alternative available to you is to use the ExtremeCL Date and Time commands. Using the Change Date Variable (CHGDATXCL) command the following program returns a &amp;ToDate value of 3043/266 (the default of the DATSEP keyword is to return a date separator based on the format).<br />
Pgm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dcl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Var(&amp;FromDate) Type(*Char) Len(8) + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Value(&#8217;30430923&#8242;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dcl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Var(&amp;ToDate)&nbsp;&nbsp; Type(*Char) Len(10)&nbsp; ChgDatXCL&nbsp; Var(&amp;ToDate) Fmt(*LongJul) +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BasVal(&amp;FromDate) BasFmt(*YYMD)&nbsp;&nbsp; EndPgm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
As you can see, 2070 is not a concern with the ChgDatXCL command. The command documentation can be found at <a href="http://www.powercl.com/images/stories/cmdxcldt.html" rel="nofollow">http://www.powercl.com/images/stories/cmdxcldt.html</a><br />
The Date and Time commands are available starting with V5R4 and with a one-time charge of less than 20 dollars (US) generally don&#8217;t cause much in the way of budget problems. Though not shown, the ChgDatXCL command also has a Date adjustment (DATADJ) keyword that allows you to add or subtract up to 50 durations (add &amp;X months, subtract &amp;Y days, etc). Similar commands are included for time and timestamp variables.<br />
Please note that I do work for the company offering this command.<br />
Bruce Vining</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-113957</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Tue, 04 Dec 2012 12:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-113957</guid>
		<description><![CDATA[Then truncate the century digits from &amp;FROMDATE. If you don&#039;t want to use 4-digit years, then don&#039;t use them. Go back to using *JUL for the output date format, and stop trying to input 4-digit years. -- Tom]]></description>
		<content:encoded><![CDATA[<p>Then truncate the century digits from &amp;FROMDATE. If you don&#8217;t want to use 4-digit years, then don&#8217;t use them. Go back to using *JUL for the output date format, and stop trying to input 4-digit years. &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asakla</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-113954</link>
		<dc:creator>asakla</dc:creator>
		<pubDate>Tue, 04 Dec 2012 12:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/2039-year-limitation-in-cvtdate/#comment-113954</guid>
		<description><![CDATA[Hi TOM ,&#160;I tried the Long Julian it works&#160;But it also has a limitation beyong 2070 ...]]></description>
		<content:encoded><![CDATA[<p>Hi TOM ,&nbsp;I tried the Long Julian it works&nbsp;But it also has a limitation beyong 2070 &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.042 seconds using memcached
Object Caching 393/399 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 13:11:04 -->