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
 
ROWID field for LOBs

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

New User


Joined: 04 Oct 2016
Posts: 2
Location: India

PostPosted: Wed Oct 05, 2016 11:49 am    Post subject: ROWID field for LOBs
Reply with quote

Hi All,

I was reading about LOBs here

In page 42, whey they talk about ROWID, they say
"The generated ROWID is externalized as a 44 byte value (40 bytes of data plus length fields), but stored as VARCHAR (17)"

I dint understand the part where 44byte value is stored in VARCHAR (17). VARCHAR (17) can store a maximum value of 17 bytes?

Please clarify
Back to top
View user's profile Send private message

Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1018
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Oct 05, 2016 1:35 pm    Post subject:
Reply with quote

If you read the page carefully you will see that the first 14 bytes are what's stored. The last 8 bytes are generated at SELECT time. Both of these add to 22 bytes of hexadecimal values which, when externalised as printable, occupy 44 bytes. This accounts for VARCHAR(14)

In the last paragraph at the bottom of the page is stated that 3 bytes are left for future expansion of ROWIDs - this, added to the 14 bytes previously explained, accounts for the VARCHAR(17).

Garry.
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 Replace comp-3 field value to comp-3 ... dharmaraok DFSORT/ICETOOL 5 Fri Sep 14, 2018 3:46 pm
No new posts Extra data in overlay field speermb DFSORT/ICETOOL 2 Thu Sep 13, 2018 6:04 pm
No new posts RPG II Problem with unsigned Packed d... Andi1982 All Other Mainframe Topics 6 Tue Sep 11, 2018 6:11 pm
No new posts Formating of Amount field in CLIST be... Anil Kumar Prajapati CLIST & REXX 9 Fri Aug 03, 2018 6:34 pm
No new posts SMF IFAMGET macro GTPB_RETURNEDLENGT... ironheinrich7 IBM Tools 0 Thu Aug 02, 2018 6:53 pm

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