Line command

Object list line commands shows the line commands you can use with each type of object.
Table 1. Object list line commands

This table has nineteen columns, except for the final row which contains notes and which spans all columns.

Command Description Database Table space Table/View Index Column Synonym Plan Package Collection DBRM Schema Distinct Type Function Procedure Trigger Storage Group Sequence
A Alter an object. Y Y Y Y                 Y Y      
ADD Add table check constraint.     Y1                            
ALS Show aliases of an object.     Y                            
AT Show auxiliary tables for LOB columns.     Y   Y                        
B Browse the object.     Y     Y7       Y              
BI Bind the object.             Y Y                  
BT Show base table for auxiliary table.     Y                            
C Copy table.     Y     Y7                      
CBI Copy and bind the object.               Y                  
CDI Show column distribution statistics (as generated by RUNSTATS).     Y                            
CH Show child (dependent) tables.     Y                            
CHR Show child relationships (referential constraints).     Y                            
CK Show information about table check constraints.     Y                            
COL Show the columns for the object.     Y Y Y2                        
COM Comment on an object.     Y   Y             Y Y Y Y    
CR Create an object like this object. Y Y Y Y   Y           Y Y Y Y Y Y
CRA Create an alias for an object.     Y     Y                      
CRS Create a table space in the database. Y                                
CRT Create a table in the table space.   Y                              
CRX Create an index.     Y                            
CS Describe the columns for an object (abbreviation of information provided by COL command).     Y                            
D Show the database for an object. Y2 Y Y Y                       Y  
DEP Show the dependencies on an object.     Y1       Y Y                 Y
DI Display distribution statistics of a column.         Y                        
DR Drop the object/constraint. Y Y Y Y   Y           Y Y Y Y Y Y
DS Display the database structure. Y Y                              
DT Show the source data type (columns) or distinct types (schemas).         Y           Y            
E Edit the object.     Y     Y7                      
EDC Show enabled/disabled connections.             Y Y                  
F Show functions.                     Y            
FC Show the foreign key From Column.     Y3                            
FK Show information about the referential integrity defined for foreign keys.     Y                            
FRE Free the object.             Y Y                  
G Grant privileges for the object. Y Y Y   Y   Y Y Y     Y Y Y   Y Y
GEN Generate SQL for object from Db2® catalog. Y Y Y Y             Y Y Y Y      
H Show the homonyms (like-named objects) for the object.         Y                        
I Show detailed information about the object. Y Y Y Y Y Y Y Y   Y   Y Y Y Y    
ICS Show the status of image copies for the object. Y Y   Y                          
L Show the collection for the object or, for tables, show the rows of this table.                 Y2                
LAB Label the object.     Y   Y                        
LC Show LISTCAT information for the data set. Y6 Y6                              
LPT List the PLAN_TABLE table for the object.             Y Y                  
M Show the DBRMs for the object.             Y                    
O Show related stored procedures.                     Y            
P Display information about the privileges for this object. Y Y Y   Y   Y Y Y   Y Y Y Y   Y  
PA Show parent tables.     Y                            
PAR Show parent relations (referential constraints).     Y                            
PARM Show the routine parameters.                         Y Y      
PC Show the column privileges for this object.     Y2                            
PK Show the primary key for this table.     Y                            
PKG Show the packages for the object.     Y Y     Y Y2 Y       Y Y Y    
PKL Show the package lists for the object.             Y Y Y                
PL Show the plans for the object.     Y Y     Y2 Y Y Y              
PR Print table.     Y     Y7                      
PS Display information about the privileges for the schema for this object.                       Y Y Y Y    
PST Show partition statistics.     Y   Y                        
PT Show the parts of the object.   Y   Y                       Y  
R Revoke the privilege for this object2. Y Y Y       Y Y Y   Y Y Y Y      
RBI Rebind the object.             Y Y                  
RDT Return data type.                         Y        
ROW (or /) Show all the columns in this row of the result table. Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
RT Recover TOCOPY. Y6 Y6                              
S Show the table spaces for the object. Y Y2 Y       Y Y               Y  
SCH Show the schema the object.                     Y2 Y Y Y2 Y    
SEL Build SQL SELECT statement for this object.     Y     Y7                      
SEQ Show identity column information.         Y                        
SQL Show the SQL statements in the object.             Y Y Y Y         Y    
SYN Show the synonyms for the object.     Y       Y Y                  
T Show the tables for the object. Y Y Y5 Y Y Y Y Y       Y     Y    
TC Show the foreign key To Column.     Y3                            
TR Show triggers.     Y               Y            
UTL Run a Db2® utility job against the object.   Y Y Y   Y7                      
V View the object.     Y     Y7                      
VER Show the versions of the object.               Y                  
VOL Show volumes.                             Y Y  
VS Show how the view was created.     Y4                            
VW Show views.     Y     Y                      
X Show the indexes for the object. Y   Y   Y   Y Y               Y  
XC Show the indexes and index columns for the object.     Y                            
XPT Show index parts.                             Y Y  
Notes:
  1. Only available from a list of table constraints.
  2. Only available from a list of object privileges.
  3. Only available from a list of foreign keys.
  4. Only available when the object is a view.
  5. Only available when the object is a view or an alias, or from a list of object privileges.
  6. Only available from a list of image copies.
  7. The synonym name is copied to the function panel if the location is unspecified and the owner is the SQLID; otherwise, the synonym name is resolved and the resolved name is copied.

Related tasks