Search the web
Sign In
New User? Sign Up
Control-X · Primarily for BMC Software's (formerly New Dimension Software's) Control-M automation package, but any Control-X Products are w
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Move a lot of classic jobs in a scheduling group.   Message List  
Reply | Forward Message #17600 of 18003 |
Re: Move a lot of classic jobs in a scheduling group.

Hi,

For future purpose, there is one easy method for copy jobs in a Scheduling table
to a Group scheduling table:-

You can copy the jobs in a Scheduling table to a Group Scheduling table using
the copydefjob utility.

1. Using CONTROL-M/Desktop, define a Group Scheduling table
containing no jobs.
2. Write the Group Scheduling table to the CONTROL-M/EM
database.

3. Create a copydefjob arguments file in which jobs in a Scheduling
table are copied to the Group Scheduling table that you created:

A. Open a text editor. Format the file using the specifications in
"copydefjob Arguments File" on page 3-27.
B. Specify the CONTROL-M installation in which the jobs to be
copied reside using the DATACENTER parameter:
<DATACENTER FROM="<CTM_Name>"/>
C. Specify that the Table Name value of the jobs will change from
the name of the Scheduling table to the name of the Group
Scheduling table with the following tag:
<TABLE_NAME FROM="<Sched_Tbl_Name>"
TO="<Grp_Sched_Tbl_Name>"/>
D. Save and close the file.

4. At the command line, enter the copydefjob utility command that uses
the file that you created in the previous step:
copydefjob -u <emuser> -p <empass> -s
<hostname> -arg <arg_file_name>

5. Use the Scheduling Table Manager in CONTROL-M/Desktop to
upload the Group Scheduling table to the CONTROL-M/Server.
BMC Software, Inc., Confidential and Proprietary Information
Job Utilities 3-45

6. In the CONTROL-M/EM GUI, order the Group Scheduling table.
7. In the CONTROL-M/EM GUI, verify that the Group Scheduling
table now contains the jobs that were copied to it.
8. Delete the Scheduling table. It is no longer needed.


Example
This arguments file copies all jobs in the RegTable Scheduling table in
the ctm600 data center to the GrpSTable Group Scheduling table.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE COPYJOB SYSTEM "copyjob.dtd">
<COPYJOB>
<DATACENTER FROM="ctm600"/>
<TABLE_NAME FROM="RegTable" TO="GrpSTable"/>
</COPYJOB>


regards,

