View previous topic :: View next topic
|
Author |
Message |
sm_2009
New User
Joined: 10 May 2009 Posts: 72 Location: bangalore
|
|
|
|
hi
i am getting a warning msg as -
"SQLCA" or one of its subordinates was referenced, but"SQLCA" was a "LINKAGE SECTION" item that did not haveaddressability. This reference will not be resolvedsuccessfully at execution.
i have put DCLGENS in linkage section as
EXEC SQL INCLUDE SQLCA END-EXEC.
Code: |
how to resolve this, and wht is the reason behind this message?
please suggest.
Thanks |
|
|
Back to top |
|
|
sm_2009
New User
Joined: 10 May 2009 Posts: 72 Location: bangalore
|
|
|
|
Code: |
EXEC SQL INCLUDE SQLCA END-EXEC. |
how to resolve this and what is the reason behind this message.
pls suggest
thanks |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
sm,
you need to understand the concepts of the LINKAGE DIVISION and the DATA DIVISION.
in short, move your INCLUDE SQLCA into the DATA DIVISION of your COBOL Program. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
In Working Storage Section:
--> EXEC SQL INCLUDE SQLCA END-EXEC |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
dbzTHEdinosauer wrote: |
sm,
you need to understand the concepts of the LINKAGE DIVISION and the DATA DIVISION.
in short, move your INCLUDE SQLCA into the DATA DIVISION of your COBOL Program. |
Well since it is LINKAGE SECTION and not DIVISION,
my answer did not make much sense.
UmeySan provided the appropriate answer. |
|
Back to top |
|
|
|