IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ROWID field for LOBs


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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: 1193
Location: Dublin, Ireland

PostPosted: Wed Oct 05, 2016 1:35 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts S0C7 - Field getting overlayed COBOL Programming 2
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top