Previous Topic

Next Topic

Book Contents

Book Index

Create a job that includes On-Do statements example

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

<?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>DoVAr0</ctmem:job_name>

                    <ctmem:mem_name>DoVAr0</ctmem:mem_name>

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

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

                    <ctmem:sub_application>DoSetVar</ctmem:sub_application>

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

                    <ctmem:description>Multiple On-Dos</ctmem:description>

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

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

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

                      <ctmem:confirm_flag>no</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:override_path>JOBDOC</ctmem:override_path>

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

                    <ctmem:command>echo %%ABC</ctmem:command>

                       <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_variable>

                                        <ctmem:name>Auto1</ctmem:name>

                                        <ctmem:value>1234567890</ctmem:value>

                                   </ctmem:do_variable

                              </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