Focal Point
[SOLVED] Compound Report save to specific location when scheduled to run

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

November 11, 2009, 06:54 PM
PRonan
[SOLVED] Compound Report save to specific location when scheduled to run
I have a compound report that has 2 tabs that I would like to schedule to run and save out to a specified location. Can someone help with the syntax? Thank you

This message has been edited. Last edited by: Kerry,


WebFocus 7.6.5
Platform: 1 windows reporting server. 1 os400 reporting server, 1
application server (windows), dev studio windows version
Excel, PDF, HTML
November 12, 2009, 08:54 AM
PBrightwell
You should be able to PCHOLD FORMAT EXL2K and use the FTP feature of Report Caster to post it. You may need security access depending on where you are wanting to send it.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
November 12, 2009, 10:42 AM
PRonan
PBrightwell thank you for the suggestion, after checking, we do not have FTP capability, is there a way we can save the hold file out as Excel and then use a winnt copy command? Pat


WebFocus 7.6.5
Platform: 1 windows reporting server. 1 os400 reporting server, 1
application server (windows), dev studio windows version
Excel, PDF, HTML
November 12, 2009, 03:14 PM
linus
I do this exact process with a compound report in excel, but I'm on UNIX. My concern in the windows environment is that after you place it in the directory the first time every time after the copy command would be prompted that the file already exists and if you want to over write it, unless you can somehow name your files different each time with a date/time stamp. Or you could perform the delete file command prior to the copy file command.


WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
November 13, 2009, 01:45 AM
Tony A
Linus,

I have several processes that do precisely that, check whether the file or folder exists and then delete it and/or continue. Even to the point of deleting yesterdays backup file and renaming yesterdays actual file, before storing todays.

There are several command extensions that you can use on such commands as RMDIR, MKDIR ERASE etc. to prevent the prompting behaviour that is normal in interactive situations.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 19, 2009, 03:43 PM
PRonan
Solved

FILEDEF COMPFILE DISK C:\TEMP\COMPFILE.XLS
-RUN
TABLE FILE CAR
HEADING
"ONE"
SUM SALES ACROSS COUNTRY
ON TABLE HOLD AS COMPFILE FORMAT EXL2K OPEN
END
TABLE FILE CAR
HEADING
"TWO"
PRINT MPG BY COUNTRY
ON TABLE HOLD AS COMPFILE FORMAT EXL2K
END
TABLE FILE CAR
HEADING
"FIVE"
PRINT CAR BY COUNTRY
ON TABLE HOLD AS COMPFILE FORMAT EXL2K CLOSE
END


WebFocus 7.6.5
Platform: 1 windows reporting server. 1 os400 reporting server, 1
application server (windows), dev studio windows version
Excel, PDF, HTML