[Migrated content. Thread originally posted on 11 January 2007]
First I'd like to wish everyone a Happy New Year.We are converting from ALLBASE to Oracle. Now that we finally have finished developing a process that moves the tables across we have to change much of our embedded sql code to work with sqlplus. We are having a problem with the connection to Oracle via the embedded COBOL code.
This code:
MOVE "CONNECT TO ORACLE" TO DB-COMMAND
EXEC SQL
CONNECT :USR-PWD
END-EXEC
IF SqlCode = OK
MOVE 0 TO DB-COND-WORD
ELSE
PERFORM SQL-ERROR
END-IF.
Executing the program yields this error:
Memory alignment error
I've localized the problem soley to the CONNECT command.
We use this precompiler mode:
procob MODE=ANSI
And these compiler parameters:
ccbl -Zid -Z52 -Ca -Dw64 -Da4 -za -D5 -lfxo
Programs that don't have embeded sql compile and run fine.
Any suggestions?
Thanks in advance,
John C.



