I want to load a hold file data into a database (oracle) table. When I use SQLORA, it’s creating a table. In case if the table already exists, it's giving an error message that, "table already exist".
Is it possible to append the table?
Note: It is possible to append, using normal insert statement. But I want to do it directly from hold file.
Please let me know.
ThanksThis message has been edited. Last edited by: <Antony Gubert>,
May 18, 2006, 12:13 PM
smiths
Antony,
As far as I know, you will need to read (-READ) the data from your hold file into amper variables, then use the amper variables in your SQLORA INSERT statement, as in...
... -RUN -READ HOLDFILE &UID.A12 &PGM.A4
-REMOTE BEGIN SQL SQLORA SET SERVER &SRVID
SQL SQLORA INSERT INTO PGM_TABLE (USERID, PGM_CD) VALUES ('&UID', '&PGM') END
SQL SQLORA COMMIT END
-REMOTE END
HTH, Sean
------------------------------------------------------------------------ PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
May 18, 2006, 12:28 PM
Francis Mariani
You could build your SQL Insert statements in the HOLD file and then execute them.
-*-- Designate location for Master Files created with the HOLD command --- APP HOLDMETA EIDW -*-- Designate location for data files created with the HOLD command --- APP HOLDDATA EIDW -RUN