× 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.



Thanks for the reply.

We do not use the XML SQL clauses, as the XML docs we have to mak are more complex, with multiple layers (level of indention/segments).
I have to fill one segment with data from 8 different PFs; very difficult to do with SQL.
At the moment it is a simple program that creates an XML template (stucture stored in a PF) and for each segment calls a subprocedure;each segment has its own SQL statement., that retrieves the required daa values.

That manual is the one I hadn't downloaded and/or searched.


Op 26-8-2020 om 15:16 schreef Justin Barrett:
The first question you mentioned, rather than repeat, I'll indicate that you check out this https://www.rpgpgm.com/2018/05/creating-xml-file.html.

Second, I do not see CCSID being used for SQLTYPE(CLOB_FILE) anywhere in the SQL embedded manual, so I'm not sure what CCSID after SQLTYPE will do, but clearly it isn't what you wanted.  See the link I gave to have a bit more control over the flow of data.

Finally, the SQLTYPE(CLOB_FILE) is talked about in the Embedded SQL Programming manual.  For 7.1 you can find that here. https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_71/rzajp/rzajp.pdf?view=kc

Thank you

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.