Loading ...
Sorry, an error occurred while loading the content.
 

Multiple Run Times for a Job

Expand Messages
  • Dave Lindsay
    I have some Control-M jobs that need to run multiple times of the day. I have a simple solution for 2 different times of the day using Cycling. For example, if
    Message 1 of 7 , Apr 2, 2006
      I have some Control-M jobs that need to run multiple times of the day.

      I have a simple solution for 2 different times of the day using
      Cycling. For example, if the job needs to run at 7 AM and 9 AM, I can
      set Cycling=YES, Rerun Interval=120 minutes, From=0700, Until=0959.

      This method will not work if it has to run more than 2 times a day and
      the intervals are not the same, say a 7 AM, 9 AM, and 4 PM.

      To solve that, I made identical copies of the job that are set to run
      at the different times.

      This method of duplicating jobs is a PAIN to keep the job definitions
      updated when they change and it results in excess jobs loaded into the
      daily schedule.

      Does anyone have any suggestions on a different or better way to solve
      this situation ?

      Thanks,

      Dave Lindsay



      __________________________________________________
      Do You Yahoo!?
      Tired of spam? Yahoo! Mail has the best spam protection around
      http://mail.yahoo.com
    • Bowers, Joe
      Dave, I could not write a script for this but do have a suggestion. We did this for some Jobs on CA-7 on the mainframe a while back. Have a file with weird
      Message 2 of 7 , Apr 2, 2006
        Dave,
          I could not write a script for this but do have a suggestion. We did this for some Jobs on CA-7 on the mainframe a while back.
         
          Have a file with weird schedules in thme  such as the one you have. the File would have something like
        JobA 0700
        JobA 0900
        JobA 1600
        etc...
         
        Have another job that runs every hour and builds the code to force in any jobs that match the time.   That way you have one cyclic job that could force in dozens of jobs, depending on the contents of the file.. 
         
         Joe


        From: Control-X@yahoogroups.com [mailto:Control-X@yahoogroups.com] On Behalf Of Dave Lindsay
        Sent: Sunday, April 02, 2006 11:33 AM
        To: Control-X@yahoogroups.com
        Subject: [Control-X] Multiple Run Times for a Job


        I have some Control-M jobs that need to run multiple times of the day.

        I have a simple solution for 2 different times of the day using
        Cycling. For example, if the job needs to run at 7 AM and 9 AM, I can
        set Cycling=YES, Rerun Interval=120 minutes, From=0700, Until=0959.

        This method will not work if it has to run more than 2 times a day and
        the intervals are not the same, say a 7 AM, 9 AM, and 4 PM.

        To solve that, I made identical copies of the job that are set to run
        at the different times.

        This method of duplicating jobs is a PAIN to keep the job definitions
        updated when they change and it results in excess jobs loaded into the
        daily schedule.

        Does anyone have any suggestions on a different or better way to solve
        this situation ?

        Thanks,

        Dave Lindsay



        __________________________________________________
        Do You Yahoo!?
        Tired of spam?  Yahoo! Mail has the best spam protection around
        http://mail.yahoo.com
      • Dave Lindsay
        Joe: Thanks for the tip. Dave ... __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection
        Message 3 of 7 , Apr 3, 2006
          Joe:

          Thanks for the tip.

          Dave

          --- "Bowers, Joe" <joe.bowers@...> wrote:

          > Dave,
          > I could not write a script for this but do have a suggestion. We
          > did
          > this for some Jobs on CA-7 on the mainframe a while back.
          >
          > Have a file with weird schedules in thme such as the one you have.
          > the File would have something like
          > JobA 0700
          > JobA 0900
          > JobA 1600
          > etc...
          >
          > Have another job that runs every hour and builds the code to force in
          > any jobs that match the time. That way you have one cyclic job that
          > could force in dozens of jobs, depending on the contents of the
          > file..
          >
          > Joe
          >
          > ________________________________
          >
          > From: Control-X@yahoogroups.com [mailto:Control-X@yahoogroups.com] On
          > Behalf Of Dave Lindsay
          > Sent: Sunday, April 02, 2006 11:33 AM
          > To: Control-X@yahoogroups.com
          > Subject: [Control-X] Multiple Run Times for a Job
          >
          >
          >
          > I have some Control-M jobs that need to run multiple times of the
          > day.
          >
          > I have a simple solution for 2 different times of the day using
          > Cycling. For example, if the job needs to run at 7 AM and 9 AM, I can
          > set Cycling=YES, Rerun Interval=120 minutes, From=0700, Until=0959.
          >
          > This method will not work if it has to run more than 2 times a day
          > and
          > the intervals are not the same, say a 7 AM, 9 AM, and 4 PM.
          >
          > To solve that, I made identical copies of the job that are set to run
          > at the different times.
          >
          > This method of duplicating jobs is a PAIN to keep the job definitions
          > updated when they change and it results in excess jobs loaded into
          > the
          > daily schedule.
          >
          > Does anyone have any suggestions on a different or better way to
          > solve
          > this situation ?
          >
          > Thanks,
          >
          > Dave Lindsay
          >
          >
          >
          > __________________________________________________
          > Do You Yahoo!?
          > Tired of spam? Yahoo! Mail has the best spam protection around
          > http://mail.yahoo.com
          >
          >
          > Control-X email list does not tolerate spam. For more information
          > http://s390.8m.com/controlm.html DO NOT Spam this list or any
          > members.
          > To unsubscribe go to http://groups.yahoo.com/group/Control-X and
          > click
          > on User Center. Not affiliated with BMC Software.
          >
          >
          >
          > ________________________________
          >
          > YAHOO! GROUPS LINKS
          >
          >
          >
          > * Visit your group "Control-X
          > <http://groups.yahoo.com/group/Control-X> " on the web.
          >
          > * To unsubscribe from this group, send an email to:
          > Control-X-unsubscribe@yahoogroups.com
          > <mailto:Control-X-unsubscribe@yahoogroups.com?subject=Unsubscribe>
          >
          > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
          > Service <http://docs.yahoo.com/info/terms/> .
          >
          >
          > ________________________________
          >
          >
          >


          __________________________________________________
          Do You Yahoo!?
          Tired of spam? Yahoo! Mail has the best spam protection around
          http://mail.yahoo.com
        • Emery, Eddie (E.ON IS UK)
          You could possibly set a job up to run `ctmpsm -UPDATETABLE rerun` and have different versions of that for different days, cycles etc... No idea
          Message 4 of 7 , Apr 3, 2006
            You could possibly set a job up to run `ctmpsm -UPDATETABLE <tablename>
            rerun` and have different versions of that for different days, cycles
            etc...
            No idea what the mainframe equivalent is though.

            Regards,

            Eddie Emery
            Operations Support Specialist
            IT Services
            *: +44 1623 68 [5187] Internal: [740-]

            -----Original Message-----
            From: Control-X@yahoogroups.com [mailto:Control-X@yahoogroups.com] On
            Behalf Of Dave Lindsay
            Sent: Monday, April 03, 2006 3:53 PM
            To: Control-X@yahoogroups.com
            Subject: RE: [Control-X] Multiple Run Times for a Job

            Joe:

            Thanks for the tip.

            Dave

            --- "Bowers, Joe" <joe.bowers@...> wrote:

            > Dave,
            > I could not write a script for this but do have a suggestion. We
            > did
            > this for some Jobs on CA-7 on the mainframe a while back.
            >
            > Have a file with weird schedules in thme such as the one you have.
            > the File would have something like
            > JobA 0700
            > JobA 0900
            > JobA 1600
            > etc...
            >
            > Have another job that runs every hour and builds the code to force in
            > any jobs that match the time. That way you have one cyclic job that
            > could force in dozens of jobs, depending on the contents of the
            > file..
            >
            > Joe
            >
            > ________________________________
            >
            > From: Control-X@yahoogroups.com [mailto:Control-X@yahoogroups.com] On
            > Behalf Of Dave Lindsay
            > Sent: Sunday, April 02, 2006 11:33 AM
            > To: Control-X@yahoogroups.com
            > Subject: [Control-X] Multiple Run Times for a Job
            >
            >
            >
            > I have some Control-M jobs that need to run multiple times of the
            > day.
            >
            > I have a simple solution for 2 different times of the day using
            > Cycling. For example, if the job needs to run at 7 AM and 9 AM, I can
            > set Cycling=YES, Rerun Interval=120 minutes, From=0700, Until=0959.
            >
            > This method will not work if it has to run more than 2 times a day
            > and
            > the intervals are not the same, say a 7 AM, 9 AM, and 4 PM.
            >
            > To solve that, I made identical copies of the job that are set to run
            > at the different times.
            >
            > This method of duplicating jobs is a PAIN to keep the job definitions
            > updated when they change and it results in excess jobs loaded into
            > the
            > daily schedule.
            >
            > Does anyone have any suggestions on a different or better way to
            > solve
            > this situation ?
            >
            > Thanks,
            >
            > Dave Lindsay
            >
            >
            >
            > __________________________________________________
            > Do You Yahoo!?
            > Tired of spam? Yahoo! Mail has the best spam protection around
            > http://mail.yahoo.com
            >
            >
            > Control-X email list does not tolerate spam. For more information
            > http://s390.8m.com/controlm.html DO NOT Spam this list or any
            > members.
            > To unsubscribe go to http://groups.yahoo.com/group/Control-X and
            > click
            > on User Center. Not affiliated with BMC Software.
            >
            >
            >
            > ________________________________
            >
            > YAHOO! GROUPS LINKS
            >
            >
            >
            > * Visit your group "Control-X
            > <http://groups.yahoo.com/group/Control-X> " on the web.
            >
            > * To unsubscribe from this group, send an email to:
            > Control-X-unsubscribe@yahoogroups.com
            > <mailto:Control-X-unsubscribe@yahoogroups.com?subject=Unsubscribe>
            >
            > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
            > Service <http://docs.yahoo.com/info/terms/> .
            >
            >
            > ________________________________
            >
            >
            >


            __________________________________________________
            Do You Yahoo!?
            Tired of spam? Yahoo! Mail has the best spam protection around
            http://mail.yahoo.com


            Control-X email list does not tolerate spam. For more information
            http://s390.8m.com/controlm.html DO NOT Spam this list or any members.
            To unsubscribe go to http://groups.yahoo.com/group/Control-X and click
            on User Center. Not affiliated with BMC Software.
            Yahoo! Groups Links




            ___________________________ Disclaimer Notice ____________________
            This message and any attachments are confidential and should only
            be read by those to whom they are addressed. If you are not the
            intended recipient, please contact us, delete the message from your
            computer and destroy any copies. Any distribution or copying without
            our prior permission is prohibited.

            Internet communications are not always secure and therefore the
            E.ON Group does not accept legal responsibility for this message.
            The recipient is responsible for verifying its authenticity before
            acting on the contents. Any views or opinions presented are solely
            those of the author and do not necessarily
            represent those of the E.ON Group.

            E.ON IS UK Limited, Westwood Way, Westwood Business Park,
            Coventry, CV4 8LG.
            Registered in England & Wales No. 5617434

            Telephone +44 (0) 2476 42 4000
            Fax +44 (0) 2476 42 5432
          • Jérôme DEMEULLE
            Dave, I m using a cyclic job who is waiting after a condition. When It s time to run a dummy job post this condition. So define three dummy at 7am, 9am, and
            Message 5 of 7 , Apr 3, 2006
              Dave,
              I'm using a cyclic job who is waiting after a condition.
              When It's time to run a dummy job post this condition. So define three dummy
              at 7am, 9am, and 4pm. You will have only one job to update (don't forget to
              always post the negative cond even if error or you cylic will spin).
              Jerome

              -----Message d'origine-----
              De : Control-X@yahoogroups.com [mailto:Control-X@yahoogroups.com]De la
              part de Dave Lindsay
              Envoyé : dimanche 2 avril 2006 17:33
              À : Control-X@yahoogroups.com
              Objet : [Control-X] Multiple Run Times for a Job



              I have some Control-M jobs that need to run multiple times of the day.

              I have a simple solution for 2 different times of the day using
              Cycling. For example, if the job needs to run at 7 AM and 9 AM, I can
              set Cycling=YES, Rerun Interval=120 minutes, From=0700, Until=0959.

              This method will not work if it has to run more than 2 times a day and
              the intervals are not the same, say a 7 AM, 9 AM, and 4 PM.

              To solve that, I made identical copies of the job that are set to run
              at the different times.

              This method of duplicating jobs is a PAIN to keep the job definitions
              updated when they change and it results in excess jobs loaded into the
              daily schedule.

              Does anyone have any suggestions on a different or better way to solve
              this situation ?

              Thanks,

              Dave Lindsay



              __________________________________________________
              Do You Yahoo!?
              Tired of spam? Yahoo! Mail has the best spam protection around
              http://mail.yahoo.com


              Control-X email list does not tolerate spam. For more information
              http://s390.8m.com/controlm.html DO NOT Spam this list or any members. To
              unsubscribe go to http://groups.yahoo.com/group/Control-X and click on User
              Center. Not affiliated with BMC Software.
              Yahoo! Groups Links
            • Brunton, Colin
              Here is one idea that will handle multiple instances of the scenario you describe, Lets Assume we have three jobs with differing runtime req s. JOBA runs at
              Message 6 of 7 , Apr 3, 2006
                Here is one idea that will handle multiple instances of the scenario you describe,

                Lets Assume we have three jobs with differing runtime req's.
                JOBA runs at 10:00, 13:00, 16:00
                JOBB runs at 11:00, 12:00, 17:00, 21:00
                JOBC Runs at 09:00, 15:00, 22:00

                JOBA will have three In conditions with an OR Relationship
                TIME1000-JOBA
                TIME1300-JOBA
                TIME1600-JOBA

                JOBB will have four In Conditions with an OR relationship.
                TIME1100-JOBB
                TIME1200-JOBB
                TIME1700-JOBB
                TIME2100-JOBB

                I think you get the picture for job C.

                Each job will remove its IN Conditions after every execution.

                Now on each hour you will run the following job in a BAT file Or script.

                CTMLDNRS.EXE -CALCCOND -ADDMODE NO -OUTPUT FILENAME.TXT
                CTMLDNRS.EXE -LOAD "TIME%1" -INPUT FILENAME.TXT

                The %1 will be resolved via autoedit VARS and incremented each run. So if Newday is at 0900 set the %%PARM1 at the start of the day to 0900 and add 100 every run.

                No more duplicate jobs and any number of new jobs can be added this way without altering the setup. Of course if they don't run on the Hour you can modify the above to suit your needs.

                -----Original Message-----
                From: Control-X@yahoogroups.com [mailto:Control-X@yahoogroups.com] On Behalf Of Jérôme DEMEULLE
                Sent: Monday, April 03, 2006 4:35 PM
                To: Control-X@yahoogroups.com
                Subject: RE: [Control-X] Multiple Run Times for a Job

                Dave,
                I'm using a cyclic job who is waiting after a condition.
                When It's time to run a dummy job post this condition. So define three dummy
                at 7am, 9am, and 4pm. You will have only one job to update (don't forget to
                always post the negative cond even if error or you cylic will spin).
                Jerome

                -----Message d'origine-----
                De : Control-X@yahoogroups.com [mailto:Control-X@yahoogroups.com]De la
                part de Dave Lindsay
                Envoyé : dimanche 2 avril 2006 17:33
                À : Control-X@yahoogroups.com
                Objet : [Control-X] Multiple Run Times for a Job



                I have some Control-M jobs that need to run multiple times of the day.

                I have a simple solution for 2 different times of the day using
                Cycling. For example, if the job needs to run at 7 AM and 9 AM, I can
                set Cycling=YES, Rerun Interval=120 minutes, From=0700, Until=0959.

                This method will not work if it has to run more than 2 times a day and
                the intervals are not the same, say a 7 AM, 9 AM, and 4 PM.

                To solve that, I made identical copies of the job that are set to run
                at the different times.

                This method of duplicating jobs is a PAIN to keep the job definitions
                updated when they change and it results in excess jobs loaded into the
                daily schedule.

                Does anyone have any suggestions on a different or better way to solve
                this situation ?

                Thanks,

                Dave Lindsay



                __________________________________________________
                Do You Yahoo!?
                Tired of spam? Yahoo! Mail has the best spam protection around
                http://mail.yahoo.com


                Control-X email list does not tolerate spam. For more information
                http://s390.8m.com/controlm.html DO NOT Spam this list or any members. To
                unsubscribe go to http://groups.yahoo.com/group/Control-X and click on User
                Center. Not affiliated with BMC Software.
                Yahoo! Groups Links










                Control-X email list does not tolerate spam. For more information http://s390.8m.com/controlm.html DO NOT Spam this list or any members. To unsubscribe go to http://groups.yahoo.com/group/Control-X and click on User Center. Not affiliated with BMC Software.
                Yahoo! Groups Links
              • merlin_vandenbos
                Hi, I m new to the group. I don t know what platform you are on, but if unix, you can do as Eddie suggested. If you have jobs in a group that run in sequence
                Message 7 of 7 , Apr 5, 2006
                  Hi, I'm new to the group.
                  I don't know what platform you are on, but if unix, you can do as
                  Eddie suggested. If you have jobs in a group that run in sequence
                  you will have to get rid of the prerequisite conditions first. I
                  make my jobname the same as the prerequisite condition so I can use
                  ctmpsm to delete them.

                  ctmpsm -LISTGROUP $Application $Group | nawk '{print $2}' > $TmpFile
                  ed $TmpFile <<EOF > /dev/null
                  1
                  d
                  d
                  d
                  w
                  q
                  EOF
                  exec 9< $TmpFile
                  while read -u9 Condition
                  do
                  ctmcontb -DELETE $Condition "*"
                  done
                  exec 9<&- #Close the file

                  Then I have a rerun group in controlm and can run the rerunscript at
                  any set times.
                  If this is confusing let me know and I can give you more info.

                  Merlin

                  --- In Control-X@yahoogroups.com, "Emery, Eddie \(E.ON IS UK\)"
                  <eddie.emery@...> wrote:
                  >
                  > You could possibly set a job up to run `ctmpsm -UPDATETABLE
                  <tablename>
                  > rerun` and have different versions of that for different days,
                  cycles
                  > etc...
                  > No idea what the mainframe equivalent is though.
                  >
                  > Regards,
                  >
                  > Eddie Emery
                  > Operations Support Specialist
                  > IT Services
                  > *: +44 1623 68 [5187] Internal: [740-]
                  >
                  > -----Original Message-----
                  > From: Control-X@yahoogroups.com [mailto:Control-X@yahoogroups.com]
                  On
                  > Behalf Of Dave Lindsay
                  > Sent: Monday, April 03, 2006 3:53 PM
                  > To: Control-X@yahoogroups.com
                  > Subject: RE: [Control-X] Multiple Run Times for a Job
                  >
                  > Joe:
                  >
                  > Thanks for the tip.
                  >
                  > Dave
                  >
                  > --- "Bowers, Joe" <joe.bowers@...> wrote:
                  >
                  > > Dave,
                  > > I could not write a script for this but do have a suggestion.
                  We
                  > > did
                  > > this for some Jobs on CA-7 on the mainframe a while back.
                  > >
                  > > Have a file with weird schedules in thme such as the one you
                  have.
                  > > the File would have something like
                  > > JobA 0700
                  > > JobA 0900
                  > > JobA 1600
                  > > etc...
                  > >
                  > > Have another job that runs every hour and builds the code to
                  force in
                  > > any jobs that match the time. That way you have one cyclic job
                  that
                  > > could force in dozens of jobs, depending on the contents of the
                  > > file..
                  > >
                  > > Joe
                  > >
                  > > ________________________________
                  > >
                  > > From: Control-X@yahoogroups.com [mailto:Control-
                  X@yahoogroups.com] On
                  > > Behalf Of Dave Lindsay
                  > > Sent: Sunday, April 02, 2006 11:33 AM
                  > > To: Control-X@yahoogroups.com
                  > > Subject: [Control-X] Multiple Run Times for a Job
                  > >
                  > >
                  > >
                  > > I have some Control-M jobs that need to run multiple times of the
                  > > day.
                  > >
                  > > I have a simple solution for 2 different times of the day using
                  > > Cycling. For example, if the job needs to run at 7 AM and 9 AM,
                  I can
                  > > set Cycling=YES, Rerun Interval=120 minutes, From=0700,
                  Until=0959.
                  > >
                  > > This method will not work if it has to run more than 2 times a
                  day
                  > > and
                  > > the intervals are not the same, say a 7 AM, 9 AM, and 4 PM.
                  > >
                  > > To solve that, I made identical copies of the job that are set
                  to run
                  > > at the different times.
                  > >
                  > > This method of duplicating jobs is a PAIN to keep the job
                  definitions
                  > > updated when they change and it results in excess jobs loaded
                  into
                  > > the
                  > > daily schedule.
                  > >
                  > > Does anyone have any suggestions on a different or better way to
                  > > solve
                  > > this situation ?
                  > >
                  > > Thanks,
                  > >
                  > > Dave Lindsay
                  > >
                  > >
                  > >
                  > > __________________________________________________
                  > > Do You Yahoo!?
                  > > Tired of spam? Yahoo! Mail has the best spam protection around
                  > > http://mail.yahoo.com
                  > >
                  > >
                  > > Control-X email list does not tolerate spam. For more information
                  > > http://s390.8m.com/controlm.html DO NOT Spam this list or any
                  > > members.
                  > > To unsubscribe go to http://groups.yahoo.com/group/Control-X and
                  > > click
                  > > on User Center. Not affiliated with BMC Software.
                  > >
                  > >
                  > >
                  > > ________________________________
                  > >
                  > > YAHOO! GROUPS LINKS
                  > >
                  > >
                  > >
                  > > * Visit your group "Control-X
                  > > <http://groups.yahoo.com/group/Control-X> " on the web.
                  > >
                  > > * To unsubscribe from this group, send an email to:
                  > > Control-X-unsubscribe@yahoogroups.com
                  > > <mailto:Control-X-unsubscribe@yahoogroups.com?
                  subject=Unsubscribe>
                  > >
                  > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
                  > > Service <http://docs.yahoo.com/info/terms/> .
                  > >
                  > >
                  > > ________________________________
                  > >
                  > >
                  > >
                  >
                  >
                  > __________________________________________________
                  > Do You Yahoo!?
                  > Tired of spam? Yahoo! Mail has the best spam protection around
                  > http://mail.yahoo.com
                  >
                  >
                  > Control-X email list does not tolerate spam. For more information
                  > http://s390.8m.com/controlm.html DO NOT Spam this list or any
                  members.
                  > To unsubscribe go to http://groups.yahoo.com/group/Control-X and
                  click
                  > on User Center. Not affiliated with BMC Software.
                  > Yahoo! Groups Links
                  >
                  >
                  >
                  >
                  > ___________________________ Disclaimer Notice ____________________
                  > This message and any attachments are confidential and should only
                  > be read by those to whom they are addressed. If you are not the
                  > intended recipient, please contact us, delete the message from your
                  > computer and destroy any copies. Any distribution or copying
                  without
                  > our prior permission is prohibited.
                  >
                  > Internet communications are not always secure and therefore the
                  > E.ON Group does not accept legal responsibility for this message.
                  > The recipient is responsible for verifying its authenticity before
                  > acting on the contents. Any views or opinions presented are solely
                  > those of the author and do not necessarily
                  > represent those of the E.ON Group.
                  >
                  > E.ON IS UK Limited, Westwood Way, Westwood Business Park,
                  > Coventry, CV4 8LG.
                  > Registered in England & Wales No. 5617434
                  >
                  > Telephone +44 (0) 2476 42 4000
                  > Fax +44 (0) 2476 42 5432
                  >
                Your message has been successfully submitted and would be delivered to recipients shortly.