<?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"
	>
<channel>
	<title>Comments on: Scheduling queries in AS/400</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/scheduling-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/scheduling-queries/</link>
	<description></description>
	<pubDate>Sat, 26 May 2012 09:38:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: WaltZ400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scheduling-queries/#comment-51010</link>
		<dc:creator>WaltZ400</dc:creator>
		<pubDate>Wed, 02 Jan 2008 17:35:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-51010</guid>
		<description>If you in fact own the Advanced Job Scheduler for iSeries license program, there are several options to allow you to run the same job multiple times during the day. The *DAILY option provides up to 10 time fields to run the job. If you need to run more than that, the *MINUTES option lets you run the job so many minutes apart with a daily start and end time available so it will only run between those times.. 

The WRKJOBSCDE can be used but you would have to setup a job for each run time as you can only specify one time per job set up in here. 

A CL program could be created where you pass a parameter when you sumbit it say a '1' the first time. Examine the parameter with an IF statement and run your queries and then submit the same program this time with a '2' parameter value. On the SBMJOB statement within the CL you would use the SCDTIME parameter to submit the job to the job queue but start up when it reaches that time. When the program starts with the '2' parameter you run the queries and submit the program with a '3' parameter value and the next schedule time. Keep adding code to do this program for all times running queries and submitting new jobs until you get to the last occurrence or parameter value where you just run the queries and end the program stopping that day's processing.
The initial run of the job could be put in with the WRKSCDJOBE command as you will always submit it for the same time and the same parameter value. 

Hope this helps.</description>
		<content:encoded><![CDATA[<p>If you in fact own the Advanced Job Scheduler for iSeries license program, there are several options to allow you to run the same job multiple times during the day. The *DAILY option provides up to 10 time fields to run the job. If you need to run more than that, the *MINUTES option lets you run the job so many minutes apart with a daily start and end time available so it will only run between those times.. </p>
<p>The WRKJOBSCDE can be used but you would have to setup a job for each run time as you can only specify one time per job set up in here. </p>
<p>A CL program could be created where you pass a parameter when you sumbit it say a &#8216;1&#8242; the first time. Examine the parameter with an IF statement and run your queries and then submit the same program this time with a &#8216;2&#8242; parameter value. On the SBMJOB statement within the CL you would use the SCDTIME parameter to submit the job to the job queue but start up when it reaches that time. When the program starts with the &#8216;2&#8242; parameter you run the queries and submit the program with a &#8216;3&#8242; parameter value and the next schedule time. Keep adding code to do this program for all times running queries and submitting new jobs until you get to the last occurrence or parameter value where you just run the queries and end the program stopping that day&#8217;s processing.<br />
The initial run of the job could be put in with the WRKSCDJOBE command as you will always submit it for the same time and the same parameter value. </p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevleemor</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scheduling-queries/#comment-51004</link>
		<dc:creator>Kevleemor</dc:creator>
		<pubDate>Mon, 31 Dec 2007 16:01:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-51004</guid>
		<description>Johnny5, you can use the native AS/400 Job Scheduler utility.  You can use the Add Job Schedule Entry (ADDJOBSCDE)  command then press enter.  You have the choice of frequency, date, time, and more.
Kevin</description>
		<content:encoded><![CDATA[<p>Johnny5, you can use the native AS/400 Job Scheduler utility.  You can use the Add Job Schedule Entry (ADDJOBSCDE)  command then press enter.  You have the choice of frequency, date, time, and more.<br />
Kevin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->
