Dear all,
I would like to know where I can get a list including COLNAME, TYPENAME, LENGHT and SCALE field of all TSM 6.x tables.
There is something strange in TSM 6.1: If I'm doing the following command:
select COLNAME, TYPENAME, LENGTH, SCALE from syscat.columns where tabname = 'SUMMARY'
I'm getting an error, like if the table doesn't exists:
ANR2034E SELECT: No match found using this criteria.
ANS8001I Return code 11.
But this table exists; if I'm doing a SELECT of that table, I'm getting data:
select * from SUMMARY
START_TIME: 2010-09-05 20:37:47.000000
END_TIME: 2010-09-05 20:37:48.000000
ACTIVITY: RECLAMATION
NUMBER: 811
ENTITY: DEDUPE-J1A (/tsm/pool02/postes/J1A_D-P_vol0004)
COMMMETH:
ADDRESS:
SCHEDULE_NAME:
EXAMINED: 0
AFFECTED: 0
FAILED: 0
BYTES: 0
IDLE: 0
MEDIAW: 0
PROCESSES: 1
SUCCESSFUL: NO
VOLUME_NAME:
DRIVE_NAME:
LIBRARY_NAME:
LAST_USE:
COMM_WAIT:
NUM_OFFSITE_VOLS: 0
...
So the question is: Why I cannot get the information on that table when I ask the syscat.columns table? This is not the only table I have problem with, but I don't remember the names.
At the begenning I make this command to get all SQL tables and fields:
select COLNAME, TYPENAME, LENGTH, SCALE from syscat.columns
and I thought I had all of them, but some are missing. So I would like to know if there is a place I can download a list of SQL tables into TSM 6.x in the form of:
select COLNAME, TYPENAME, LENGTH, SCALE from syscat.columns where tabname = 'NODES'
COLNAME TYPENAME LENGTH SCALE
------------------ ------------------ ----------- ------
NODE_NAME VARCHAR 64 0
PLATFORM_NAME VARCHAR 16 0
DOMAIN_NAME VARCHAR 30 0
PWSET_TIME TIMESTAMP 0 0
INVALID_PW_COUNT SMALLINT 0 0
CONTACT VARCHAR 255 0
...
Thank you all for your help.
Regards,
Yanick
I would like to know where I can get a list including COLNAME, TYPENAME, LENGHT and SCALE field of all TSM 6.x tables.
There is something strange in TSM 6.1: If I'm doing the following command:
select COLNAME, TYPENAME, LENGTH, SCALE from syscat.columns where tabname = 'SUMMARY'
I'm getting an error, like if the table doesn't exists:
ANR2034E SELECT: No match found using this criteria.
ANS8001I Return code 11.
But this table exists; if I'm doing a SELECT of that table, I'm getting data:
select * from SUMMARY
START_TIME: 2010-09-05 20:37:47.000000
END_TIME: 2010-09-05 20:37:48.000000
ACTIVITY: RECLAMATION
NUMBER: 811
ENTITY: DEDUPE-J1A (/tsm/pool02/postes/J1A_D-P_vol0004)
COMMMETH:
ADDRESS:
SCHEDULE_NAME:
EXAMINED: 0
AFFECTED: 0
FAILED: 0
BYTES: 0
IDLE: 0
MEDIAW: 0
PROCESSES: 1
SUCCESSFUL: NO
VOLUME_NAME:
DRIVE_NAME:
LIBRARY_NAME:
LAST_USE:
COMM_WAIT:
NUM_OFFSITE_VOLS: 0
...
So the question is: Why I cannot get the information on that table when I ask the syscat.columns table? This is not the only table I have problem with, but I don't remember the names.
At the begenning I make this command to get all SQL tables and fields:
select COLNAME, TYPENAME, LENGTH, SCALE from syscat.columns
and I thought I had all of them, but some are missing. So I would like to know if there is a place I can download a list of SQL tables into TSM 6.x in the form of:
select COLNAME, TYPENAME, LENGTH, SCALE from syscat.columns where tabname = 'NODES'
COLNAME TYPENAME LENGTH SCALE
------------------ ------------------ ----------- ------
NODE_NAME VARCHAR 64 0
PLATFORM_NAME VARCHAR 16 0
DOMAIN_NAME VARCHAR 30 0
PWSET_TIME TIMESTAMP 0 0
INVALID_PW_COUNT SMALLINT 0 0
CONTACT VARCHAR 255 0
...
Thank you all for your help.
Regards,
Yanick