--- In Control-X@yahoogroups.com, Boris BIELECKI <boris.bielecki@...> wrote:
>
> Anyway, I tryed that method and it's working quite fine.Thx a lot.
>
> 2009/6/23 Pat Hicok <PHicok@...>
>
> >
> >
> > Hi Boris,
> >
> >
> >
> > From Knowledge Bass SLN000000199903
> >
> >
> >
> >
> >
> > Step 1:
> >
> > Define an empty Group Scheduling Table with desired Tag definitions using
> > EM/Desktop.
> >
> >
> >
> > Step 2:
> >
> > Create a TERM file that defines the Regular Scheduling Table and the Group
> > Scheduling Table
> >
> > Below is an example of such a file (expTable.xml)
> >
> >
> >
--------------------------------------------------------------------------------\
-------------
> >
> > <?xml version='1.0' encoding='ISO-8859-1' ?>
> >
> > <!DOCTYPE TERMS SYSTEM "terms.dtd">
> >
> > <TERMS>
> >
> > <TERM>
> >
> > <PARAM NAME="DATACENTER" OP="EQ" VALUE="prod613"/>
> >
> > <PARAM NAME="TABLE_NAME" OP="EQ"
> > VALUE="UnixGrpSchedTbl"/>
> >
> > </TERM>
> >
> > <TERM>
> >
> > <PARAM NAME="DATACENTER" OP="LIKE"
> > VALUE="prod613"/>
> >
> > <PARAM NAME="TABLE_NAME" OP="LIKE"
> > VALUE="UnixRegSchedTbl"/>
> >
> > </TERM>
> >
> > </TERMS>
> >
> > ---------------------------------------------------------------------------
> >
> >
> >
> > Step 3:
> >
> > Use this TERM file to export the tables to a flat XML file using
> > 'exportdeftable' command on the CONTROL-M/Enterprise Manager machine.
> >
> >
> >
> > >exportdeftable -USERNAME emuser -PASSWORD empass -HOST emprod -ARG_FILE
> > expTable.xml -OUT_FILE exportTables.dat
> >
> >
> >
> > The output file (exporTables.dat) will contain data for all the jobs of the
> > two tables specified.
> >
> >
> >
> > Below is an example of the data found in the output file:
> >
> > ---------------------------------------------------------------------------
> >
> > <?xml version='1.0' encoding='ISO-8859-1' ?>
> >
> > <!DOCTYPE DEFTABLE SYSTEM "C:\Program Files\BMC Software\CONTROL-M
> > EM/Ecscli/resource/deftable.dtd">
> >
> > <DEFTABLE >
> >
> > <SCHED_TABLE DATACENTER="prod613" TABLE_NAME="UnixRegSchedTbl"
> > LAST_UPLOAD="Friday, April 29, 2005 3:37:29 PM" USED_BY_CODE="0" >
> >
> > <JOB
> >
> > APR="1"
> >
> > . . . (skipping to the end of table)
> >
> > </JOB>
> >
> > </SCHED_TABLE>
> >
> > <SCHED_GROUP
> >
> > GROUP="UnixJobs"
> >
> > OWNER="controlm"
> >
> > AUTHOR="emuser"
> >
> > CONFIRM="0"
> >
> > JOBNAME="Job4"
> >
> > MAXWAIT="0"
> >
> > MEMNAME="Job4"
> >
> > DATACENTER="prod613"
> >
> > TABLE_NAME="UnixGrpSchedTbl"
> >
> > ADJUST_COND="N"
> >
> > APPLICATION="UnixAppl"
> >
> > MULTY_AGENT="N"
> >
> > USED_BY_CODE="0"
> >
> > CREATION_DATE="20050504"
> >
> > CREATION_TIME="152417"
> >
> > CREATION_USER="emuser"
> >
> > >
> >
> > <TAG
> >
> > APR="0"
> >
> > AUG="0"
> >
> > DEC="0"
> >
> > FEB="0"
> >
> > JAN="0"
> >
> > JUL="0"
> >
> > JUN="0"
> >
> > MAR="0"
> >
> > MAY="0"
> >
> > NOV="0"
> >
> > OCT="0"
> >
> > SEP="0"
> >
> > DAYS="ALL"
> >
> > RETRO="0"
> >
> > SHIFT="IGNOREJOB"
> >
> > MAXWAIT="00"
> >
> > SHIFTNUM="+00"
> >
> > TAG_NAME="TAG1"
> >
> > DAYS_AND_OR="OR"
> >
> > />
> >
> > </SCHED_GROUP>
> >
> > </DEFTABLE>
> >
> >
> >
> > Step 4:
> >
> > Cut all lines from Regular Scheduling table from the first Job definition
> > till last job definition which starts with <JOB and ends with </JOB>
> >
> >
> >
> > Step 5:
> >
> > Paste all the lines right before </SCHED_GROUP>
> >
> > And remove the section that starts and ends <SCHED_TABLE>
> >
> > The resulting file should look like this:
> >
> >
> >
> > <?xml version='1.0' encoding='ISO-8859-1' ?>
> >
> > <!DOCTYPE DEFTABLE SYSTEM "C:\Program Files\BMC Software\CONTROL-M
> > EM/Ecscli/resource/deftable.dtd">
> >
> > <DEFTABLE >
> >
> > <SCHED_GROUP
> >
> > GROUP="UnixJobs"
> >
> > OWNER="controlm"
> >
> > AUTHOR="emuser"
> >
> > CONFIRM="0"
> >
> > JOBNAME="Job4"
> >
> > MAXWAIT="0"
> >
> > MEMNAME="Job4"
> >
> > DATACENTER="prod613"
> >
> > TABLE_NAME="UnixGrpSchedTbl"
> >
> > ADJUST_COND="N"
> >
> > APPLICATION="UnixAppl"
> >
> > MULTY_AGENT="N"
> >
> > USED_BY_CODE="0"
> >
> > CREATION_DATE="20050504"
> >
> > CREATION_TIME="152417"
> >
> > CREATION_USER="emuser"
> >
> > >
> >
> > <TAG
> >
> > APR="0"
> >
> > AUG="0"
> >
> > DEC="0"
> >
> > FEB="0"
> >
> > JAN="0"
> >
> > JUL="0"
> >
> > JUN="0"
> >
> > MAR="0"
> >
> > MAY="0"
> >
> > NOV="0"
> >
> > OCT="0"
> >
> > SEP="0"
> >
> > DAYS="ALL"
> >
> > RETRO="0"
> >
> > SHIFT="IGNOREJOB"
> >
> > MAXWAIT="00"
> >
> > SHIFTNUM="+00"
> >
> > TAG_NAME="TAG1"
> >
> > DAYS_AND_OR="OR"
> >
> > />
> >
> > <JOB
> >
> > APR="1"
> >
> > . . . (skipping to the end of job definitions)
> >
> > </JOB>
> >
> > </SCHED_GROUP>
> >
> > </DEFTABLE>
> >
> >
> >
> > Step 6:
> >
> > After you have saved the file in ASCII format (expTable.dat) you are ready
> > to import the new Group Scheduling Table with all the jobs from the previous
> > Regular Scheduling Table using 'deftable' command with overwrite option :
> >
> > >deftable -USERNAME emuser -PASSWORD empass -HOST emprod -SRC_FILE
> > expTable.dat /o
> >
> > ______________________________________
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > *From:* Control-X@yahoogroups.com [mailto:Control-X@yahoogroups.com] *On
> > Behalf Of *Boris BIELECKI
> > *Sent:* Tuesday, June 23, 2009 3:59 AM
> > *To:* Control-X@yahoogroups.com
> > *Subject:* [Control-X] Move a lot of classic jobs in a scheduling group.
> >
> >
> >
> >
> >
> >
> > Hello every Ctm users,
> >
> >
> >
> > I need your help to avoid me a lot of work. I have a simple chain to adapt
> > to simplify our visualisation in a 6.3.01 env.
> >
> > That chain is made of a start job that give a condition to 70 parallel
> > jobs.
> >
> > After that, al the 70 jobs give a condition to another unique job.
> >
> >
> >
> > I would like to put all those 70 jobs in a scheduling group to have less
> > conditions and less links in the visualisation.
> >
> > I have created an empty scheduling group, but when I try to do a mass
> > update to move all those jobs in that group, it says me that that this is
> > impossible to move a 'classic' job to a scheduling group. Surely because of
> > the scheduling tag panel.
> >
> >
> >
> > I guess I can transfer my jobs via the XML export, but I remember that
> > there was also a method around the mass update.
> >
> > Do you have any clue for this ?
> >
> >
> >
> > Thx.
> >
> > BČ
> >
> >
> >
>





