WORKLOAD AUTOMATION COMMUNITY
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
    • IWA 9.5 Roadshows
  • About
  • Contact
  • What's new

Scheduling on iSeries with Workload Automation – the Frequently Asked Questions

7/3/2019

0 Comments

 
Picture
When a customer is approaching for the first time to schedule workloads on iSeries environments, a set of questions are usually raised. This blog is a collection of these questions and related answers, on a WA 94FP3 base. ​
 
1. Which agent should you install? Where is the documentation? 
     For the iSeries platform WA provides two different agent types: 

Dynamic Agent  
This agent supports the dynamic scheduling capabilities WA provides allowing the execution of several job types (see FAQ 2). Agent installation is documented in the Planning and Installation Guide, while the User’s Guide and Reference contains a chapter dedicated to scheduling on iSeries (Managing an IBM i dynamic environment).  
After installing the agent, it automatically registers to the master with AGENT as TYPE and IBM_I as OS. 

Limited Fault Tolerant Agent (LFTA) 
This agent type is based on the Fault Tolerant Agent architecture. It can work even if there are communication problems with its domain manager while the Dynamic Agent cannot. It is called “Limited” because its capabilities are at V8.5.1 level and all the features implemented on FTA in V8.6 and V9.x releases were not ported on this agent. Execution of iSeries jobs only is supported. Installation and usage is documented in a specific manual called Limited Fault-Tolerant Agent for IBM i. 
After installation, manual agent definition is needed specifying FTA as TYPE and OTHER as OS. 

This agent is not available in WA 9.5 version. 

2. Which jobs can I run on iSeries Dynamic agents? 
     The types of job iSeries dynamic agent supports are: 

  • Web services jobs 
  • File transfer jobs 
  • J2EE jobs 
  • Database jobs Java jobs 
  • Executable jobs 
  • IBM i jobs 
  • Remote command jobs 
  • Provisioning jobs 
They are described in details in the User’s Guide and Reference, in the chapter Managing an IBM i dynamic environment. 
The most used job type is the IBM i and it is used to run iSeries jobs and commands (see FAQ 3). ​

​3. Which jobs can I run on LFTA agents? 
​

LFTA supports native jobs only (DOCOMMAND). Select “UNIX” from DWC to define jobs from the user interface. For more details refer to the Limited Fault-Tolerant Agent for IBM i manual. 

4. How can I use IBM i jobs? 
IBM i jobs can be used to submit iSeries jobs or to run specific iSeries commands. 
When you define an IBM i job in the “Task” tab you can see two different options: 

Generic command 
Use this option to run whatever iSeries command, for example DSPLINL, WRKSYSSTS, WRKDSKSTS.  

​SBMJOB command 
Use this option in case you need to run the SBMJOB command and you prefer a simplified interface to specify parameters. When selecting this option text boxes for the main SBMJOB parameters can be edited and you don’t need to remember the exact command syntax. 
In case you need to specify a parameter that is not present (for example USER) you need to use the Generic command format. 

​5. I’m not interested in the jobs (child jobs) my Workload Automation iSeries job starts. How can I ignore them? 
When you submit an IBM i job, it might start one or more batch jobs (child jobs). By default, the IBM i agent monitors these batch jobs, waits until their completion and collects their job logs but this activity is resources and time consuming. Use the CHILD and NOCHILD options to override the default at the agent, that is for all the jobs running on the agent, or at a single job level. For more details, refer to the User’s Guide and Reference, chapter Child job monitoring on IBM i agents. 
 
6. I’m using LDA (Local Data Area) to pass as communication mechanism among my iSeries jobs. Is it supported?  
Support for LDA is added to the IBM i agent in V9.4 FP6 and V9.5. With this option, you can pass the name of the LDA and the library where the area is located when submitting a job. 
 
7. I would start the job execution when a file is created or updated on my iSeries agent. How can I implement this? 
You can use the features available for the other agent types except EDWA.  
Starting from V94FP1 you can use the filemonitor utility as a stand-alone command in a job implementing job dependencies or you can set the filemonitor keywords as additional parameters for the start condition of a job. The use of the OPENS dependency is supported. 

