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 ENDThis 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.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
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.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
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.