AutoSys Workload Automation

  • 1.  I need to submit several maybe 30 ad hoc jobs in a sequence.  What's the best way to get this done?

    Posted Apr 23, 2018 03:53 PM

    Also is there a way to automatically add all the jobs from a pds?



  • 2.  Re: I need to submit several maybe 30 ad hoc jobs in a sequence.  What's the best way to get this done?
    Best Answer

    Posted Apr 24, 2018 04:24 AM

    Hi Ronald

     

    From the following link:

     

    https://docops.ca.com/ca-workload-automation-esp-edition/11-4/en/examples-cookbook/run-ad-hoc-sequential-jobs

     

    You can find :

     

    Run ad-hoc sequential jobs

    Last update February 23, 2018

    Objective

    Users often request from one to six ad-hoc jobs to run one after the other as a stand-alone application. Each job name is 8 characters in length.

    Solution

    The following is a sample application that builds a sequence of jobs based on data supplied via a USER1 parameter on an event trigger.

    APPL CYBER

    JCLLIB 'CYBER.JCLLIB'

    J1='%USER1(1:8)'

    J2='%USER1(10:17)'

    J3='%USER1(19:26)'

    J4='%USER1(28:35)'

    J5='%USER1(37:44)'

    J6='%USER1(46:53)'

    IF J1 = '' THEN JUMPTO JDONE

    JOB %J1

     RUN ANY

    ENDJOB

    IF J2 = '' THEN JUMPTO JDONE

    JOB %J2

     RUN ANY

     AFTER %J1

    ENDJOB

    IF J3 = '' THEN JUMPTO JDONE

    JOB %J3

     RUN ANY

     AFTER %J2

    ENDJOB

    IF J4 = '' THEN JUMPTO JDONE

    JOB %J4

     RUN ANY

     AFTER %J3

    ENDJOB

    IF J5 = '' THEN JUMPTO JDONE

    JOB %J5

     RUN ANY

     AFTER %J4

    ENDJOB

    IF J6 = '' THEN JUMPTO JDONE

    JOB %J6

     RUN ANY

     AFTER %J5

    ENDJOB

    JDONE:

      EXIT

     

    I hope this documentation suits your need

     

    Thanks and best regards,

     

    Faouzia



  • 3.  Re: I need to submit several maybe 30 ad hoc jobs in a sequence.  What's the best way to get this done?

    Posted Apr 24, 2018 07:40 AM

    Hi, 

    I think the easiest way is just to build a normal application and event and then trigger it. The application can probably be built in less than 5 minutes using cut and paste/repeat options.