Good jobs counts

A lot of scripts ans example to extract information from Control-M tools.
Post Reply
User avatar
saxenaa
Nouveau
Nouveau
Posts: 5
Joined: 25 May 2010 12:00

Good jobs counts

Post by saxenaa » 21 Nov 2011 1:05

Hi,

For the Good jobs counts we have created one job in our Control-M and using below command

Command : ctmlog listmsg 5133 %%A 0800 %%B 0759 | mailx -s "Batch Jobs - Successful" %%C %%D %%E %%F

Below variable pass through SET tab..

In above command %%A= %%CALCDATE %%ODATE -1
AND %%B= %%CALCDATE %%ODATE

The above command we use daily to find good jobs detail through Control-M ( using batch job)

Here my question is suppose I want weekly report instead of daily report, so in that case how we calculate the date under %%A and %%B section ..?

i.e. I want whole week report 2011 11 15 to 2011 11 21
Sincerely,
Abhishek Saxena-ITIL- V3,@ UMP (United Manger Program) also Six Sigma Yellow Belt certified.cell:9810833122
abhishek.saxena@gmail.com

User avatar
siipryasa
Nouveau
Nouveau
Posts: 11
Joined: 18 May 2008 12:00
Location: Mexico, D. F.

Post by siipryasa » 25 Nov 2011 2:00

Remember the variable %%odate has the original date of ctm, if you need to do calculate dates after or befor, in the sentence %%CALCDATE you can use %%ODATE + or - for example:

%%A=%%CALCDATE %%ODATE -1
%%B=%%CALCDATE %%ODATE +6

Best Regards

User avatar
ahtisham454
Nouveau
Nouveau
Posts: 23
Joined: 16 Feb 2012 12:00

Post by ahtisham454 » 21 Feb 2012 11:42

Keep up the good work
Last edited by ahtisham454 on 27 Feb 2012 10:49, edited 1 time in total.

Post Reply