Previous Topic

Next Topic

Book Contents

Book Index

Create a job that includes On-Do statements (with variable) example

The following example describes a successful Job Creation request that creates a single job including multiple On-Do statements and a variable.

<?xml version="1.0" encoding="iso-8859-1"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

  <SOAP-ENV:Body>

    <ctmem:request_create_aj xmlns:ctmem="http://www.bmc.com/ctmem/schema918">

      <ctmem:user_token>$USER_TOKEN$</ctmem:user_token>

      <ctmem:control_m>ctm3-omega</ctmem:control_m>

      <ctmem:active_job>

        <ctmem:job_name>DoSys0</ctmem:job_name>

        <ctmem:mem_name>DoSys0</ctmem:mem_name>

        <ctmem:task_type>command</ctmem:task_type>

        <ctmem:application>OnDo</ctmem:application>

        <ctmem:sub_application>DoSys</ctmem:sub_application>

        <ctmem:max_wait>0</ctmem:max_wait>

        <ctmem:description>Job with On-Do statements.</ctmem:description>

        <ctmem:time_from>0900</ctmem:time_from>

        <ctmem:time_until>1100</ctmem:time_until>

<ctmem:priority>Ab</ctmem:priority>

        <ctmem:critical>no</ctmem:critical>

        <ctmem:cyclic>no</ctmem:cyclic>

        <ctmem:confirm_flag>yes</ctmem:confirm_flag>

        <ctmem:auto_archive>no</ctmem:auto_archive>

        <ctmem:sys_db>no</ctmem:sys_db>

        <ctmem:arch_max_days>0</ctmem:arch_max_days>

        <ctmem:arch_max_runs>0</ctmem:arch_max_runs>

        <ctmem:rerun_max>0</ctmem:rerun_max>

        <ctmem:count_cyclic_from>end</ctmem:count_cyclic_from>

        <ctmem:command>ls -l</ctmem:command>

        <ctmem:variable_assignments>

          <ctmem:autoedit_assignment>

            <ctmem:name>COPYTO</ctmem:name>

            <ctmem:value>%%HOME.%%FILE</ctmem:value>

          </ctmem:autoedit_assignment>

        </ctmem:autoedit_assignments>

        <ctmem:on_do_statements>

        <ctmem:on_do_statement>

               <ctmem:on_statements>

                   <ctmem:on_statement>

                      <ctmem:code>*</ctmem:code>

                      <ctmem:statement>*</ctmem:statement>

                    </ctmem:on_statement>

               </ctmem:on_statements>

               <ctmem:do_statements>

                      <ctmem:do_output>

                             <ctmem:option>copy</ctmem:option>

                             <ctmem:parameter>%%COPYTO</ctmem:parameter>

                      </ctmem:do_output>

              </ctmem:do_statements>

            </ctmem:on_do_statement>

          </ctmem:on_do_statements>

        </ctmem:active_job>

      </ctmem:request_create_aj>

    </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Parent Topic

Job creation examples