ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaks_5.4.0.1/rzaksjobschdentryexmpl.htm

113 lines
5.4 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="task" />
<meta name="DC.Title" content="Examples: job schedule entry" />
<meta name="abstract" content="This topic provides examples for using the Add Job Schedule Entry (ADDJOBSCDE) command." />
<meta name="description" content="This topic provides examples for using the Add Job Schedule Entry (ADDJOBSCDE) command." />
<meta name="DC.Relation" scheme="URI" content="rzaksjobscheduleentry.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2004-2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004-2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzaksjobschdentryexmpl" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Examples: job schedule entry</title>
</head>
<body>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<div class="nested0" id="rzaksjobschdentryexmpl"><a name="rzaksjobschdentryexmpl"><!-- --></a><h1 class="topictitle1">Examples: job schedule entry</h1>
<div><p>This topic provides examples for using the Add Job Schedule Entry
(<span class="cmdname">ADDJOBSCDE</span>) command.</p>
<div class="example"><strong>Schedule a job monthly: </strong>This example shows how to submit a
job to run program INVENTORY at 11:30 p.m. on the last day of every month
except on New Years Eve. <blockquote><pre>ADDJOBSCDE JOB(MONTHEND)
CMD(CALL INVENTORY)
SCDDATE(*MONTHEND)
SCDTIME('23:30:00')
FRQ(*MONTHLY)
OMITDATE('12/31/05')</pre>
</blockquote>
<div class="p"><strong>Schedule a job daily:</strong> This
example shows how to submit a job to run program DAILYCLEAN every day at 6:00
p.m. The job runs under the user profile SOMEPGMR. This job is not submitted
if the system is down or is in restricted state at that time. <blockquote><pre>ADDJOBSCDE JOB(*JOBD)
CMD(CALL DAILYCLEAN)
SCDDAY(*ALL)
SCDTIME('18:00:00')
SCDDATE(*NONE)
USER(SOMEPGMR)
FRQ(*WEEKLY)
RCYACN(*NOSBM)</pre>
</blockquote>
</div>
<div class="p"><strong>Schedule a job weekly:</strong> This example
shows how to submit a job to run program PGM1 every week starting on 12/17/05
at the current time. Because 12/17/05 is a Saturday, the job is submitted
every Saturday, and it runs under the user profile <blockquote><pre>PGMR1. ADDJOBSCDE JOB(*JOBD)
CMD(CALL PGM1)
SCDDATE('12/17/05')
FRQ(*WEEKLY)
USER(PGMR1)</pre>
</blockquote>
</div>
<div class="p"><strong>Schedule a job every third Monday and
Wednesday:</strong> This example shows how to submit a job to run program PGM2
on the third Monday and the third Wednesday at 11:30 p.m. This
job will be submitted on the next third Monday or third Wednesday at 11:30
p.m., depending on whether those days have passed already this month. If yesterday
was the third Monday, today is the third Tuesday, and tomorrow is the third
Wednesday, it will be submitted tomorrow, and then not again until next month. <blockquote><pre>ADDJOBSCDE JOB(*JOBD)
CMD(CALL PGM2)
SCDDAY(*MON *WED) FRQ(*MONTHLY)
SCDDATE(*NONE)
RELDAYMON(3) SCDTIME('23:30:00')</pre>
</blockquote>
</div>
<div class="p"><strong>Schedule a job
every first and third Monday:</strong> This example shows how to submit a job to
run program PAYROLL on the first and third Monday of every month at 9:00 a.m.
The job runs under user profile PAYROLLMGR.<blockquote><pre>ADDJOBSCDE JOB(PAYROLL)
CMD(CALL PAYROLL)
SCDDAY(*MON) FRQ(*MONTHLY)
SCDDATE(*NONE)
RELDAYMON(1 3) SCDTIME('09:00:00')
USER(PAYROLLMGR)</pre>
</blockquote>
</div>
<div class="p"><strong>Schedule a job every weekday:</strong> This
example shows how to submit a job to run PGM4 every weekday at 7:00 p.m. <blockquote><pre>ADDJOBSCDE JOB(*JOBD)
CMD(CALL PGM4)
SCDDAY(*MON *TUE *WED *THU *FRI)
SCDDATE(*NONE)
SCDTIME('19:00:00') FRQ(*WEEKLY)</pre>
</blockquote>
</div>
<div class="p"><strong>Save a job schedule
entry</strong>: This example shows how to submit a job once and save the entry. <blockquote><pre>ADDJOBSCDE JOB(*JOBD)
CMD(CALL SAVED)
FRQ(*ONCE)
SAVE(*YES)</pre>
</blockquote>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaksjobscheduleentry.htm" title="If your system does not have the Management Central Scheduler or the Advanced Job Scheduler, you can still schedule jobs using a job schedule entry, which is accessed from the character-based interface. Using this method you can schedule jobs to recur or to run only once.">Job schedule entries</a></div>
</div>
</div></div>
</body>
</html>