Search found 37 matches

by matom
12 Sep 2011 4:39
Forum: Job Definition
Topic: Autoedit var. for Month in Alphabet like Janua. in Control-m
Replies: 2
Views: 2994

Hi, Months in alpahbet format are not avaliable with AutoEdit Variables. Below, one way to get "YYMonDD" date : %%ListeMois=Jan1111111Feb2222222Mar3333333Apr4444444May555555 5Jun6666666Jul7777777Aug8888888Sep9999999OctAAAAAAANovBBBBBBBDec %%Jour=%%SUBSTR %%ODATE 5 2 %%Mois=%%SUBSTR %%ODATE 3 2 %%Ann...
by matom
23 Aug 2011 7:30
Forum: Control-M Server
Topic: Automatically clean JOBS HOLD, ... on AJF
Replies: 1
Views: 3188

Hi voici un/here is an example #!/bin/sh #-- Indiquer le nombre de jours pendant lesquels les jobs en HOLD doivent etre conserves JoursConservation=10 #-- Calcul de la date avant laquelle on supprime les jobs en HOLD DateLimite=`ctmstvar 0 '%%$CALCDATE %%ODATE -'${JoursConservation}` #-- On charge d...
by matom
18 Aug 2011 9:52
Forum: Control-M Enterprise Manager
Topic: Unable to order jobs from Control-M EM
Replies: 4
Views: 5511

Hi, On your Control-M/Server execute : ctmorder -SCHEDTAB 'PCRDLY-P1' -JOBNAME 'AU_PAL_pl' -ODATE ODAT If : 1°) 5703 SCHEDULING TABLE PCRDLY-P1 DOES NOT EXIST table wasn't uploaded 2°) Jobname AU_PAL_pl2 not found in table PCRDLY-P1, or incorrect job sequence number. table was updated without upload...
by matom
06 Jun 2011 3:50
Forum: Job Definition
Topic: Specify the format of the {counter} field in template
Replies: 1
Views: 2023

Hi felix_clerc, Reset counter: Tools => Options... => General then fill the "{Counter}" field. Mass create job with 3 digits with increment by 10 : JobName{Substr {Counter}.1,000000000}{Counter}0 to create jobs named (field {Counter}=1) JobName010, JobName020, ...,JobName980, JobName990 Regards
by matom
19 Apr 2011 4:11
Forum: Job Definition
Topic: [ctmcreate] Embedded Script
Replies: 6
Views: 10871

Hi, Try " ls /tmp/bar/foo " Your command works : ctrlm640 [15] ls -ltr /tmp/mm* -rwxr----- 1 ctrlm640 controlm 23 Apr 19 15:59 /tmp/mm.ksh ctrlm640 [16] ctmcreate -TASKTYPE JOB -JOBNAME TEST -EMBEDDED_SCRIPT "/tmp/mm.ksh" new ORDER created, orderid:0004xa(6382) for JOBNAME=TEST. Regards
by matom
07 Apr 2011 7:08
Forum: Job Definition
Topic: Varaible for a previous day in Mmm-DD-YY (Apr-01-11) format
Replies: 7
Views: 9783

Another way without scripting: %%ListeMois=Jan1111111Feb2222222Mar3333333Apr4444444May5555555Jun6666666Jul7777777Aug8888888Sep9999999OctAAAAAAANovBBBBBBBDec %%UneDate=%%CALCDATE %%DATE -1 %%Jour=%%SUBSTR %%UneDate 5 2 %%Mois=%%SUBSTR %%UneDate 3 2 %%Annee=%%SUBSTR %%UneDate 1 2 %%Position=%%Mois.0 %...
by matom
04 Feb 2011 5:51
Forum: Control-M Enterprise Manager
Topic: exportdeftable error !!
Replies: 5
Views: 5613

Hi catchtony,

try with an argfile like this :

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE TERMS SYSTEM "terms.dtd">
<TERMS>
<TERM>
<PARAM NAME="DATACENTER" OP="EQ" VALUE="DataCentre" />
<PARAM NAME="TABLE_NAME" OP="EQ" VALUE="TABLE_XXXXX" />
</TERM>
</TERMS>

Regards
matom
by matom
04 Feb 2011 5:34
Forum: Job Definition
Topic: script into job CTRLM : trouble Treatment awk
Replies: 3
Views: 3214

Hello Ozarm,

Add a "pwd" command in your script.

Try:
awk '{print $1,$2}' /produits/TEST/TEST1/TableUpload.txt > $LOGFILE


Regards
matom
by matom
06 Jan 2011 11:56
Forum: Exploitation / Operation
Topic: Has anyone ever successfully run ctmsweep utility?
Replies: 2
Views: 3262

Hi, Here is an example : intctm-ctrlm64 [2] ctmsweep -date 20100901 CTM6921 -> main_p_ctmsweep: Retrieving obsolete definitions from CONTROL-M/Server database using date criteria: 20100901 CTM6922 -> WriteReport: Found 1 table(s) that contain obsolete jobs CTM6923 -> WriteReport: Generate report fil...
by matom
29 Dec 2010 4:09
Forum: Control-M Enterprise Manager
Topic: Logging onto EM in Different Environments
Replies: 2
Views: 3639

Create two shortcuts, one for each environment, on your desktop! How to do (EM 6.2 example) : Go to « C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\Default\etc\domains » 1. make a save copy of your confg.xml file 2. make two other config.xml file copies; call them config_EMPROD.xml and config_EM...
by matom
23 Nov 2010 12:01
Forum: Exploitation / Operation
Topic: Probleme Trapping messages in sysout
Replies: 4
Views: 3621

Hi, The searched string must be in the first 132 chars, even if SYSOUT_WINDOW_SIZE 80 (sysout display parameter). e.g.: shell: #!/bin/sh echo "12345678910 345678 20 345678 30 345678 40 345678 50 345678 60 345678 70 345678 80 345678 90 345678 100 45678 110 45678 120 45678 130 4TOTO1er zzzzzzz" cat E/...
by matom
17 Nov 2010 11:33
Forum: Control-M Server
Topic: cd $HOME on server UNIX
Replies: 2
Views: 2970

Hello Moha1984,

Fill the "File Name" to copy your sysout ("sysout handling" folder "PostProc") in a app directory.
If "File Name" was empty your sysout was copied in owner's home dir.

Regards.
by matom
04 Nov 2010 10:25
Forum: Control-M Server
Topic: control sysout
Replies: 3
Views: 3377

Hi moha1984,

Default unix switch is "-x" (Bourne and Korn shell)

two ways to resolve your "issue":

1) update your agent config. ctmunixcfg utility.set "n" .
IMPORTANT : "On statement" can't be used with "n" shell flag.

2) add "set +x" in the script.

Regards,
Michel
by matom
24 Jun 2010 9:50
Forum: Control-M Links
Topic: how to run the dos commands from control-m job
Replies: 6
Views: 31940

Hello jayaprakash,

Define a Control-M/job with a ".bat" file in "File Name" field.
In the ".bat" file call the vb script.

Regards
Michel
by matom
12 Nov 2009 7:53
Forum: Scripts
Topic: Récupérer une variable d'un script dans control-M
Replies: 4
Views: 12572

Bonjour, Voici un exemple d'utilisation avec une globale variable: Dans votre script : 1°) initialiser les variables d'environnement (sur un agent par exemple CONTROLM=HomeDirAgent/ctm; mettre dans PATH et LIBPATH ou LD_LIBRARY_PATH,suivant l'OS, HomeDirAgent/ctm et HomeDirAgent/ctm/scripts) 2°) Ini...