Focal Point
[SOLVED] create hold file on disk with mfd

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

March 31, 2011, 04:12 PM
Spence
[SOLVED] create hold file on disk with mfd
I need to save the hold to disk and create the mfd
so that the file can be reported against with other
queries. This should be easy but I can't get this to work!!

FILEDEF CarHold DISK E:\APPS\TEMPFILES\CarHold.TXT;
APP HOLD TEMPFILES

TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS CarHold FORMAT ALPHA
END

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


WF 8 version 8.2.04. Windows.
In focus since 1990.
March 31, 2011, 04:27 PM
Waz
When you say you can't get it to work, what doesn't work?

The APP HOLD TEMPFILES should force the master and the hold file to the TEMPFILES directory.


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!

March 31, 2011, 04:29 PM
Spence
the mfd is not being saved to disk.


WF 8 version 8.2.04. Windows.
In focus since 1990.
April 03, 2011, 05:32 PM
Waz
Does E:\APPS\TEMPFILES exist ?

Where is the fex running, is it on your PC or on a server?


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 04, 2011, 04:24 AM
Computix
quote:
Originally posted by Spence:
...
FILEDEF CarHold DISK E:\APPS\TEMPFILES\CarHold.TXT;
APP HOLD TEMPFILES

TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS CarHold FORMAT ALPHA
END


Hi,
just to be sure, do you have -RUN after the FILEDEF and before the TABLE request?

kind regards,
Markus


WF 7.6.6 (MRE,BID, DevStudio, partly RC) on Windows 2003 /Apache/Tomcat
Output: HTML,Excel,PDF,PPT
Adapters: SQL Server, DB2, Oracle
April 04, 2011, 12:18 PM
<JG>
You see the file because of the FILEDEF but not the master because TEMPFILES is not in your APP PATH.

The problem with using APP HOLD is it will also save any other work files to that location, not a good idea.

1. There should not be a ; at the end of the FILEDEF
2. When you do issue an APPHOLD the FILEDEF is not needed
3. For APPHOLD to work TEMPFILES must be part of your application path
(if not issue APP APPENDPATH TEMPFILES - probabley the reason you do not see the master)
4. A better way to do it would be

TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS TEMPFILES/CarHold FORMAT FOCUS
END

Use FORMAT FOCUS and you do not need to issue a FILEDEF to use the file later.
(Assuming TEMPFILES is in your APP PATH
April 06, 2011, 01:07 PM
Spence
tempfiles is in the app path.
i did remove the ; at the end of the filedef.
there is a -RUN after the filedef.
i do need the format as alpha and not a focus db.
the fex is running from a server.
CarHold.ftm is making it to TEMPFILES, not the MFD.
i ended up hardcoding a mfd for the CarHold.ftm - primitive but it's working.

thanks for everyones help.

FILEDEF CarHold DISK E:\Wesco\TEMPFILES\CarHold.ftm
APP HOLD TEMPFILES

-RUN

TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE HOLD AS TEMPFILES FORMAT ALPHA
END


WF 8 version 8.2.04. Windows.
In focus since 1990.
April 11, 2011, 01:37 PM
jimbo
try this instead of app hold
 APP HOLDMETA myappPath 



7.7.04
Win2K3, Unix
Oracle 10G,SQL2K,XFOCUS,ESRI,BID,MRE,SELF-SERVICCE
April 12, 2011, 09:35 AM
Spence
jimbo - still no mfd.


WF 8 version 8.2.04. Windows.
In focus since 1990.
April 12, 2011, 09:46 AM
Francis Mariani
Amazing this post is still active after almost two weeks - it's WebFOCUS 001.

Hard to believe this does not work:

APP HOLDMETA BASEAPP
-*APP HOLDDATA BASEAPP

TABLE FILE CAR
SUM SALES
BY COUNTRY
ON TABLE HOLD AS HCAR01 FORMAT ALPHA
END
(HOLDMETA for metadata, HOLDDATA for data)


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server