× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Any help would be greatly appreciated.

I am trying to use SQL, XML, XMLTABLE functionality on IBM i 7.1.

Using the below example from the web which is similar to other examples I am getting the following error.

INSERT INTO erl/address(cid, name, street, city)             
SELECT x.custid, x.custname, x.str, x.place                  
FROM XMLTABLE('$i/customerinfo' PASSING CAST(? AS XML) AS "i"
COLUMNS                                                      
custid INTEGER PATH '@Cid',                                  
custname VARCHAR(30) PATH 'name',                            
str VARCHAR(40) PATH 'addr/street',                          
place VARCHAR(30) PATH 'addr/city' ) AS x ;                  


Use of parameter marker not valid.     SQL0418. This seems to refer to the '?' in the CAST section of the statement.  


 

For more info. I am trying to load a XML file into a Physical file without XML fields/columns defined. So straight XML to PF file field mapping. 

Yours Sincerely,

Mark Golden

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.