peledc
asked on
Pre-Compiler: how to execute an "alter session" statement?
Oracle 7.3.3
PreCompiler: Pro Cobol
Does anyone remember how can I run this statement inside the ProCobol:
Alter session set sort_area_size=100000000;
I tried the following:
EXEC-SQL EXECUTE
ALTER SESSION SET SORT_AREA_SIZE=100000000;
END EXEC
Iget the following compilation error:
UNDECLARE SQL IDENTIFIER "ALTER" at line...
Thanks
PreCompiler: Pro Cobol
Does anyone remember how can I run this statement inside the ProCobol:
Alter session set sort_area_size=100000000;
I tried the following:
EXEC-SQL EXECUTE
ALTER SESSION SET SORT_AREA_SIZE=100000000;
END EXEC
Iget the following compilation error:
UNDECLARE SQL IDENTIFIER "ALTER" at line...
Thanks
Try,
EXEC SQL ALTER SESSION SET SORT_AREA_SIZE=100000000;
HTH
Ali
EXEC SQL ALTER SESSION SET SORT_AREA_SIZE=100000000;
HTH
Ali
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
EXEC-SQL EXECUTE IMMEDIATE "ALTER SESSION SET SORT_AREA_SIZE=100000000";
END EXEC
I don't know pro-cobol, but execute immediate usually just passes whatever string you put in quotes straight to the engine.