 




<?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: Converting julian date with CL on the AS400</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 23:11:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Rrbond07</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/#comment-115217</link>
		<dc:creator>Rrbond07</dc:creator>
		<pubDate>Tue, 15 Jan 2013 02:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/#comment-115217</guid>
		<description><![CDATA[Well, I&#039;ve tried the ADDDAT and it gave me the results I wanted.  From 011413 it subtracted 35 days that I wanted and gave me 121012.  Now my next question, I want to delete all IFS entries with the extention having .xml.  Using the date of 121012, I need  to delete any .xml entires older than 121012.  How would I do that using DLTIFS?  Thanks for any help you can offer.]]></description>
		<content:encoded><![CDATA[<p>Well, I&#8217;ve tried the ADDDAT and it gave me the results I wanted.  From 011413 it subtracted 35 days that I wanted and gave me 121012.  Now my next question, I want to delete all IFS entries with the extention having .xml.  Using the date of 121012, I need  to delete any .xml entires older than 121012.  How would I do that using DLTIFS?  Thanks for any help you can offer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rrbond07</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/#comment-115182</link>
		<dc:creator>Rrbond07</dc:creator>
		<pubDate>Sun, 13 Jan 2013 19:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/#comment-115182</guid>
		<description><![CDATA[Thanks people.  Yes, I did get the same result 12973 which is not correct.  I&#039;ve been away from CL for so long I&#039;ve forgotten most of it.  I will check out the ADDDAT and see what I can come up with.
Further suggestions are always welcome!!  Thanks!]]></description>
		<content:encoded><![CDATA[<p>Thanks people.  Yes, I did get the same result 12973 which is not correct.  I&#8217;ve been away from CL for so long I&#8217;ve forgotten most of it.  I will check out the ADDDAT and see what I can come up with.<br />
Further suggestions are always welcome!!  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/#comment-115054</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Thu, 10 Jan 2013 04:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/#comment-115054</guid>
		<description><![CDATA[There are a couple problems with the routine. First, it has a bunch of MONMSG CPF0000 commands throughout the code. All of those should either be removed or be replaced with useful MONMSG handlers.
&#160;
But this statement is not logically valid:
CHGVAR VAR(&amp;MBRDAT2) VALUE(&amp;MBRDAT2-35)
It&#039;s okay mathematically, but the value is being used as a Julian date. And that makes the subtraction logically invalid. You can&#039;t be adding and subracting Julian date values and then using the resulting values as new Julian dates.
&#160;
If you want to add/subtract a number of days to a date, you have to work with date durations or not use dates. See the &lt;a href=&quot;http://itknowledgeexchange.techtarget.com/itanswers/convert-an-iso-date-to-longjul-in-clp/&quot; rel=&quot;nofollow&quot;&gt;Convert an *iso date to *longjul in CLP&lt;/A&gt; thread for one recent discussion.
&#160;
Since you seem to have TAATOOLs, you can probably use one of those tools to do the math.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p>There are a couple problems with the routine. First, it has a bunch of MONMSG CPF0000 commands throughout the code. All of those should either be removed or be replaced with useful MONMSG handlers.<br />
&nbsp;<br />
But this statement is not logically valid:<br />
CHGVAR VAR(&amp;MBRDAT2) VALUE(&amp;MBRDAT2-35)<br />
It&#8217;s okay mathematically, but the value is being used as a Julian date. And that makes the subtraction logically invalid. You can&#8217;t be adding and subracting Julian date values and then using the resulting values as new Julian dates.<br />
&nbsp;<br />
If you want to add/subtract a number of days to a date, you have to work with date durations or not use dates. See the <a href="http://itknowledgeexchange.techtarget.com/itanswers/convert-an-iso-date-to-longjul-in-clp/" rel="nofollow">Convert an *iso date to *longjul in CLP</a> thread for one recent discussion.<br />
&nbsp;<br />
Since you seem to have TAATOOLs, you can probably use one of those tools to do the math.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/#comment-115046</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 10 Jan 2013 02:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/#comment-115046</guid>
		<description><![CDATA[&lt;a href=&quot;http://taatool.com/document/L_adddat.htm&quot; rel=&quot;nofollow&quot;&gt;http://taatool.com/document/L_adddat.htm&lt;/a&gt;]]></description>
		<content:encoded><![CDATA[<p><a href="http://taatool.com/document/L_adddat.htm" rel="nofollow">http://taatool.com/document/L_adddat.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/#comment-115045</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 10 Jan 2013 02:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/converting-julian-date-with-cl-on-the-as400/#comment-115045</guid>
		<description><![CDATA[&#160;Today is 13008 subtract 35 is 12973 which is not the answer you wantBut if you have TAATOOL then you have ADDDAT,&#160; ADDDAT will add or subtract and&#160;will do everything you want in a single step!]]></description>
		<content:encoded><![CDATA[<p>&nbsp;Today is 13008 subtract 35 is 12973 which is not the answer you wantBut if you have TAATOOL then you have ADDDAT,&nbsp; ADDDAT will add or subtract and&nbsp;will do everything you want in a single step!</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.034 seconds using memcached
Object Caching 321/327 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 23:20:07 -->