3 Replies Latest reply on Mar 16, 2020 10:04 PM by Lin Zhang Chen

    job definition "find and update"

    Lin Zhang Chen
      Share This:

      as we know Control-M job provide job definition "find and update", we can do add/update some field .

      why only "on statement" do everything , how does using "find and update" set  on

      job ended not ok/ os completion status  ..&etc then Do ...

        • 1. Re: job definition "find and update"
          Bentze Perlmutter

          Hi Lin,

           

          Find&Update usually requires the Value to be the one taken from the XML and not the 'friendly value' you see in the GUI.

          Some examples:

          1. You want to send an alert to the Alerts Window.

          In the GUI you chose the destination as "Alerts Window".

          The value that actually gets set, if you look at the XML of the job, is "EM".

          Therefore, in Find&Update you need to use EM:

          And in the GUI the result will be the friendly value:

           

          2. ON/DO based on OS Return Code.

          In the GUI BMC added a friendly drop down with the different options.

          But in the XML, the value used is COMPSTAT.

           

           

          And in the GUI the result will be the friendly value:

           

          3. Similar to above, ON/DO based on 'Ended Not Ok' value. The code to use us NOTOK.

           

          And in the GUI the result will be the friendly value:

           

          Unfortunately there is no list of the Friendly Names vs Find&Update values to use that I could find.

          But I did create a spreadsheet that lists all Job Fields (from GUI) vs XML values in a thread on this communities site, search for 'Control-M Job/Folder Field Names in GUI vs XML (vs JSON)' in communities and you should find it.

           

          Hopefully that is helpful.

           

          Regards,

          Bentze

          3 of 3 people found this helpful
          • 3. Re: job definition "find and update"
            Lin Zhang Chen

            Bentze Perlmutter

            thanks a lot.

            and i try the following for someone else.

            1.Job's number of excutions : RUNCOUNT=

            2.Job's number of reruns  :RERUNNO=

            3.Job's number of Failures:FAILCOUNT=

            4.Job has not been submitted yet :NOTSUB

            5.Job Ended:COMPSTAT=ANY