Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Report Castter Dynamic Names in FTP

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Report Castter Dynamic Names in FTP
 Login/Join
 
Member
posted
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

Any ideas would be appreciated.
 
Posts: 18 | Registered: August 25, 2006Report This Post
Platinum Member
posted Hide Post
Tom, check this link out. It worked great for me here. Good luck. Ira
http://techsupport.informationbuilders.com/sps/10962092.html


wf 537 aix 533


aix-533,websphere 5.1.1,apache-2.0,
wf 538(d), 537 (p),
==============
7.6.11 (t) aix 5312
websphere 6.1.19
apache 2.0
 
Posts: 195 | Registered: October 27, 2006Report This Post
Virtuoso
posted Hide Post
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, 2007Report This Post
Member
posted Hide Post
Thanks for your suggestions. I will try the process. Appreciate all your time.
 
Posts: 18 | Registered: August 25, 2006Report This Post
Platinum Member
posted Hide Post
Tom F,

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



Chris

This 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, 2005Report This Post
Virtuoso
posted Hide Post
Nice idea Tom, but how do you schedule this?




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Report Castter Dynamic Names in FTP

Copyright © 1996-2020 Information Builders