I think it maybe similar to what Birgitta is doing here:
https://github.com/BirgittaHauser/Generate-XML-and-JSON <https://github.com/BirgittaHauser/Generate-XML-and-JSON>


On Dec 4, 2021, at 12:08 PM, Richard Schoen <richard@xxxxxxxxxxxxxxxxx> wrote:

Hey Roger,

Would love to see a sample of what you're describing.

Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx


message: 4
date: Fri, 3 Dec 2021 23:47:45 +0000
from: Roger Harman <roger.harman@xxxxxxxxxxx>
subject: Re: [IBMiOSS] Beginner Python Question about Db2 to Excel

I do this all the time in DB2 SQL but I'm creating CSV's.

I use List_Agg() to get all the data from syscolumns in one CSV row. Our DB is standardized around the TEXT() info not COLHDG() but the concept would be similar.

You'll probably want to be sure to "order by ordinal_position" to get them in the right sequence.

I'll be interested in seeing the Python solution with COLHDG() and formatting them as multi-line headers in Excel.

Roger Harman

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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.