I have been requested to create XML files from AS/400 DB2 files to be used to update data on a client's web server. I have looked at IBM's XML Toolkit for iSeries, but the examples are all about parsing XML input and nothing about creating XML from native AS/400 database files. Is there something in the Toolkit that will do this? Does anyone have any experience with DB2 to XML? Thanks.
Software/Hardware used:
ASKED:
May 10, 2009 3:36 PM
UPDATED:
November 4, 2010 11:38 PM
Is the XML2CLOb from i6.1? I had never heard of this, and tried it on a V5R4 and it doesn’t seem to work
i have the same problme. Token was not valid
XML2CLOB is for DB2 UDB for Linux and Windows. You can’t use it on iSeries since it doesn’t exist on iSeries. You need to use the functions that are listed in the product documentation. You can’t just take a function from one platform and assume it will work on different hardware under a different operating system.
Try the XMLCLOBFromFile() function on iSeries.
Tom
XML2CLOB is also for DB2 for z/OS from Ver 7 or 8. I made a bad assumption that it exists also on other platforms. Sorry.
I wish there was a clear, public reason why function names couldn’t be matched up. Stuff like this feels like an intentional move to make i stuff more confusing. You need to be experienced in both versions in order to think you know which function to use. I do a lot of guessing.
Tom