8. I have a set of jobs that needs an answer to operator messages to proceed. How do I know when a job is waiting on a message?  
Workload Automation iSeries jobs waiting for an answer to an operator message are in the SUSP state. This state is displayed on the DWC or in the conman output. The operator can answer the message in three different ways: 
  • Accessing the iSeries machine and answering using the iSeries commands and interfaces. 
  • Answering from the Dynamic Workload Console. ​From the Monitor Workload panel, you can find the job in SUSP (suspended) status. Clicking on the hyperlink, a pop-up window shows the message that is waiting for reply and you can reply to the message from that panel.  
  • ​Configuring an automated reply. When defining an IBM i job you can specify the list of messages for which you want to set up an automated reply. For each message, specify the Message Id, the Message Text, the Message Reply (that is the automated reply that you want to define) and the Message Max Replies (that is the maximum number of automated replies accepted for this specific message).  
For details, refer to the chapter Managing an IBM i dynamic environment in the User’s Guide and Reference. 

​9. I have a zCentric iSeries agent connected to my controller but to define jobs to run on that agent I must use JSDL syntax or DWC. Is there a simpler way to define my jobs? 
iSeries agent can be configured to interpret JOBREC command syntax as an iSeries job.  
If you set the RunExecutablesAsIBMiJobs property to true in the JobManager.ini file you can define your jobs using the JOBREC syntax as in the following example: 

//JOBREC                   
JOBCMD(SCRIPT)             
JOBUSR(twsuser)            
JOBPWD(YES)                
//END JOBREC               
WRKACTJOB   

You can find details on this option in the manual Scheduling End-to-end with z-centric Capabilities. 

10. Known limitations
 
      The following features are not supported on IBM i agents: 

EDWA 
file monitor event rules

EDWA file monitor rules use SSM (SystemService Monitor) Workload Automation component to monitor file system but this component is not available on iSeries. In case you need to continuously trigger the execution of an action when a file is created or modified you can use the FILECREATED/FILEMODIFIED start conditions with the RERUN option to implement an equivalent behavior. In details: 
  • Model the action you want to execute when the file is created or modified as a job. 
  • Add the job to a jobstream and schedule it to run daily. The jobstream will start every day at the Start-Of-Day. 
  • Add STARTCOND FILECREATED or STARTCON FILEMODIFIED condition to the jobstream to monitor the file. The jobstream will start when the file is created/modified. 
  • Specify the RERUN keyword to have the condition monitored after it is met. In this way, the jobs inside the job stream will be executed every time the condition on the file is satisfied. 
 
For details on STARTCOND FILECREATED, STARTCOND FILEMODIFIED and RERUN options refer to the User’s Guide and Reference, chapter Defining objects in the database and look for the syntax to define the Schedule object. 
  • EDWA Application Monitoring events (TWSApplicationMonitor) are not supported on IBM i agents. 
TWSApplicationMonitor events requires SSM (SystemService Monitor) and for this reason they are not supported on iSeries agents. 
  • Conditional dependencies are not supported on Limited Fault-Tolerant Agents for IBM i.  



​If you have other questions on how to schedule 
jobs on iSeries contact Enrica Alberti enrica.alberti@hcl.com 
Picture
Enrica Alberti
Advisory Software Engineer at Workload Automation 
​
Enrica is an Advisory Software Engineer at Workload Automation L3 support team. 
After 20 years spent developing several software products she joined the Workload Automation group and after a her experience in development she moved to the DevOps team and L3 support. Currently, Erica supports several areas of the product and is the reference for problems on iSeries.

0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    January 2020
    December 2019
    November 2019
    October 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017

    Categories

    All
    Analytics
    Business Applications
    Cloud
    DevOps
    Monitoring & Reporting

    RSS Feed

www.hcltechsw.com
About HCL Software 
HCL Software is a division of HCL Technologies (HCL) that operates its primary software business. It develops, markets, sells, and supports over 20 product families in the areas of DevSecOps, Automation, Digital Solutions, Data Management, Marketing and Commerce, and Mainframes. HCL Software has offices and labs around the world to serve thousands of customers. Its mission is to drive ultimate customer success with their IT investments through relentless innovation of its products. For more information, To know more  please visit www.hcltechsw.com.  Copyright © 2019 HCL Technologies Limited
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
    • IWA 9.5 Roadshows
  • About
  • Contact
  • What's new