Can anyone help me with a problem coding SQL in a COBOL program to handle nulls? I have coded SELECT COALESCE(MGRNO, 'NONE ') [INTO WS_MGRNO] FROM DEPT This works in SPUFI but gives a -206 SQLCODE in the bind when embedded in a COBOL program. I cannot see what is wrong! The INTO is only coded in the program not in SPUFI - Thanks
DB2 COBOL problem
Collapse
X
Comment