On Jun 21, 1:10 pm, Serge Rielau <srie...@ca.ibm.comwrote:
cber...@gmail.com wrote:
Hi all,
I have a strange (at least for me) things happening. I am save the
result of an outer join into a file and I read this file and put these
values into a table.
The first row written contains the code page... how comes did I do
something wrong or is it a normal behavior?
I have no clue what "row contains the codepage" means in this context
Taking a wild guess you may want to consider the modifiers on EXPRT/LOAD
that suppress code-page conversion.
I have to say that I did not manage to insert the value directly from
outer join....... I am not a DB2 Specialist.
INSERT INTO T SELECT * FROM S LEFT OUTER JOIN V WHERE S.C1 = V.C1
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Thanks Serge so let me explain...
I run this sql:
SELECT DISTINCT TSOUNAME, TSOPRGNAME FROM D1.TCEOQRYALLHPUGRP LEFT
OUTER JOIN
D1.TCEODATAUSTSO ON (TSOUNAME = QRYALLGRPHPUUS)
THEY ARE 2336 ROWS IN TCEODATAUSTSO AND 168332 ROWS IN
TCEOQRYALLHPUGRP SO I WANT TO SAVE THE RESULT INTO A NEW TABLE
TCEOHPUU (EXTRACT FROM A REXX) COL1 AND COL2 CONTAINS TSOUNAME
TSOPRGNAME
STATEMENT ="INSERT INTO D1.TCEOHPUU VALUES ('"COL1"','"COL2"')
INTERPRET SQQ "EXECUTE
IMMEDIATE :STATEMENT"
IF (SQLCA.SQLCODE <'0') & (SQLCA.SQLCODE <'-803')
THEN
CALL SQLCA "INPUTMETAHPU: INSERT STEP
FAILED"
INTERPRET FURZ
"COMMIT"
AND THAN I GET THIS RESULT
COL1 COL2
1208 1208 <-------------------- First row (when DB code page
UFT-8)
1252 1252 <-------------------- First row (when DB code
page Latin)
I LITTLE CLEARER NOW... ?
THANKS FOR YOUR HELP