Focal Point
[SOLVED] Insert data into Focus DB

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

January 21, 2010, 09:09 AM
Sim Na
[SOLVED] Insert data into Focus DB
Hi, I created one master file manually following felds like Emp_Name,City,Dept,Emp_Id and i try to insert some data based on this code "SQL
INSERT INTO G_TEST (Emp_Name,City,Dept,Emp_Id) VALUES ('Kumaran','Chennai','IT',1);
END"
but i got thies following errors
(FOC14010) EMP_ID IS NOT A VALID COLUMN NAME
(FOC14010) DEPT IS NOT A VALID COLUMN NAME
(FOC14010) CITY IS NOT A VALID COLUMN NAME
(FOC14010) EMP_NAME IS NOT A VALID COLUMN NAME
. plese suggist me how can i insert data into Focus DB.


Windows Server 2003
WebFOCUS 7.6.9
HTML,PDF,Excel

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


WebFOCUS 7.6.9
Essbase 6.5
Windows Server 2003
HTML,PDF,Excel
January 21, 2010, 09:19 AM
fatboyjim
Hi,

You can do a hold into a focus table (you can also specify the location of the focus table as well).

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
January 21, 2010, 09:43 AM
GinnyJakes
The native language for inserting data into a FOCUS data base is MODIFY. MAINTAIN is another though requires a separate license. You can find documentation on MODIFY in a mainframe FOCUS manual. Or as Jimmy said, you can say ON TABLE HOLD AS holdname FORMAT FOCUS [INDEX fieldname].

You might want to post the master you are trying to load into. If you want the file to hang around after the load, make sure that the master has a DATASET parameter in it or there is an APP HOLD in your program or your file will disappear.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
January 28, 2010, 12:56 AM
Sim Na
Thank you, fatboyjim and GinnyJakes


WebFOCUS 7.6.9
Essbase 6.5
Windows Server 2003
HTML,PDF,Excel