Sun Jun 28, 2009 8:00 pm

rahulsehgal305
Offline Offline
Send Email Send Email

Forward
Message #17600 of 18003 |
Expand Messages Author Sort by Date

Hello every Ctm users, I need your help to avoid me a lot of work. I have a simple chain to adapt to simplify our visualisation in a 6.3.01 env. That chain is...
Boris BIELECKI
boris_bielecki
Offline Send Email
Jun 23, 2009
8:00 am

Hi Boris, From Knowledge Bass SLN000000199903 Step 1: Define an empty Group Scheduling Table with desired Tag definitions using EM/Desktop. Step 2: Create a...
Pat Hicok
path_40
Offline Send Email
Jun 23, 2009
12:51 pm

Anyway, I tryed that method and it's working quite fine.Thx a lot. 2009/6/23 Pat Hicok <PHicok@...> ... Anyway, I tryed that method and it's working...
Boris BIELECKI
boris_bielecki
Offline Send Email
Jun 25, 2009
9:09 am

Hi, For future purpose, there is one easy method for copy jobs in a Scheduling table to a Group scheduling table:- You can copy the jobs in a Scheduling table...
rahulsehgal305
Offline Send Email
Jun 28, 2009
8:00 pm

Thx a lot for these explanations.I have still some table to modify. I will try this also. 2009/6/28 rahulsehgal305 <rahulsehgal305@...> ... Thx a lot...
Boris BIELECKI
boris_bielecki
Offline Send Email
Jun 28, 2009
8:11 pm

Just my 2 cents on this. It doesn't provide guidance or solution to your need. Having 70 jobs in a scheduling group is probably high. Depending on your...
Aruneesh Salhotra
controlmpro
Offline Send Email
Jun 23, 2009
12:55 pm

Hi, Thx for your answers. 70 jobs in a SG is not much. I already had more than hundreds jobs intercepted on a SAP server in one group. Here, every job have a...
Boris BIELECKI
boris_bielecki
Offline Send Email
Jun 23, 2009
1:49 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help