I was trying to connect to DB2 using ODBC.
When i try to compile my program on VSCode, I am getting COBCH0149 No SQL directives have been set.
But before compiling I have set the default directives to include SQL also I have set the value before the identification division.
$SET SQL
I tried to include other directives like below:
$SET SQL(INIT DB=PSDB2CONN PASS=postgres.****)
Error:
COBCH0053 : Directive DB=PSDB2CONN invalid or not allowed here.