Need a variable to get the prior schedule month

Everything about Control-M Enterprise Manager Server installation or setup.
Post Reply
User avatar
donnawonna
Nouveau
Nouveau
Posts: 8
Joined: 19 Apr 2011 12:00

Need a variable to get the prior schedule month

Post by donnawonna » 10 May 2012 8:26

Is there a way to code in the STEPS tab to get the prior month?
We are getting errors by doing a value --
%%$CALCDATE %%MONTH -1
Is there a %%$CALCMONTH?

User avatar
Danny
Nouveau
Nouveau
Posts: 21
Joined: 18 May 2010 12:00
Location: EMEA
Contact:

Post by Danny » 11 May 2012 11:29

In the set panel you can do something like this:

LDPM = %%$CALCDATE %%$ODATE -%%ODAY
YYYYMM = %%SUBSTR %%LDPM 1 6
YYYYMMDD = %%YYYYMM.%%ODAY

User avatar
donnawonna
Nouveau
Nouveau
Posts: 8
Joined: 19 Apr 2011 12:00

Post by donnawonna » 17 May 2012 9:00

Thanks for the response. I will test.

User avatar
donnawonna
Nouveau
Nouveau
Posts: 8
Joined: 19 Apr 2011 12:00

Post by donnawonna » 17 May 2012 9:27

The test came back with a "CTMERR17".
I was told that the %%CALCDATE can only be used for a DAY and a MONTH.

Post Reply