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



Hey Roger,

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

Regards,
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

COMMON Certified Application Developer - ILE RPG on IBM i on Power

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.