Focal Point
[CLOSED] Dyanmic file name in Report caster

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8377008926

March 28, 2013, 11:32 AM
a03654
[CLOSED] Dyanmic file name in Report caster
Hi all,

i scheudled a report in report caster to run monthly in xls format and ftp the file to a location as the report is huge size.
When the new report is generated, it is replacing the already existing report in the specified location. but we need old reports also available in the location

can someone plz let me know is it poosible to append current date/time to the filename or create different folders for eachtime file is created in report caser.

This message has been edited. Last edited by: <Kathryn Henning>,
March 28, 2013, 01:11 PM
Alex
Name your file as "filename_&YYMD". At run time the current date will be appended to your file name.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
March 28, 2013, 02:16 PM
Danny-SRL
If you are running this procedure more than once/day, append the &TOD variable:
filename_&YYMD._&TOD


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

March 29, 2013, 09:12 AM
a03654
Thanks all for reply.

i have one more question. there is a file in a file share location (\\vfile01\ctm\files\). Is there a way to rename the file in that location ??
March 30, 2013, 02:13 PM
Danny-SRL
Sure. Use the ! ("bang") and issue your rename command. In your case (unix? linux?):
!mv old-file-name new-file-name

You will need write permission.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

March 31, 2013, 06:46 AM
Alex
You can run operating system commands from within a FEX in the form of -[OP System) [any command]. So, for UNIX:
-UNIX mv [options] oldfilename newfilename


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
April 01, 2013, 09:08 AM
jgelona
As Report Caster will only do one file/report in one schedule, I generally write my own sftp/ftp scripts and use the -UNIX . script_nm do to the sftp/ftp. The advantage here is if you have a job stream that has numerous steps that create numerous outputs, you can have one RC job and do the sftp/ftp at the end. RC may object because there is no output to distribute there are ways around that as well.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.