Focal Point
Using workfile to include data

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

July 14, 2005, 09:21 PM
<cwang>
Using workfile to include data
Hi all,
I have a program that screen out some of the data, now I need these data in my program, how can I include them back to workfile(hold file) or create a new work file? I am new to Focus, if any one knows the syntax , please post here, I will be greatly appreciate it.
Thanks.
July 14, 2005, 09:41 PM
Prarie
If you are doing this in the same Fex you just
Table the Hold file:

Table File WhateverHoldfile

and create another report.

If you have Saved it using APP HOLD and you are now in a separate Fex..you will have to put
the location in the APP PATH or Filedef it.

Hope this all makes sense to you.
July 15, 2005, 12:17 AM
susannah
..you might like the cool MORE command, it enables vertical concatenation:
TABLE FILE CAR
PRINT *
IF COUNTRY NE 'ENGLAND'
ON TABLE HOLD AS EUROPE
END
TABLE FILE CAR
PRINT *
IF COUNTRY EQ 'ENGLAND'
ON TABLE HOLD AS BRITAIN
END
...
TABLE FILE EUROPE
PRINT *
.. any if statements you might want
ON TABLE HOLD AS UNITED
MORE
FILE BRITAIN
.. any if statements you might want
END
..now the file EUROPE has included records
..the file BRITAIN has excluded records
..and the file UNITED has both bits back together.
..get the idea? any help?
July 15, 2005, 01:42 PM
<cwang>
Thanks guys, your posting are very helpful.