passing date into command line in format YYYYMMDD

Tools and several solutions to manage Control-M products
Post Reply
markb

Post by markb » 07 Mar 2008 5:12

Hi,

If you use %%$DATE - the $ adds century to the date format giving you YYYYMMDD.


Cheers,


Mark.

hipikll

Post by hipikll » 07 Mar 2008 7:32

Look for:
%%SUBSTR
%%CALCDATE
%%$DATE
%%$NEXT
%%$ODATE
%%$OYEAR
%%$PREV
%%$RDATE
%%$RYEAR
%%$YEAR

RTFM :)

User avatar
Darvedd
Nouveau
Nouveau
Posts: 9
Joined: 31 Jul 2007 12:00

passing date into command line in format YYYYMMDD

Post by Darvedd » 21 Mar 2008 5:49

Check out the Job Parameter and Variable Reference Guide - it's got all sorts of goodies like these.

Download it from BMC if you don't already have it.

Regards,
Michael Jenkins

User avatar
mauriziog
Nouveau
Nouveau
Posts: 807
Joined: 08 Jun 2007 12:00
Location: Varese - Italy
Contact:

Post by mauriziog » 23 Apr 2008 2:14

I complete the aswer with another variable that can be used:
%%CENT (is 20 until 2100 ...)

so AAAAMMDD = %%CENT.%%ODATE
or %%$DATE that is the system date, so if you have a New Day procedure at 10 a.m for example can be different ....

Post Reply