19.08.2015 Views

DB2 9 & 10 for z/OS Overview

DB2 9 & 10 for zOS Overview - The Open Systems Group

DB2 9 & 10 for zOS Overview - The Open Systems Group

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Migration Planning WorkshopNative SQL Procedure & UDF Enhancements• XML is now valid as a passed variable• XML can be a data type of a declared variable• With these enhancements parsed XML can be processed withinthe routine without repetitively reparsing the serialized XMLstringThis snippet of code shows an example of aDECLARE statement <strong>for</strong> the XML data type <strong>for</strong> acase when XML is received as a CLOB (<strong>DB2</strong> <strong>10</strong>could pass the document in to the procedure astype XML)The body of the Native SQL Procedure then usesthe XMLPARSE function to store a document inthe variable.Subsequent use of the Parsed_XMLDOC variabledoes not require parsing.63© 2011 IBM Corporation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!