|
View previous topic :: View next topic
|
| Author |
Message |
ralph_v
New User
Joined: 07 Jul 2005 Posts: 27
|
|
|
|
Hi,
Please let me know what happens if we don't include SQLCA in the Cobol-DB2 program. |
|
| Back to top |
|
 |
ofer71
Global Moderator

Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
The you can't use the variables defined in this area, like SQL-CODE.
O. |
|
| Back to top |
|
 |
ralph_v
New User
Joined: 07 Jul 2005 Posts: 27
|
|
|
|
Thanks O,
Will we get any abends for not including SQLCA |
|
| Back to top |
|
 |
amitava Warnings : 1 Active User

Joined: 30 Oct 2005 Posts: 186 Location: India
|
|
|
|
| If SQLCA is not included then I think u will get an abend due to use of DB2 in ur COBOL pgm without including SQLCA |
|
| Back to top |
|
 |
ofer71
Global Moderator

Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
As far as I know - You'll get errors from the DB2 precompiler, as it is using SQLCA as a parameter to DSNHADDR.
O. |
|
| Back to top |
|
 |
|
|