If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
i allways use C program to access DB2 data, sometimes i need to limit the output length of a CHAR/VARCHAR column from Command line, is there any option for that ?
i tried left (c1, 15) and it does not work
also tried rtrim(c1) didnot work either
any ideas ?
__________________
hany heggy,
IBM certified Professional, AIX system support
www.melodyhits.tv
problem with varchar(col,11); each time it truncates its giving the following message
Recxxxxx F
SQL0445W Value "Recxxxxx FP " has been truncated.
SQLSTATE=01004
No problem with substr(col,1,11) instead of varchar(col,11) where col is your column name