Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Create / Define Virtual table ?????
Go
New
Search
Notify
Tools
Reply
  
Create / Define Virtual table ?????
 Login/Join
 
Gold member
posted
Can I create / define a virtual table and add some records into ?
 
Posts: 55 | Registered: May 15, 2004Reply With QuoteReport This Post
<pranasH>
posted
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
 
Reply With QuoteReport This Post
Master
posted Hide Post
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.
 
Posts: 919 | Registered: March 26, 2003Reply With QuoteReport This Post
Expert
posted Hide Post
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.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Create / Define Virtual table ?????

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.