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



On 11/30/2015 5:56 PM, Rob wrote:
Via System i Navigator...

I run [ select * from sysibm.sqlcolumns ]. I can see the column_text
field. There is text in this field.

"comment on" and "label on" do not touch it...

[ select table_schem, table_name, remarks, table_text from
sysibm.sqltables ]

sysibm.sqltables has remarks and table_text.
[ COMMENT ON TABLE schema.table IS "Table Comment" ] changes REMARKS and
[ LABEL ON TABLE schema.table IS "Table Label" ] changes TABLE_TEXT.

[ COMMENT ON COLUMN schema.table.column IS "Field Comment" ] Runs in
System i Navigator without an error. [ LABEL ON COLUMN
schema.table.column IS "Field Label" ] also Runs in System i Navigator
without an error.

But neither change COLUMN_TEXT.

System i Navigaotr also shows a Heading1 column... which is the same as
column_text. But it does not show up in a select *.

I want to give my admins the ability to update the Remarks and Texts to
better describe the tables and fields.

So thus far I can display and change a Tables Remarks and Table_Text
fields.

But I can only display a Fields Column_Text. I can not update it. And I
have no idea what Comment ON and Label ON have done to the table and
column I tried to update, even though the executed SQL was reported to
have ran successfully.

I need one of you genius detectives on this case to solve the mystery.

SQLCOLUMNS does not appear to understand 'Column Heading'.
Look at SQLCOLUMNS instead to see the results of LABEL ON.

Looking at the ODBC catalogue page
http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/db2/rbafzcatsqlcolumns.htm
I see that REMARKS is intended to be set via COMMENT, but COLUMN_HEADING
makes no mention of how that is supposed to be set.

Looking at the DB2 for i catalogue page
http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/db2/rbafzcatsyscol.htm
I see that LONG_COMMENT is intended to be set via COMMENT and
COLUMN_HEADING is intended to be set via LABEL.

For completeness, the ISO catalogue
http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/db2/rbafzcatcolumns.htm
does not appear to have either of those columns.

I am at 7.2.


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.