Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

DB2 :: RE: Low values Results from VARCHAR FORMAT

$
0
0
Author: enrico-sorichetti
Subject: Reply to: Low values Results from VARCHAR FORMAT
Posted: Thu Oct 20, 2016 1:32 am (GMT 5.5)

the result posted shows ( repeated twice )

10 bytes for the first date
a varchar representation of the "|" ==> two bytes for the length one byte for the data

Code:

0        1         2 
12345678901234567890123456

FFFF4FF4FF004FFFF6FF6FF004
2016B10B1901F201611011901F
^         ^ ^       
|         | |
|         | |<- one byte of data
|         |<- two bytes for the length 0001 ==> one byte
|<- 10 bytes for the date


_________________
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort icon_cool.gif


Viewing all articles
Browse latest Browse all 9405

Trending Articles