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.
What I'm trying to accomplish is super basic. I want WebFOCUS to create an excel file on my computer. I can use the FILEDEF command to write a file to the reporting server, but I'm unable to get it to generate something on my C Drive.
Here is my code:
APP PATH IBISAMP
FILEDEF SAVEOUT DISK C:\Users\rray\WebFOCUSTest\TEST1.XLSX
TABLE FILE CAR PRINT COUNTRY CAR WHERE RECORDLIMIT EQ 1 ON TABLE SAVE AS SAVEOUT FORMAT XLSX END
Here is my error: 0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1 0 ERROR AT OR NEAR LINE 11 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC350) ERROR WRITING OUTPUT FILE: SAVEOUT
What am I missing here?
For the record, I have looked in the Help file, and read through "Allocating WebFOCUS Files" in the Developing Reporting Applications and I'm following the syntax for "Appending a Report Extract to Other Content" to the letter.
I also spent time searching the forums for other people who have my problem:
Looking through those hasn't helped me figure it out. I tried the "-SET &USERID=GETUSER('A8'); -TYPE THE USERID FROM GETUSER IS &USERID" code and found out that my userid is "webfocus", but outside of that I am still clueless about what my issue is.
Does anyone have any suggestions?This message has been edited. Last edited by: FP Mod Chuck,
Your code is working perfectly while you are saving to the proper folder and that exist.
quote:
found out that my userid is "webfocus"
This is the execution id, so it should be :
FILEDEF SAVEOUT DISK C:\Users\webfocus\WebFOCUSTest\TEST1.XLSX
Then the file will be saved properly.
If you would like to save to your uid (rray), you could have to change IB configuration since it seems that a generic user is used for execution or you are connected with a generic user, so use yours instead. Does
<set> IBIMR_user (pass)
is in the Client Customs Settings ? And you can then use &IBIMR_userThis message has been edited. Last edited by: MartinY,
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
the location of where the file is to be save must be available directly to the reporting server like a shared network drive or a shared drive on your machine. another option would be to have an ftp server and ftp it out.