Focal Point
Create / Define Virtual table ?????

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

June 06, 2004, 02:50 PM
Ringo
Create / Define Virtual table ?????
Can I create / define a virtual table and add some records into ?
June 07, 2004, 09:34 AM
<pranasH>
1. Usualy "TABLE FILE ... ON TABLE HOLD AS " is enogth. It creates temproary table.

2. Check "MODIFY" in docs.
It is possible to import e.g. CSV file content ito some writable "virtual table" e.g. FOCUS

Use 1. if possible!

Pranas
June 07, 2004, 07:36 PM
Bob Jude Ferrante
Maintain is the best way to do this... I know that I am biased, but it's Maintain that has the "stack" construct - essentially an array with data types that can vary column - by - column -- that makes this relatively easy.

Maintain has batch copy commands that let you add multiple rows to a virtual dataset. You can use SQL passthrough commands to create a database on any platform and check SQL passthrough error messasges. Pretty slick.

What's more, if you have DevStudio full developer's edition, you can develop the applications without an additional license, and you only have to worry about licensing if you want to deploy the application to a WebFOCUS server.
June 08, 2004, 04:34 PM
susannah
Ringo, here's how i do it.
I join A to B, eg where A has 12 rows and B has 10;
Low and behold the result of the join will have 12 rows and you can define stuff.
TABLE FILE CAR
BY COUNTRY NOPRINT
ON TABLE HOLD AS H1
END
TABLE FILE CAR
SUM SALES BY COUNTRY BY CAR BY MODEL
IF COUNTRY IS 'ENGLAND'
ON TABLE HOLD AS H2
END
JOIN COUNTRY IN H1 TO COUNTRY IN H2
TABLE FILE H1
PRINT *
END
easy.
or
you can glue a table of empty values
to the bottom of a full table
using MORE syntax.