Focal Point
[CLOSED] Can't get WebFOCUS to output outside EDASERVER

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5347040786

June 22, 2017, 10:40 AM
rray9895
[CLOSED] Can't get WebFOCUS to output outside EDASERVER
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
June 22, 2017, 11:12 AM
MartinY
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
June 26, 2017, 02:20 PM
FP Mod Chuck
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
June 26, 2017, 03:00 PM
BabakNYC
You may want to look at APP HOLD command.


WebFOCUS 8206, Unix, Windows
June 27, 2017, 07:31 AM
TexasStingray
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