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 am having a problem writing a file to a particular directory. The full path is very long. When I shorten the filename, the program executes successfully. When I run it as shown below, it executes with no errors but does not write the file to the specified directory.
Question: Is there a limit on the number of characters for the full path + filename? Is there a limit on the numbers of characters that can be passed to a variable using the -SET command?
SET HOLDLIST = ALL TABLE FILE MED2 SUM MD_CON MD_MBR CL_RXMED PR_RXMED DEN_CON DEN_MBR DEN_PAID DEN_INC BY FIN_CYCLE_DT HEADING "PAID CLAIMS BY MONTH" FOOTING "Report statelaw" "Produced on <+0>&DATEtrMDYY <+0> " ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SAVE FILENAME &STATEL FORMAT PDF
---------------------------------- WF 7.1.3 ; Windows XP; DB2
WF 7.1.3 - Win 2003 - DB2
Posts: 4 | Location: Little Rock, Arkansas | Registered: August 30, 2007
The normal use of FILEDEF is "FILEDEF DISK ". The command makes a relationship between the full path to a file, the 'external name' by which it is known to the OS, and a short nickname for the file, the 'internal name' by which it can be referenced by the executing FOCUS application. You don't need the 1st "&STATEL". It can be replaced with a 'hard coded' short name.
This would work as well: FILEDEF DOG DISK &STATEL which would be combined with: ON TABLE SAVE SAVE AS DOG
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
Sorry about the content of my previous post. I used angular brakets (gt,lt characters) in my representation of the syntax, and it got "gobbled up" by html as tags. Here it is again with different brackets: "FILEDEF [internalname] DISK [externalname]".
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
-SET &FILENAME = 'C:\ibi\apps\MwProd\WebReports\Group\26+Reports\Central\StateLaw\a-very-very-very-very-very-very-very-long-folder-name\STATELAW_CENTRAL_ANNV10_GRP123456_08302007.PDF';
FILEDEF MYHOLD DISK &FILENAME
-RUN
TABLE FILE CAR
PRINT CAR BY COUNTRY
ON TABLE HOLD AS MYHOLD FORMAT PDF
END
-RUN