 




<?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: What date is returned after midnight rollover on AS/400 job queue?</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/what-date-is-returned/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/what-date-is-returned/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 17:50:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: canuhp</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/what-date-is-returned/#comment-82660</link>
		<dc:creator>canuhp</dc:creator>
		<pubDate>Thu, 21 Oct 2010 11:55:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-82660</guid>
		<description><![CDATA[Great Tom, thanks!]]></description>
		<content:encoded><![CDATA[<p>Great Tom, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/what-date-is-returned/#comment-82642</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 20 Oct 2010 23:28:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-82642</guid>
		<description><![CDATA[Just to test results, I submitted a trivial CL program that did DLYJOB until 1:15 AM, retrieved all three dates, and ran DMPCLPGM.
&lt;pre&gt;
&amp;CYMDDATE                *CHAR            7       &#039;1101019&#039;             
&amp;DATE                    *CHAR            6       &#039;101910&#039;              
&amp;DATETIME                *CHAR           20       &#039;20101020011500007984&#039;&lt;/pre&gt;
The first two values show the &quot;job date&quot; of Oct 19, 2010. The timestamp shows &quot;current&quot; date/time with Oct 20, 2010, for the date.

So, you get a choice.

Tom]]></description>
		<content:encoded><![CDATA[<p>Just to test results, I submitted a trivial CL program that did DLYJOB until 1:15 AM, retrieved all three dates, and ran DMPCLPGM.</p>
<pre>
&amp;CYMDDATE                *CHAR            7       '1101019'             
&amp;DATE                    *CHAR            6       '101910'              
&amp;DATETIME                *CHAR           20       '20101020011500007984'</pre>
<p>The first two values show the &#8220;job date&#8221; of Oct 19, 2010. The timestamp shows &#8220;current&#8221; date/time with Oct 20, 2010, for the date.</p>
<p>So, you get a choice.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: canuhp</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/what-date-is-returned/#comment-82622</link>
		<dc:creator>canuhp</dc:creator>
		<pubDate>Wed, 20 Oct 2010 14:24:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-82622</guid>
		<description><![CDATA[Thanks so much for the help!!]]></description>
		<content:encoded><![CDATA[<p>Thanks so much for the help!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/what-date-is-returned/#comment-82603</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 20 Oct 2010 01:23:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-82603</guid>
		<description><![CDATA[IIRC, the DATE() and CYMDDATE() parameters will return the job date, while DATETIME() returns current date. That is, the date from either of the first two parameters can be different from the date from the third parameter.

Job date is set at the moment that the job starts; it doesn&#039;t change while the job runs even past midnight.

Current date changes at midnight.

If your job starts to run at 10:30 PM on Oct 19, 2010, and continues running for five hours, the job date will still be 10/19/2010 while the job is ending. But the current date will have changed to 10/20/2010.

RTVJOBA DATE(&amp;date) will return the date from before midnight if the job started before midnight.

If the job simply was stuck on a job queue until after midnight and then it started, it will get the date after midnight.

Tom]]></description>
		<content:encoded><![CDATA[<p>IIRC, the DATE() and CYMDDATE() parameters will return the job date, while DATETIME() returns current date. That is, the date from either of the first two parameters can be different from the date from the third parameter.</p>
<p>Job date is set at the moment that the job starts; it doesn&#8217;t change while the job runs even past midnight.</p>
<p>Current date changes at midnight.</p>
<p>If your job starts to run at 10:30 PM on Oct 19, 2010, and continues running for five hours, the job date will still be 10/19/2010 while the job is ending. But the current date will have changed to 10/20/2010.</p>
<p>RTVJOBA DATE(&amp;date) will return the date from before midnight if the job started before midnight.</p>
<p>If the job simply was stuck on a job queue until after midnight and then it started, it will get the date after midnight.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: canuhp</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/what-date-is-returned/#comment-82592</link>
		<dc:creator>canuhp</dc:creator>
		<pubDate>Tue, 19 Oct 2010 17:26:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-82592</guid>
		<description><![CDATA[Don&#039;t need to get the time it entered the system, just need to know which it will return. If returns the date prior to midnight that is good. If it returns the date after midnight then I need to move it back a day. At month end this becomes a critical question.]]></description>
		<content:encoded><![CDATA[<p>Don&#8217;t need to get the time it entered the system, just need to know which it will return. If returns the date prior to midnight that is good. If it returns the date after midnight then I need to move it back a day. At month end this becomes a critical question.</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 6/9 queries in 0.016 seconds using memcached
Object Caching 324/327 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 17:55:57 -->