Quote:
Originally Posted by thamin
I am running db2 cobol program and it's giving me a sql code of 0927 while executing query
exec sql
set ws-date - current_date
end
|
An SQLCODE -927 indicates that you run your program directly instead of using the DB2 RUN command (actually: DSN subcommand).
Programs containing EXEC SQL should be run under supervision of DB2, not independently.
Have a look at the DB2 Command Reference Guide (SC18-9844) for the syntax of the DSN RUN subcommand. (It's on page 377.)