SQL

By kimot, 25 December, 2022
ViewDescription
AUTHORIZATIONSorfe authorization ID
CHARACTER_SETSorfe CCSID supported
CHECK_CONSTRAINTSorfe check constraint
COLUMN_PRIVILEGESorfe privilege granted on a column
COLUMNSorfe column
INFORMATION_SCHEMA_CATALOG_NAMEone row for the relational database
PARAMET

Tags

By kimot, 24 December, 2022
Table/ViewDescription
SYSCATALOGSorfe relational database that a user can connect to
SYSCHKCSTorfe check constraint in the SQL schema
SYSCOLAUTHorfe privilege granted on a column
SYSCOLUMNSorfe column of each table and view in the SQL schema
SYSCOLUMNS2orfe column of each table and view in the SQL schema

Tags

By kimot, 24 December, 2022
SELECT A.data_queue_name, 
       A.data_queue_library,  
       A.current_messages, 
       B.current_messages, 
CASE 
    WHEN 
      A.current_messages = B.current_messages 
        THEN ' ' 
        ELSE '**diff**' 
END
FROM swtgemts1 A JOIN swtgemts2 B ON A.data_queue_name = B.data_queue_name;
By kimot, 24 December, 2022
SELECT host_name  
FROM QSYS2.SYSTEM_STATUS_INFO_BASIC;
By kimot, 24 December, 2022
SELECT current_numeric_value  
FROM QSYS2.SYSTEM_VALUE_INFO
WHERE system_value_name = 'QMAXJOB' ;