<?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: Times spanning midnight in RPG/400 concatenation</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/times-spanning-midnight/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/times-spanning-midnight/</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 09:34:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/times-spanning-midnight/#comment-85927</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 30 Dec 2010 04:36:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-85927</guid>
		<description><![CDATA[Ahh! I &lt;i&gt;thought&lt;/i&gt; &quot;DateDiff&quot; seemed familiar. When I see questions where someone tries an operation from a different platform, I wonder if there is a Visual Basic forum somewhere that has a question like &quot;I tried to use SETLL before a READE in my VB script, but I got this weird error message. Anybody know what I should change?&quot;

Tom]]></description>
		<content:encoded><![CDATA[<p>Ahh! I <i>thought</i> &#8220;DateDiff&#8221; seemed familiar. When I see questions where someone tries an operation from a different platform, I wonder if there is a Visual Basic forum somewhere that has a question like &#8220;I tried to use SETLL before a READE in my VB script, but I got this weird error message. Anybody know what I should change?&#8221;</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/times-spanning-midnight/#comment-85882</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Wed, 29 Dec 2010 01:34:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-85882</guid>
		<description><![CDATA[Two issues
1 - Are you using RPG/400 or RPGLE (RPG/IV)?
2 - Since DATEDiff is an SQL function - are you using SQL?.

DateDiff is not part of the SQL standard and is not a built in function in DB2
However, if you&#039;ve actually made SQL datetime fields (no you can&#039;t just concatenated the date and time into one field) then you could do something like this
select Minutes(dateEnd) - Minutes(dateBegin) as elapsedTime from ....
Phil]]></description>
		<content:encoded><![CDATA[<p>Two issues<br />
1 &#8211; Are you using RPG/400 or RPGLE (RPG/IV)?<br />
2 &#8211; Since DATEDiff is an SQL function &#8211; are you using SQL?.</p>
<p>DateDiff is not part of the SQL standard and is not a built in function in DB2<br />
However, if you&#8217;ve actually made SQL datetime fields (no you can&#8217;t just concatenated the date and time into one field) then you could do something like this<br />
select Minutes(dateEnd) &#8211; Minutes(dateBegin) as elapsedTime from &#8230;.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/times-spanning-midnight/#comment-85881</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 29 Dec 2010 01:23:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-85881</guid>
		<description><![CDATA[I didn&#039;t notice at first that this is a RPG/400 question. In that case, you don&#039;t have procedures available.

&lt;i&gt;DateDiff (&#039;n&#039;,{@startdatetune}, {@startdatetime})&lt;/i&gt;

So, what exactly is &quot;DateDiff&quot;? It&#039;s not part of RPG/400. Where did you get it and how are you using it?

Tom]]></description>
		<content:encoded><![CDATA[<p>I didn&#8217;t notice at first that this is a RPG/400 question. In that case, you don&#8217;t have procedures available.</p>
<p><i>DateDiff (&#8216;n&#8217;,{@startdatetune}, {@startdatetime})</i></p>
<p>So, what exactly is &#8220;DateDiff&#8221;? It&#8217;s not part of RPG/400. Where did you get it and how are you using it?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/times-spanning-midnight/#comment-85874</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 28 Dec 2010 21:12:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-85874</guid>
		<description><![CDATA[&lt;i&gt;I should be able to use any field where I have concatenated the date and time into one field.&lt;/i&gt;

No.

You need to use fields that are appropriately defined and that have appropriate values. Show us your variable definition, the actual values in the variables and the actual statements that do the calculation.

In particular, we need to see the source for your DateDiff() procedure. Without seeing the source, we have no idea what it will do with different variables.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>I should be able to use any field where I have concatenated the date and time into one field.</i></p>
<p>No.</p>
<p>You need to use fields that are appropriately defined and that have appropriate values. Show us your variable definition, the actual values in the variables and the actual statements that do the calculation.</p>
<p>In particular, we need to see the source for your DateDiff() procedure. Without seeing the source, we have no idea what it will do with different variables.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vatchy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/times-spanning-midnight/#comment-85865</link>
		<dc:creator>vatchy</dc:creator>
		<pubDate>Tue, 28 Dec 2010 18:07:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-85865</guid>
		<description><![CDATA[Here is a simple example:

&lt;pre&gt;
     D w@Date          S               Z
     D w@Date1         S               Z
     D w@Diff          S              5P 0

      /Free
        w@Date = %TimeStamp();
        w@Date1 = w@Date - %Minutes(35);
        w@Diff = %Diff(w@Date :w@Date1 : *Minutes);

        *INLR = *On;
      /End-Free
&lt;/pre&gt;

This is a complete program.  w@Diff has a value of 35 which, as you can see, is the difference I entered in the previous line.]]></description>
		<content:encoded><![CDATA[<p>Here is a simple example:</p>
<pre>
     D w@Date          S               Z
     D w@Date1         S               Z
     D w@Diff          S              5P 0

      /Free
        w@Date = %TimeStamp();
        w@Date1 = w@Date - %Minutes(35);
        w@Diff = %Diff(w@Date :w@Date1 : *Minutes);

        *INLR = *On;
      /End-Free
</pre>
<p>This is a complete program.  w@Diff has a value of 35 which, as you can see, is the difference I entered in the previous line.</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.038 seconds using memcached
Object Caching 323/329 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 09:37:03 -->