I am using SQL to list all columns in a table.

create table dfreinkel.tbl_fields as (

Select * from qsys2.syscolumns

where 1=1

and substr(table_Schema,1,1) not in ('Q', '#')

and table_schema = 'DPPDATA'

) with data ;

Select Table_Schema

, Table_Name

, Column_Name

, Column_Text

, Ordinal_Position

, Data_Type

, Length

, Numeric_Scale as Decimals

, precision

, Column_heading

from dfreinkel.tbl_fields

order by table_schema, table_Name, ordinal_Position




The CL fails with the above error messages. It also fails when executed
from the command line.

This is a v7.3 system.

Any ideas on the problem and a work around?

TIA, DArryl Freinkel

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.