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.
i need to include the current day's date dynamically in the file name when ftp'ing a file via report caster. I've used the method below (which works) but it puts the date as a field within the report as well (unless I'm missing a step to exclude). Are there any other ways to do this? thanks
-SET &DATER = &YYMD ; -TYPE &DATER -RUN DEFINE FILE CAR FTP_FILENAME/A40 WITH COUNTRY = 'DCDC-Vdoxx-' || '&DATER' || '.txt' ; END SET ASNAMES=ON TABLE FILE CAR PRINT FTP_FILENAME AS DEST IF RECORDLIMIT EQ 1 ON TABLE NOTOTAL ON TABLE PCHOLD ENDThis message has been edited. Last edited by: Kerry,
There is a disadvantage to retiring, I can't go see how I did this in the past. I know it isn't much help to say it can be done. I had to open a case when I first did this and there was something that had to be set in the Report Caster job.
Pat WF 7.6.8, AIX, AS400, NT AS400 FOCUS, AIX FOCUS, Oracle, DB2, JDE, Lotus Notes
Posts: 755 | Location: TX | Registered: September 25, 2007
Is this what you're looking for? If so, this is one way we can do it.
-SET &D=&YYMD ;
-SET &FILE1='DCDC-Vdoxx-' | &D | '.TXT' ;
FILEDEF TEST_DATA DISK "D:\your\ftp\output\path\&FILE1"
SET ASNAMES=ON
TABLE FILE CAR
PRINT COUNTRY CAR MODEL DEALER_COST RETAIL_COST
IF RECORDLIMIT EQ 1
ON TABLE NOTOTAL
ON TABLE SAVE AS TEST_DATA FORMAT COMT
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, SQUEEZE=ON, FONT=COURIER, $
ENDSTYLE
END
If you want to add both date and time in the file, then use
-SET &DT=&YYMD||&TOD ;
Hope this helps you!This message has been edited. Last edited by: Venkat-,
product release:8203 o/s: windows 10 expected o/p formats: HTML,EXCEL,PDF