As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
User wants to FTP a file from Report Caster. Caster requests a filenemae when job is created. User would like this name to be dynamically created with date stamp like outputfile_may16_2008
I didn't check out Ira's link, so I don't know if I'm repeating, but if you specify a Dynamic List in the distribution option then specify a procedure which exists in the server's path. In this procedure you will dynamically build the name of the distribution file to whatever specifications you need. In our case we concatenate a P or I prefix, a policy number, and a date. - You have complete control. Be sure to include ON TABLE PCHOLD. There are other specifics for the content of the output which I can't recall off the top of my head - you'll have to look them up in the RC manual under Dynamic List. We we used this technique for a few years with no issues.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
I suggest FTP'ing the output separate from RCaster's FTP distribution facility.
Produce the report you want but output it to a FILEDEF'd location (so that you know it's name) or use the TEMPPATH(,) function to find it's path and construct it's name. Then generate the name of the target FTP file, includin the date and any input parameter supplied text.
Use WRITEs to create an FTP command string that includes both generated path/names: the report's and the FTP target's.
Lastly, use DOS commands to execute FTP and pass it the name of the previously prepared command stream.
Using the TEMPPATH(,) option for an EXCEL report, your procedure will look something like this:
-SET &REPORT_PATH = TEMPPATH(40,'A40')||'\REPORT.xls'
-SET &X=EDIT(&DATE,'99$99$20099');
-SET &FTPFILENAME='REPORT_OF_'||&X||'.xls'
TABLE FILE
...
ON TABLE HOLD AS REPORT FORMAT EXL2K
END
-RUN
FILEDEF FTPCMDS DISK E:\IBI\APPS\...\TEMPFTPCMDS.FTP
-RUN
-WRITE FTPCMDSP open <ftptargetservice>
-WRITE FTPCMDS <ftpuserid>
-WRITE FTPCMDS <ftppassword>
-WRITE FTPCMDS <... other commands as needed ...>
-WRITE FTPCMDS &FTPFILENAME
-WRITE FTPCMDSP put &REPORT_PATH
-WRITE FTPCMDSP close
-WRITE FTPCMDS bye
-RUN
DOS ftp -i -s:E:\IBI\APPS\...\TEMPFTPCMDS.FTP
-RUN
ChrisThis message has been edited. Last edited by: cburtt,
WIN/2K running WF 7.6.4 Development via DevStudio 7.6.4, MRE, TextEditor. Data is Oracle, MS-SQL.
Posts: 154 | Location: NY | Registered: October 27, 2005