Adv Job Scheduler
Adv Job Scheduler
iSeries
ERserver
iSeries
Note Before using this information and the product it supports, be sure to read the information in Notices, on page 27.
Fourth Edition (August 2005) This edition applies to Version 5, Release 3, Modification 0 of IBM Operating System/400 (product number 5722-SS1) and Advanced Job Scheduler (product number 5722-JS1) and to all subsequent releases and modifications until otherwise indicated in new editions. This version does not run on all reduced instruction set computer (RISC) models nor does it run on CISC models. Copyright International Business Machines Corporation 1998, 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Contents
Advanced Job Scheduler . . . . . . . 1
Whats new in Advanced Job Scheduler for V5R3 . Print this topic . . . . . . . . . . . . . Advanced Job Scheduler for Wireless . . . . . Hardware and software requirements . . . . Select a device . . . . . . . . . . . . Configure your wireless environment . . . . Configure your Web application server . . Requirements . . . . . . . . . . Initialize Advanced Job Scheduler for Wireless on the HTTP Server . . . . . Select a language . . . . . . . . . . Connect to your iSeries . . . . . . . . . Customize your connection . . . . . . . Manage Advanced Job Scheduler for Wireless . Install the Advanced Job Scheduler . . . . . . Set up the Advanced Job Scheduler . . . . . . Assign the general properties . . . . . . Assign data libraries to users . . . . . . Specify permission levels . . . . . . . . Set up a scheduling calendar . . . . . . Set up a holiday calendar . . . . . . . . Set up a fiscal calendar . . . . . . . . Specify a mail server to use for notification . . . . . . . . . . 1 3 4 5 5 5 6 6 Set up multiple scheduling environments . . Manage the Advanced Job Scheduler . . . . . Schedule job dependencies . . . . . . . Monitor job activity for the Advanced Job Scheduler . . . . . . . . . . . . . Monitor for messages with Advanced Job Scheduler . . . . . . . . . . . . . Schedule jobs . . . . . . . . . . . . Create and schedule a job . . . . . . Create and work with local data area . . Create and schedule a job group . . . . Create a temporary scheduled job . . . . Create predefined schedules . . . . . . Create and work with applications/job controls Work with notification . . . . . . . . . Work with library lists . . . . . . . . . Work with command variables . . . . . . Troubleshoot the Advanced Job Scheduler . . . . 14 . 15 . 16 . 17 . . . . . . . . . . . 18 19 19 19 20 20 20 21 22 23 23 24
. 6 . 6 . 7 . 7 . 7 . 8 . 9 . 10 . 11 . 11 . 12 . 12 . 13 . 14
Appendix. Notices . . . . . . . . . . 27
Trademarks . . . . . . . . . . . . . . 29 Terms and conditions for downloading and printing publications . . . . . . . . . . . . . . 29
iii
iv
Advanced Job Scheduler for Wireless on page 4 Learn how to use the wireless function of Advanced Job Scheduler to manage scheduled jobs. Install the Advanced Job Scheduler on page 8 Follow these steps to install the Advanced Job Scheduler. Set up the Advanced Job Scheduler on page 9 If you have installed the program and this is your first time using the Advanced Job Scheduler, customizing is your next step. See how to specify the general properties that are used by the Advanced Job Scheduler, according to your needs. Manage the Advanced Job Scheduler on page 15 Set up jobs or groups of jobs that are dependent on each other. You can select the type of dependency that reflects how jobs are processed in your environment. Troubleshoot the Advanced Job Scheduler on page 24 When a job does not run at the scheduled time, find out what you can do. For more information about the Advanced Job Scheduler licensed program, see the Advanced Job Scheduler product Web site.
Work with notification on page 22 You can use the notification feature of Advanced Job Scheduler to automatically notify a specified recipient via email. Not only can you notify a recipient by e-mail, but also you can attach printer output in PDF format to e-mail messages. The Send Distribution using Job Scheduler (SNDDSTJS) notification command that is supplied by the Advanced Job Scheduler is always available from the character-based interface. The command is always available even if you specify a different notification command on the Advanced Job Scheduler General properties page in iSeries Navigator. New job properties Prior to V5R3, these job properties were only available by using the character-based interface. Now, you can work with these job properties in iSeries Navigator. v Create and work with local data area on page 19 You can now specify the local data area for a scheduled job. Use the local data area to store data specific to the job. Each command within a job has access to the jobs local data area. v Command step You can use the Set Step using Job Scheduler (SETSTPJS) command in your CL program to keep track of a jobs progress. Specify the command, along with a description, as many times as necessary in your program. The text description that is associated with the command is displayed in the Command step field on the Last Run page of the scheduled job properties. In addition, you can view the Command step field on the Status dialog of an active job. The Command step field is automatically updated every time the job encounters the Set Step using Job Scheduler (SETSTPJS) command. v Create and work with job documentation Use the jobs documentation page to specify text. This text may describe the job or special considerations associated with the job. v Monitor jobs not started within time limit Specify whether to send a notification message if a job does not start within the time limit. Specify the Recipient and Limit on the Notification page. Specify the default setting in the Job Control/Applications page. v Skip count feature When scheduling jobs, you can use the skip field to schedule jobs every other week, every third week, and so on. To do this, select Weekly, select only one day of the week, and specify a Skip count. A skip count of one runs a job every other week. New Advanced Job Scheduler properties v Set up a fiscal calendar on page 13 You can now set up a calendar based on the fiscal year. Use a fiscal calendar to specify a schedule that is unique to your business needs. In addition, you can assign a fiscal calendar to a scheduled job. v Job start time of day The time of day that you consider starts a new day. All jobs that are specified to use this time of day will have their job date changed to the previous day if the time the job starts is prior to the Start time of day. v Assign data libraries to users on page 11 You can specify which data library a user accesses. One data library may be used by more than one user. A data library will contain all of the objects found in the QUSRIJS library. You can have any number of data libraries. v Set up multiple scheduling environments on page 14 You can set up scheduling environments on the same system. By doing this, the original data library can act as the active data library and the copied data library can be used for testing. Therefore, you have two scheduling environments, one for testing and one that is the actual. In addition, the test data library can serve as a backup if there is a system failure on the original system. This feature gives you added protection if you create an error in the original data library because you have a backup copy of the data library.
v Skip dependency When scheduling jobs, you can specify that a dependent job is skipped if its predecessors and successors run on a day that the dependent job is not scheduled to run. For example, you want a monthly job to run in between two weekly scheduled jobs. To do this, specify a time interval in minutes for the dependent job using the Skip threshold field in the Job Dependency properties. If the time difference between when the first weekly job finishes and the time the monthly job is scheduled to run is greater than the time value specified, the dependency is skipped and will continue with the next weekly job. The dependent job is run only when the time difference is less than or equal to the Skip threshold. v Report distribution Report distribution allows you to distribute spooled files produced by a job to additional output queues. Prior to V5R3, report distribution was available only in the character-based interface. Now you can use iSeries Navigator to set permission levels for jobs, functions of the product, and provide new job default permissions. In addition, you can attach printer output (in PDF format) to the e-mail notification messages. v Specify permission levels on page 11 Prior to V5R3, you were able to specify permission levels in a character-based interface. Now you can use iSeries Navigator to set permission levels for jobs, functions of the product, and provide new job default permissions. v Initial disk pool group Under Advanced Batch Information you can specify the initial setting for the disk pool (also known as auxiliary storage pool (ASP)) group name for the initial thread of the submitted job. A thread can use the Set Auxiliary Storage Pool Group (SETASPGRP) command to change its library name space. When a disk pool group is associated with a thread, all libraries in the independent disk pools in the disk pool group are accessible and objects in those libraries can be referenced using regular library-qualified object name syntax. The libraries in the independent disk pools in the specified disk pool group plus the libraries in the system disk pool (ASP number 1) and basic user disk pools (ASP numbers 2-32) form the library name space for the thread. How to see whats new or changed To help you see where technical changes have been made, this information uses: v The image to mark where new or changed information begins. v The image to mark where new or changed information ends. To find other information about whats new or changed this release, see the Memo to Users.
4. Click Save. Downloading Adobe Acrobat Reader You need Adobe Acrobat Reader to view or print these PDFs. You can download a copy from the Adobe Web site (www.adobe.com/products/acrobat/readstep.html) .
v v
Select a device
Internet-ready telephones and wireless PDAs are a rapidly changing technology. They differ in screen size, in look-and-feel, and in many other significant characteristics. The following sections help you choose devices that are compatible with Advanced Job Scheduler for Wireless. Other wireless devices may also be compatible if they support wireless Internet browsing, but the interaction may be different. Internet-ready telephones Select an Internet-ready telephone to use with Advanced Job Scheduler for Wireless. PDAs Select a PDA to use with Advanced Job Scheduler for Wireless. PCs You can also use a traditional Web browser with Advanced Job Scheduler for Wireless.
3. Select a language The default language is set to English, but you can configure your device to display your language of choice. After you have completed these steps, you are ready to Connect to your iSeries on page 7 and begin using Advanced Job Scheduler for Wireless on page 4.
Select a language
When you connect to Advanced Job Scheduler for wireless, you can specify which language to use. If you do not want to specify a specific language, you can proceed to Connect to your iSeries on page 7. To specify a language, use the following URL: host.domain:port/servlet/AJSPervasive?lng= lang host: The host name of the system that contains the product. domain: The domain where the host is located. port: The port that the instance of the Web server is listening to. lang: The 2-character identifier for the language. The following is a list of available languages and their 2-character identifiers: ar: Arabic de: German en: English es: Spanish fr: French it: Italian ja: Japanese
Now you can begin working with Advanced Job Scheduler for Wireless. For more information on how to change your wireless devices display, see Configure your wireless environment on page 5.
v View active, held, and pending jobs You can view a list of the regular jobs (AJS jobs) or Management Central jobs that have the active, held, or pending state. You can further customize the jobs displayed by sorting by job type, name, or time. In addition, you can specify which data library contains the data for jobs and activities. v View job dependencies You can view the predecessor and successor jobs for a particular job. A successor is a job that is dependent on one or more jobs (predecessors) to run. In turn, a successor job can be a predecessor job to other successor jobs. v Display messages If a job has a message waiting for it, you can view the message text and reply to the message using your wireless device. v Start jobs You can use your wireless device to submit jobs. The options you can specify when submitting a job depend on what wireless device you use. v Work with AJS activity You can interact with your AJS activity from a wireless device. Each activity has different options based on the status of the activity entry. v Internationalization AJS for Wireless uses the country and language codes associated with your iSeries(TM) Java(TM) Virtual Machine to determine what language and date/time formatting to use on your wireless devices. If the Java Virtual Machine defaults are not the codes you would like to use, you can easily change it. See the online help for more details. See the online help for more details on performing specific tasks. See Advanced Job Scheduler for Wireless on page 4 to choose another topic.
When you have finished this preliminary work with the Advanced Job Scheduler, you are ready to Set up the Advanced Job Scheduler. See Advanced Job Scheduler, on page 1 to choose another task.
Assign the general properties on page 10 Specify how long to retain activity and log entries for the Advanced Job Scheduler, as well as the period that jobs will not be allowed to run. You may specify the working days that jobs will process, and whether an application is required for each scheduled job. If you have a notification product installed, you can also set up the command that will be used to send a notification when a job completes or fails or you can use the Send Distribution using Job Scheduler (SNDDSTJS) command to notify a recipient.
Assign data libraries to users on page 11 Specify what data library is associated with each user. A data library will contain all the objects found in the QUSRIJS library. You can have any number of data libraries.
Specify permission levels on page 11 Specify the default permission levels. Specify permission levels for jobs, functions of the product, and provide new job default permissions. Set up a scheduling calendar on page 12 Set up a calendar of selected days for scheduling a job or job group. This calendar can specify the dates to be used for scheduling a job, or it can be used in conjunction with other schedules. Set up a holiday calendar on page 12 Set up a calendar for days that you do not want to allow processing for a scheduled job. Alternate days may be specified for each exception day, or processing can be skipped completely for that day.
Set up a fiscal calendar on page 13 Set up a fiscal calendar of selected days for scheduling a job or job group. Use this type of calendar if you want to divide the fiscal year into periods other than months.
Specify a mail server to use for notification on page 14 Set up a mail server to use for e-mail notification messages. A mail server is required if you want to send e-mail notifications.
Set up multiple scheduling environments on page 14 (optional) You can set up scheduling environments on the same system. By doing this, the original data library can act as the active data library and the copied data library can be used for testing. Therefore, you have two scheduling environments, one for testing and one that is the actual. In addition, the test
data library can serve as a backup if there is a system failure on the original system. This feature gives you added protection if you create an error in the original data library because you have a backup copy of the data library. For more information about these and other properties, refer to the online help for the Advanced Job Scheduler in iSeries Navigator. When you have finished this preliminary work with the Advanced Job Scheduler, you are ready to begin Schedule jobs on page 19. See Advanced Job Scheduler, on page 1 to choose another task.
10
12. In the Notification command field, you can specify a command. Use the Send Distribution using Job Scheduler Work with notification on page 22 (SNDDSTJS) command supplied with the system or a command specified by your notification software. The SNDDSTJS command uses the Advanced Job Scheduler notification function. The designated recipients can receive messages for normal and abnormal completions of job scheduled entries. To continue setting up the Advanced Job Scheduler, see Set up the Advanced Job Scheduler on page 9.
11
4. On the Permissions Properties dialog, edit the permission level as necessary. You can grant or deny access to the public or specific users. In addition, you can specify submit, manage, permission, display, copy, update, or delete permissions. To specify default permission levels for new jobs associated with a Job Control/Application, follow these steps: 1. Expand Work Management from your iSeries Navigator window. 2. Right-click Advanced Job Scheduler and select Properties. 3. Select Job Controls/Applications. 4. Select a job Control or application from the list and click New Job Permissions. 5. On the Function Permissions Properties dialog, edit the permission level as necessary. You can grant or deny access to the public or specific users. In addition, you can specify submit, manage, permission, display, copy, update, or delete permissions. See Set up the Advanced Job Scheduler on page 9 to choose another task.
12
Predefined schedules can be used in holiday calendars. You could create a schedule THIRDFRI that has a frequency of the third Friday of each month. When you use THIRDFRI in a holiday calendar, you cause all jobs that use this holiday calendar to not run on the third Friday of each month. One or more schedules can be used in a holiday calendar. Dates that are generated by the schedule will be shown on the calendar with a black border. You may select a calendar and display its properties to make changes. When you select a calendar, the details of the calendar are displayed under Details. Setting up a holiday calendar To set up a holiday calendar, follow these steps: 1. Expand Work Management from your iSeries Navigator window. 2. Right-click Advanced Job Scheduler and select Properties. 3. On the General page, click Calendars. 4. Click the Holiday Calendars tab. 5. Click New and type a name for the calendar. 6. In the Description field, specify text to describe the calendar. 7. Choose a Reference calendar if applicable. This is a calendar that was previously set up, and its properties will be applied to the new calendar as if you merged the two calendars. You will not have reference calendars if this is your first time using the Advanced Job Scheduler. 8. Select the dates that you want to include on your calendar. You must specify whether each date you have selected is for the current year or for every year in the Selected date field, before you can add another date to the calendar. Otherwise, any date you select will be deselected when you click a different date. 9. Select an alternate day for the job to run. You may choose the previous working day, next working day, a specific date or not at all. To select a specific date, click Specific alternate date, and type the date. 10. Select specific days of the week to be included on the calendar. Adding a schedule to a holiday calendar To 1. 2. 3. 4. 5. 6. 7. add a holiday calendar to a scheduled job, follow these steps: Expand Work Management from your iSeries Navigator window. Right-click Advanced Job Scheduler and select Properties. On the General page, click Calendars. On the Holiday calendar page, select the holiday calendar and click Properties. From the lower lefthand corner of the tab, click Schedules. Select the appropriate schedule and click Add. To change the Alternate day, right-click the schedule from the Selected Schedules list and select the correct Alternate Day.
See Set up the Advanced Job Scheduler on page 9 to choose another task.
13
To set up a fiscal calendar, follow these steps: 1. Open Work Management from your iSeries Navigator window. 2. Right-click Advanced Job Scheduler and select Properties. 3. On the General page click Calendars. 4. On the Fiscal Calendars page, click New. 5. Specify a Name. 6. In the Description field, specify text to describe the calendar. 7. 8. 9. 10. Click New on the Fiscal Calendar Properties dialog to create a new entry. Select a period and specify the start and end dates. You can specify up to 13 periods. Click OK to save the fiscal calendar entry. Repeat steps 7 through 9 as necessary.
See Set up the Advanced Job Scheduler on page 9 to choose another task.
14
To create a data library, you need to obtain a data library from a system. The following are three ways that you can obtain a data library from the system: v Save the data library from a system and restore it onto the production system. For more information on how to save and restore the data library, see Backup and recovery. v Duplicate the data library on the current system using the Copy Library (CPYLIB) command. v Mirror a data library on the test system. These systems should be running the same version release level. Note: The copied, restored, or mirrored data library uses a different name than the original system. Step 2: Assign data libraries to users on page 11 After you obtain a test data library, add the data library to the Advanced Job Schedulers properties and assign users to the data library. Therefore, when a user uses the Advanced Job Scheduler, the changes that the user makes are stored in the data library assigned to the user. Step 3: Copy jobs from test data library to actual data library (optional) If you are using a data library for testing purposes, you may want to copy the jobs from the test data library to the actual data library in use. You only need to do this if you restored or copied a data library in step 1 and you have jobs that you want to move to the actual data library in use. You do not need to do this if you mirrored a data library from the actual system to a test system. To copy jobs from one systems data library to another, use the Copy Job using Job Scheduler (CPYJOBJS) command. For more information on the specific parameters for this command, see the online help. See Set up the Advanced Job Scheduler on page 9 to choose another task.
15
Work with notification on page 22 Learn how to use the notification function of Advanced Job Scheduler. Work with library lists on page 23 Library lists are user-defined lists of libraries that are used by the Advanced Job Scheduler when a job is processing. Work with command variables on page 23 A command variable (previously known as a parameter) is a variable you may store and use in jobs submitted through the Advanced Job Scheduler. Examples of command variables include the beginning of each month, a division number, a company number, and so on. See Advanced Job Scheduler, on page 1 to choose another task.
16
Subsystem The job is dependent upon the status of a subsystem in order to be processed. To 1. 2. 3. 4. 5. work with job dependencies, follow these steps: Open Work Management from your iSeries Navigator window. Expand Advanced Job Scheduler. Click Scheduled Jobs. Right-click the Job Name whose dependencies you want to work with. Select one of the following: Job Dependencies, Active Dependencies or Resource Dependencies. Refer to the online help for more information.
See Manage the Advanced Job Scheduler on page 15 to choose another task.
To view the scheduled job activity for a specific job, follow these steps: 1. Open Work Management from your iSeries Navigator window. 2. Expand Advanced Job Scheduler.
Advanced Job Scheduler
17
3. Click Scheduled jobs. 4. Right-click the Job Name whose activity you want to display and select Activity. Activity Log The activity log displays activity within the scheduler such as a job added, changed, or submitted. Security violations, sequences processed by a scheduled job, and any errors received are displayed. The dates and times for the previous activities are also displayed. To view detailed message information, double-click on a date and time. To view the activity log details, follow these steps: 1. Open Work Management from your iSeries Navigator window. 2. Expand Advanced Job Scheduler. 3. Click Activity Log. The current days entries are shown. To change the selection criteria, select Include from the Options menu. To 1. 2. 3. view the activity log for a specific job, follow these steps: Open Work Management from your iSeries Navigator window. Expand Advanced Job Scheduler. Click Scheduled jobs.
4. Right-click the Job Name whose activity log you want to display and select Activity log. You can also use the Last Run page of a jobs properties to view the progress of a job. Specify the Set Step using Job Scheduler (SETSTPJS) command before or after a step in the CL program along with a description that states the progress of the job. When the job reaches SETSTPJS command in the program, the associated description is displayed in the Last Run page and on your wireless device. See Manage the Advanced Job Scheduler on page 15 to choose another task.
See Manage the Advanced Job Scheduler on page 15 to choose another task.
18
Schedule jobs
The following information will help you manage the Advanced Job Scheduler when you want to create, schedule, and work with jobs. Create and schedule a job Schedule a job and specify the commands that are associated with the job. You can also specify starting and ending commands to run a special version of a scheduled job. Create and schedule a job group on page 20 Set up and schedule a series of jobs that run consecutively in a specified order. Jobs within a job group require completion before the next job is submitted for processing. Create a temporary scheduled job on page 20 Run a scheduled job now or in the future in addition to its normal schedule. Create predefined schedules on page 20 Create schedules that contain information needed to schedule a job or calculate exception dates within a holiday calendar. See Manage the Advanced Job Scheduler on page 15 to choose another task. When a job does not run at the scheduled time, you can Troubleshoot the Advanced Job Scheduler on page 24.
Refer to the online help for more information as you fill in details for the new job. See Schedule jobs or Manage the Advanced Job Scheduler on page 15 to choose another task. Create and work with local data area: A local data area is a portion of space that is allocated for a job. Not all jobs use their local data area but some do. Each command within a job has access to the jobs local data area. You may want to use a local data area if you are scheduling a job that previously required you to manually specify additional parameters. Use the local data area to specify the additional parameters so you do not have to manually specify them each time the job starts. To 1. 2. 3. 4. specify local data area information for a scheduled job, follow these steps: Open Work Management from your iSeries Navigator window. Expand Advanced Job Scheduler > Scheduled Jobs. Right-click a job and select Properties. Edit the Local Data Area page as necessary.
Refer to the online help for more information as you fill in details for the local data area. See Schedule jobs or Manage the Advanced Job Scheduler on page 15 to choose another task.
19
Refer to the online help for more information as you fill in details for the new job group. See Schedule jobs on page 19 or Manage the Advanced Job Scheduler on page 15 to choose another task.
Refer to the online help for more information as you fill in details for the new job. See Schedule jobs on page 19 or Manage the Advanced Job Scheduler on page 15 to choose another task.
20
1. 2. 3. 4. 5. 6.
Expand Work Management from your iSeries Navigator window. Right-click Advanced Job Scheduler and select Properties. Click the Schedules tab. Click New and type a name for the schedule. You may type a description for the schedule. Select the frequency and dates that you want to include in your schedule, as well as any additional calendars.
Refer to the online help for more information as you fill in details for the new schedule. To 1. 2. 3. 4. 5. 6. add a schedule to a scheduled job, follow these steps: Open Work Management from your iSeries Navigator window. Right-click Advanced Job Scheduler. Click Scheduled Jobs to list jobs. Right-click the scheduled job and select Properties. Click the Schedule tab. From the upper right hand corner of the tab, select the appropriate Schedule option.
To add a schedule to a holiday calendar, follow these steps: 1. 2. 3. 4. 5. 6. 7. Expand Work Management from your iSeries Navigator window. Right-click Advanced Job Scheduler and select Properties. On the General page, click Holiday Calendars. On the Holiday Calendars page, select the holiday calendar and click Properties. From the lower left hand corner of the tab, click Schedules. Select the appropriate schedule and click Add To change the Alternate day, right-click the schedule from the Selected Schedules list and select the correct Alternate Day.
Refer to the online help for more information. See Schedule jobs on page 19 or Manage the Advanced Job Scheduler on page 15 to choose another task.
21
6. Choose the contacts for the application. Contacts are the names of users who are contacted if you have a problem with a job within the application. You may specify up to 5 contacts per application. You may also choose to add or remove contacts from the contact list. 7. You may type additional information to help you identify the application. The information is associated with the new application. This information may be useful if any problems occur. See Manage the Advanced Job Scheduler on page 15 to choose another task.
Note: This also can be done from Output Queues. Escalation list An escalation list specifies a list of recipients in descending order. The recipients are notified in the order that they are listed. If the first recipient does not respond to the message, the message is sent to the next recipient. This process continues until a response is made. To define an escalation list, go to Advanced Job Scheduler > Notification > Escalation Lists.
22
To 1. 2. 3.
Note:
stop a message from escalating, complete the following: Expand Work Management from your iSeries Navigator window. Select Advanced Job Scheduler > Notification > E-mail > Sent. Right-click the escalating message and select Stop.
To view only escalating messages, select View > Customize this view > Include from the iSeries Navigator window. Then, in the Type field, select Escalating.
See Manage the Advanced Job Scheduler on page 15 to choose another task.
See Manage the Advanced Job Scheduler on page 15 to choose another task.
23
a. Specify the data to use for the command variable. You may use any character in this field. The number of characters in the data cannot be greater than the length specified in the Length field. b. Type a formula to calculate the date. (For examples, see the online Help.) c. Type the program name that you use to retrieve the replacement value. d. Type the library that you use to retrieve the replacement value. e. Choose whether you want the replacement value retrieved from the system operator at run time. See Manage the Advanced Job Scheduler on page 15 to choose another task.
Track a jobs progress If a job is not functioning properly, you can use the Set Step using Job Scheduler (SETSTPJS) command before or after a step in your CL program to help determine what the problem is. Specify the command along with description text in your CL program. Use this command as many times as necessary. The text description that is associated with the current command is displayed in the Command step field on the Last Run page of the scheduled job properties. In addition, you can view the Command step field on the Status dialog of an active job. The Command step field is automatically updated every time the job encounters the SETSTPJS command. Use this command to help determine the progress of a job. Collecting these data samples will help in your problem analysis:
24
Error message conditions Print the job log for the interactive session, monitor job or scheduled job, depending where the error occurred. Job schedule date is not correct Process the DSPJOBJS command for the job with OUTPUT(*PRINT). Print a calendar report if a calendar is used within the job. Print a holiday calendar report if a holiday calendar is used within the job. Press the Print key to print the display of each fiscal calendar entry for the fiscal calendar used within the job. Advanced Job Scheduler log Always print the Advanced Job Scheduler log for the time period in question. Files QAIJSMST and QAIJSHST Files QAIJSMST and QAIJSHST in library QUSRIJS may need to be journaled before trying to reproduce the problem. Also, the QUSRIJS library may be needed by IBM support. See Advanced Job Scheduler, on page 1 to choose another task.
25
26
Appendix. Notices
This information was developed for products and services offered in the U.S.A. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the users responsibility to evaluate and verify the operation of any non-IBM product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to:
IBM Director of Licensing IBM Corporation North Castle Drive Armonk, NY 10504-17855 U.S.A.
For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to:
IBM World Trade Asia Corporation Licensing 2-31 Roppongi 3-chome, Minato-ku Tokyo 106-0032, Japan
The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Licensees of this program who wish to have information about it for the purpose of enabling: (i) the exchange of information between independently created programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact:
27
IBM Corporation Software Interoperability Coordinator, Department 49XA 3605 Highway 52 N Rochester, MN 55901 U.S.A.
Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee. The licensed program described in this information and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement, or any equivalent agreement between us. Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurements may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment. Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. All statements regarding IBMs future direction or intent are subject to change or withdrawal without notice, and represent goals and objectives only. All IBM prices shown are IBMs suggested retail prices, are current and are subject to change without notice. Dealer prices may vary. This information is for planning purposes only. The information herein is subject to change before the products described become available. This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. COPYRIGHT LICENSE: This information contains sample application programs in source language, which illustrate programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. You may copy, modify, and distribute these sample programs in any form without payment to IBM for the purposes of developing, using, marketing, or distributing application programs conforming to IBMs application programming interfaces. Each copy or any portion of these sample programs or any derivative work, must include a copyright notice as follows: (C) (your company name) (year). Portions of this code are derived from IBM Corp. Sample Programs. (C) Copyright IBM Corp. _enter the year or years_. All rights reserved.
28
If you are viewing this information softcopy, the photographs and color illustrations may not appear.
Trademarks
The following terms are trademarks of International Business Machines Corporation in the United States, other countries, or both: Application System/400 AS/400 IBM iSeries Operating System/400 OS/400 400 System/36 Lotus Notes Domino DB2 WebSphere Lotus, Freelance, and WordPro are trademarks of International Business Machines Corporation and Lotus Development Corporation in the United States, other countries, or both. C-bus is a trademark of Corollary, Inc. in the United States, other countries, or both. ActionMedia, LANDesk, MMX, Pentium, and ProShare are trademarks or registered trademarks of Intel Corporation in the United States, other countries, or both. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both. SET and the SET Logo are trademarks owned by SET Secure Electronic Transaction LLC. Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. UNIX is a registered trademark of The Open Group in the United States and other countries. Other company, product, and service names may be trademarks or service marks of others.
29
IBM reserves the right to withdraw the permissions granted herein whenever, in its discretion, the use of the information is detrimental to its interest or, as determined by IBM, the above instructions are not being properly followed. You may not download, export or re-export this information except in full compliance with all applicable laws and regulations, including all United States export laws and regulations. IBM MAKES NO GUARANTEE ABOUT THE CONTENT OF THIS INFORMATION. THE INFORMATION IS PROVIDED AS-IS AND WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. All material copyrighted by IBM Corporation. By downloading or printing information from this site, you have indicated your agreement with these terms and conditions.
30
Printed in USA