Das geht mit SQL und zwar mit einer der Funktionen GET_CLOB_FROM_FILE, GET_DBCLOB_FROM_FILE und GET_BLOB_FROM_FILE ... oder falls Du ein XML-Dokument übernehemen wills GET_XML_FILE.
Die Datei muss allerdings mit SQL definiert sein. In DDS-Dateien bekommst Du keine LOB-Spalten.
Beispiel:
BirgittaCode:Declare global temporary table MyXMLTBL (MyXML XML) With Replace; Insert into MyXMLTbl Values(Get_xml_file('/home/Dir1/Dir2/YourXML.xml')); Declare Global Temporary Table TestCLOB (Id Integer Not NULL Default 0, YourCLOB CLOB(65535) Not NULL Default '') With Replace; Insert into testCLOB Values(1, Get_CLOB_From_FILE('/home/Dir1/Dir2/YourTest.txt'));
![[NEWSboard IBMi Forum]](images/duke/nblogo.gif)



Mit Zitat antworten
Bookmarks