Focal Point
[CLOSED]sending report output to a folder on the c: drive of my WF server

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

October 25, 2016, 10:01 AM
Leanne Wood
[CLOSED]sending report output to a folder on the c: drive of my WF server
We have just upgraded to WF 8104.

Can someone help me with the coding for sending report output to a folder on my C: drive?

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8.2.02M, App Studio 8.2.02M
Windows 2012 Server, Excel
October 25, 2016, 05:15 PM
Waz
Hi Leanne,

Can you clarify where the report will be run and where the report is to be hold ?

i.e.
Run on remote server held on local c drive (This probably will be impossible)


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

October 25, 2016, 07:40 PM
WFDevConsultant
There are 2 ways you can do this.

1) Using FILEDEF
2) APP HOLD

We burst lot of excel reports through this way.


8.2.06
Windows, All Formats
November 02, 2016, 01:54 PM
Leanne Wood
Thank you both for your response. Here is a little more info:

We have a vendor that needs us to send a file to them daily. Simple, right? Use report caster run the report and sftp the file to their server. Unfortunately, they don't allow sftp, they are requiring us to use Amazon S3. The way S3 works, is it sweeps ALL files in a folder to the destination (the vendor). Okay, so if we can have report caster run the fex, and write the file to a non-used Webfocus folder, perhaps an empty folder on the WF server's desktop named "S3". Then we would install the S3 client and the single file in the S3 folder would be swept and moved to the vendors S3 site.

Simple question, can report caster run a fex and have the output stored in a folder we created "S3" on the WebFocus servers desktop? If so, how???


WebFOCUS 8.2.02M, App Studio 8.2.02M
Windows 2012 Server, Excel
November 02, 2016, 04:01 PM
WFDevConsultant
Yes, the reportcaster can run a fex and have the output stored in a folder.

Example - This is just an idea.

APP MAP TEST YOURFOLDER
FILEDEF YOURFOLDER DISK FILENAME

TABLE FILE CAR
SUM
DCOST
RCOST
BY COUNTRY
ON TABLE HOLD AS FILENAME FORMAT EXL2K
END


8.2.06
Windows, All Formats
November 02, 2016, 04:28 PM
Waz
Just a minor change to WFDevConsultant's code.

APP MAP S3 "PathToYourFolder"
APP HOLD S3

TABLE FILE CAR
SUM
DCOST
RCOST
BY COUNTRY
ON TABLE HOLD AS FILENAME FORMAT EXL2K
END


Check out the APP MAP and APP HOLD commands in the documentaiton.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!