Hello,
I want to concat 20 colomns in a DB2 SQL request (with || command).
'CDPAAB= '||RIGHT(' '||
RTRIM( REC181_CDPAAB) ,12)||'|'||
'CPCRYP= '||RIGHT('000000000000'||
RTRIM(CHAR(REC181_CPCRYP)),12)||'|'||
'DDCONT= '||RIGHT('000000000000'||
RTRIM(CHAR(REC181_DDCONT)),12)||'|'||
'HECRCO= '||RIGHT('000000000000'||
RTRIM(CHAR(REC181_HECRCO)),12)||'|'||
'DMDCON= '||RIGHT('000000000000'||
RTRIM(CHAR(REC181_DMDCON)),12)||'|'||
'HEMCON= '||RIGHT('000000000000'||
RTRIM(CHAR(REC181_HEMCON)),12)||'|'||
'QTAPMO= '||RIGHT('000000000000'||
RTRIM(CHAR(REC181_QTAPMO)),12)||'|'||
'QTAPM1= '||RIGHT('000000000000'||
RTRIM(CHAR(REC181_QTAPM1)),12)||'|'
but the result is stop at HECRCO... The rest of the command is ignore.
Is there a limit to the DB2 concat command ?
Thanks a lot
Jack