|
Please explain "GenHdgsCSV" - is that part of SQL? Or how to build??
On Tuesday, April 03, 2012 12:03 PM CRPence wrote:
On 03-Apr-2012 08:41 , Stone, Joel wrote:
When building a list of field names, SQL stmts can get lengthy.
The longer each field name, the longer the SQL stmt.
Message . . . . : 11600 - RJSIMAGE/DOCSQL SQLSTM('insert into
qtemp/WORKHEADER values(''"Cust0001-Name","Cust0001-address-line1",
"Cust0001-address-line2","Cust0001-address-line3","CUST0001-CITY",
"...
Yuck. All the more reason to generate them directly from the
catalogs. Encapsulated in a function [as a FETCH cursor instead of
recursive query even], the above request could become [and once
again, eliminating some escaped apostrophes]:
SQLSTM('insert into qtemp/WORKHEADER
values(GenHdgsCSV(FileName,LibName))')
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.