• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Skipping Robot/SCHEDULE Runs on AS/400-Class Machines

    October 12, 2011 Hey, Joe

    On our System i 550, we use Robot/SCHEDULE for batch processing. Every so often, we have a programming issue where we have to skip running a job in the middle of a long job stream. The skipped job sometimes has reactive jobs hanging off it. We still want to run the reactive jobs, even when we don’t run their prerequisite job. Got any ideas?

    –Keith

    Like many other shops, we also use Robot/SCHEDULE for running batch job streams on our System i and Power i machines. Like you, we’ve encountered the same issue where we want to skip running one job in a long job stream, while keeping the job stream intact. Here’s how we usually handle the situation.

    The Problem

    Because of a data or program problem, we can’t run one job in our nightly end of day job stream. End of day runs a long string of Robot jobs in sequence and many of these jobs are reactive. The reactive jobs run only if their prerequisite jobs completes successfully.

    When a programming error occurs, we may need to temporarily stop running one prerequisite job until a program is fixed. But until we fix the problem, we still want to run all the other jobs that are dependent on running the skipped prerequisite job. We can usually do this by using Robot’s OMIT run feature.

    Here’s an example of how we do this. Maybe this can work for your shop.

    Look at the following two Robot jobs in my Robot Job Schedule List. JOETEST1 runs at 01:00 each morning and JOETEST2 will only run if JOETEST1 completes successfully (it reacts to JOETEST1’s completion).

    In turn, there may be several other SCHEDULE jobs that are dependent on JOETEST2 completing correctly.

    The Imperfect Solutions

    The dilemma comes in when there’s a problem with JOETEST1 and we don’t want to run it the next night. However, JOETEST2 still works correctly so we want to run that job. To do this, we used to put JOETEST1 into a HOLD status (H) like this.

    This will stop JOETEST1 from running until the program is fixed. But since JOETEST2 is dependent on JOETEST1, JOETEST2 won’t run when we want it to. There may also be other reactive jobs that are dependent on JOETEST 2 completing. These jobs wouldn’t run in a hold scenario.

    Alternatively, we could still hold JOETEST1 and reconfigure the JOETEST2 job so that it now runs even if JOETEST1 doesn’t run. But since we only need to hold JOETEST1 for one night, we’d rather not mess with our Robot/SCHEDULE schedule too much. A third solution is to hold JOETEST1, monitor the job stream, and manually kick off JOETEST2 at the proper time. None of these alternatives satisfactorily reach my real goal: which is to temporarily hold JOETEST1 for one run only while still automatically completing the job stream.

    The Preferred Solution: SCHEDULE’s OMIT Feature

    When this happens, my preferred solution is to change the Robot/SCHEDULE code of my prerequisite job to ‘O’ (OMIT). This can easily be done by placing an ‘O’ in front of the SCHEDULE job entry and pressing ENTER. This will make my JOETEST1 job schedule entry now look like this on Robot’s Job Schedule List.

    OMIT is a very useful Robot job scheduler feature that does the following things.

    1. It omits only the next scheduled job run of JOETEST1. In this case, the JOETEST1 job will not run at 01:00 for just this one run. After the scheduled run time comes, the OMIT schedule code will be removed and the JOETEST1 job schedule entry will revert back to the schedule code it had before I changed its status to OMIT.

    2. Because its status was OMIT at its scheduled run time, any job that is dependent on JOETEST1 finishing will still run, even though JOETEST1 did not run. Robot/SCHEDULE will log a job completion status of ‘O’ (Omit) for JOETEST1, and all dependent jobs (including JOETEST2) will still react off that status and execute.

    By setting its job schedule code to OMIT rather than HOLD, I can bypass my problem job without disrupting my end of day job schedule. And when this one-time bypass is finished, the job schedule entry resets itself back to normal. So I don’t have to do anything more than set the job scheduler entry to OMIT and Robot/SCHEDULE will do the rest to solve my problem.

    So that’s how we handle keeping a job stream intact when we have to temporarily stop one of its jobs from running.

    Hope this helps.

    Note: This solution was tested on runs on Help/Systems Robot/SCHEDULE 10.

    –Joe



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    ARCAD Software

    Embrace VS Code for IBM i Development

    The IBM i development landscape is evolving with modern tools that enhance efficiency and collaboration. Ready to make the move to VS Code for IBM i?

    Join us for this webinar where we’ll showcase how VS Code can serve as a powerful editor for native IBM i code and explore the essential extensions that make it possible.

    In this session, you’ll discover:

    • How ARCAD’s integration with VS Code provides deep metadata insights, allowing developers to assess the impact of their changes upfront.
    • The role of Git in enabling seamless collaboration between developers using tools like SEU, RDi, and VS Code.
    • Powerful extensions for code quality, security, impact analysis, smart build, and automated RPG conversion to Free Form.
    • How non-IBM i developers can now contribute to IBM i projects without prior knowledge of its specifics, while ensuring full control over their changes.

    The future of IBM i development is here. Let ARCAD be your guide!

    Watch Now

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    System i Developer:  Join the Gurus at the RPG & DB2 Summit in St. Louis, October 17-19
    The 400 School:  LIVE Online Training RPG IV & COBOL Boot Camps
    inFORM Decisions:  Paperless saves $$$. Watch our iScan VIDEO DEMO and get FREE white papers.

    IT Jungle Store Top Book Picks

    BACK IN STOCK: Easy Steps to Internet Programming for System i: List Price, $49.95

    The iSeries Express Web Implementer's Guide: List Price, $49.95
    The iSeries Pocket Database Guide: List Price, $59
    The iSeries Pocket SQL Guide: List Price, $59
    The iSeries Pocket WebFacing Primer: List Price, $39
    Migrating to WebSphere Express for iSeries: List Price, $49
    Getting Started with WebSphere Express for iSeries: List Price, $49
    The All-Everything Operating System: List Price, $35
    The Best Joomla! Tutorial Ever!: List Price, $19.95

    TMW Unveils New Trucking Solutions at User Confab I/O, Memory Boosted On Entry, Enterprise Power Systems

    Leave a Reply Cancel reply

Volume 11, Number 30 -- October 12, 2011
THIS ISSUE SPONSORED BY:

WorksRight Software
ProData Computer Services
The 400 School

Table of Contents

  • Adobe Flash Builder for the iSeries Programmer, Part 3
  • Add Outfile Support to Your Applications
  • Skipping Robot/SCHEDULE Runs on AS/400-Class Machines

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Liam Allan Shares What’s Coming Next With Code For IBM i
  • From Stable To Scalable: Visual LANSA 16 Powers IBM i Growth – Launching July 8
  • VS Code Will Be The Heart Of The Modern IBM i Platform
  • The AS/400: A 37-Year-Old Dog That Loves To Learn New Tricks
  • IBM i PTF Guide, Volume 27, Number 25
  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle