You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed when tables are being generated for a project, the LABEL ON TABLE statement does not appear to be executing in all instances. I can take the same code and run it directly in the "Run SQL Scripts" utility with the expected results. However, not all code run into this issue. Below are two examples:
This first one runs just fine in Bob:
CREATE OR REPLACE TABLE system_tokens FOR SYSTEM NAME systken (
system_token FOR COLUMN token CHAR(32) NOT NULL DEFAULT '',
expiration_timestamp FOR COLUMN expires TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY ( system_token )
)
RCDFMT systkenr ;
LABEL ON TABLE system_tokens
IS 'System Token File' ;
LABEL ON COLUMN system_tokens (
system_token IS 'System Token',
expiration_timestamp IS 'Expiration Timestamp'
) ;
LABEL ON COLUMN system_tokens (
system_token TEXT IS 'System Token',
expiration_timestamp TEXT IS 'Expiration Timestamp'
) ;
However, this next one does not appear to recognize the LABEL ON TABLE. No errors were generated in the log (see further below)
CREATE OR REPLACE TABLE mea_session_tokens FOR SYSTEM NAME meaptken (
agent_number FOR COLUMN TKENAGT# NUMERIC(6, 0) NOT NULL DEFAULT 0 ,
session_token FOR COLUMN TKENTKEN CHAR(32) NOT NULL DEFAULT '' ,
expiration_timestamp FOR COLUMN TKENEXP TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
-- Constraints
PRIMARY KEY( agent_number )
)
RCDFMT meapwtkenr ;
-- Add Text to the Table
LABEL ON TABLE mea_session_tokens
IS 'MEA Session Token File' ;
LABEL ON COLUMN mea_session_tokens (
agent_number IS 'Agent Number' ,
session_token IS 'Session Token' ,
expiration_timestamp IS 'Expiration Timestamp'
) ;
LABEL ON COLUMN mea_session_tokens (
agent_number TEXT IS 'Agent Number' ,
session_token TEXT IS 'Session Token' ,
expiration_timestamp TEXT IS 'Expiration Timestamp'
) ;
Hello all,
I've noticed when tables are being generated for a project, the LABEL ON TABLE statement does not appear to be executing in all instances. I can take the same code and run it directly in the "Run SQL Scripts" utility with the expected results. However, not all code run into this issue. Below are two examples:
However, this next one does not appear to recognize the LABEL ON TABLE. No errors were generated in the log (see further below)
ibmi_output_log.txt
The text was updated successfully, but these errors were encountered: