Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to find row length from a catlog table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Nov 15, 2006 11:55 am    Post subject: How to find row length from a catlog table
Reply with quote

Hi,

I have a table with 221 columns.

I would like to know how to find the row length of a table from catlog tables. i.e sysibm. <>

Can any one tell me in which catlog table i can find this information.


Thanks In Advance

Regards,
Jai
Back to top
View user's profile Send private message

rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Nov 15, 2006 12:12 pm    Post subject:
Reply with quote

Hi,

I have worked out myself

Please find the query

select max( reclength)
from sysibm. systables
where dbname= '?????'
and tsname= '???????'
and creator = '???'

Regards,
jai
Back to top
View user's profile Send private message
Karthik Chandrasekaran

New User


Joined: 21 Aug 2006
Posts: 8

PostPosted: Wed Nov 15, 2006 1:30 pm    Post subject: do these 2 queries get the same output ?
Reply with quote

query 1: select sum(length) from sysibm.syscolumns where tbname=x and tbcreator = y

query 2: select max(reclength) from sysibm.systables where name=x and creator=y
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts RACF- How to find the Last access of ... rahul shanmuganatan All Other Mainframe Topics 6 Thu Jun 21, 2018 3:19 pm
No new posts SYSIBM Catlog tables to see DDL chang... rakesh17684 DB2 0 Fri Jun 08, 2018 3:43 am
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts Extracting DDL for all list of intere... Ashishpanpaliya DB2 5 Mon May 21, 2018 4:08 pm
No new posts Limit in Length for a CICS START seahawk789 CICS 6 Mon Apr 02, 2018 8:34 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us