Focal Point
[solved] Save a table at night to be called during the day

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

April 04, 2012, 08:51 AM
Jay Potter
[solved] Save a table at night to be called during the day
I am very new at this. I am trying to save a snapshot od data to a file via a fex, that would run a night. Then during the day the users would call a fex that would pull from that file.

What command should I use to save the file and then what command do I use to call it.

I have tried this command

ON TABLE SAVE FILENAME
'baseapp/invoice_detail_daily_summary_week.ftm'

which does sabe the file but this command does not call it.

TABLE FILE 'baseapp/invoice_detail_daily_summary_week.ftm'

What file type would be best to use.

This message has been edited. Last edited by: Jay Potter,


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
April 04, 2012, 09:04 AM
Doug
Check out "APP ..."




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
April 04, 2012, 05:59 PM
Waz
Are you sure you want to save an FTM file. Do you have a master for it ?

I would suggest a FOCUS file, then you can index appropriate fields for performance reasons.


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!

April 07, 2012, 06:49 AM
Jay Potter
Thanks for the suggestions. I ended up using the following commands within my fex to save my table.

This at the beginging of my report:

APP HOLD BASEAPP

and this inside the report.

ON TABLE HOLD AS &WEEKLY_DETAIL_FILE_NAME_THIS_WEEK FORMAT FOCUS


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster