Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Can't get WebFOCUS to output outside EDASERVER
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Can't get WebFOCUS to output outside EDASERVER
 Login/Join
 
Silver Member
posted
Hello all,

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:

how to save an output file to output drive outside the EDASERVER

What's causing a ERROR WRITING OUTPUT FILE?

Hold Table and FILEDEF issues

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,


WebFOCUS 8.105M, Windows 10, App Studio
 
Posts: 47 | Registered: October 22, 2014Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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_user

This 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: 2328 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Hi Rray9895

I think you are over complicating this. Just use ON TABLE PCHOLD FORMAT XLSX and when the report output comes back you can save it to your computer.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 1872 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
You may want to look at APP HOLD command.


WebFOCUS 8206, Unix, Windows
 
Posts: 1843 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Master
posted Hide Post
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.




Scott

 
Posts: 865 | Registered: May 24, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Can't get WebFOCUS to output outside EDASERVER

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.