Need month and year of the previus month in filename

All questions about Control-M jobs definitions
Post Reply
Klaus

Need month and year of the previus month in filename

Post by Klaus » 25 Apr 2012 10:36

If I use the BO-plugin I can specify the output data file name.
This I would so indicate that it also contains each month and year (mmyyyy) of the previous month.
For example, "Berechnung_032012.xls" when I start the job in April.
How can I achieve this?

Regards

Klaus

Klaus

Post by Klaus » 26 Apr 2012 12:57

Thank you.

These terms I've found before with search-function.
But I don't know, how to use it in the jobdiscription.

Where can I perform the calculation in order to then paste into my file names?
The same applies if I have to hand it to the BO report a parameter.

Regards

Klaus :?

User avatar
jstarkw
Nouveau
Nouveau
Posts: 58
Joined: 14 Jan 2010 12:00

Post by jstarkw » 27 Apr 2012 1:44

If you are calling the file name on the command line you would just do this. "Berechnung_%%PARM1..xls"

If you are calling the file name in a script use %%PARM1 as a positional parameter.

Klaus

Post by Klaus » 30 Apr 2012 6:41

And in which part have I to calculate "PARM1" ??

Regards Klaus

User avatar
jstarkw
Nouveau
Nouveau
Posts: 58
Joined: 14 Jan 2010 12:00

Post by jstarkw » 02 May 2012 4:41

Place the part that "chookgate" wrote in the set tab scheduling group tab.

Klaus

Post by Klaus » 03 May 2012 1:23

Many thanks at all.
Now it works fine.

Kindly Regards

Klaus

Post Reply