Loading XML data natively
To load XML data natively
- Create your load job, as usual, adjusting it if necessary based on the information described in Considerations-for-loading-XML-data-natively.
- Use one of the following options for your field specification:
- If your input file contains the XML data, either do not include a field specification for this job or specify the XML data type in your field specification for the XML column.
- If your input file references a BLOB or CLOB file that contains your XML data, specify the BLOBF or CLOBF subtype, respectively, on the appropriate CHAR or VARCHAR data type. Specify any applicable subtype options.
- If you are loading from an input data set that is in the spanned-record format:
- Ensure that the XML (and any LOB) fields follow all other fields in your field specification.
- Specify FORMAT SPANNED YES.For more information about this option, including restrictions, see SPANNED
- If you specify COPY YES, ensure that dynamic allocation is enabled for your XML copy data sets.
- (optional) Adjust the value for the XMLAVGSIZE option on your LOAD command or the AVGSIZE option on your field specification.For more information about these options, see XMLAVGSIZE or AVGSIZE.
- Ensure that the SMF MEMLIMIT parameter meets the minimum requirements for loading your XML data.For more information, see Overriding-the-MEMLIMIT-system-parameter.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*