IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Warning message for DCLGEN in called program.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sm_2009

New User


Joined: 10 May 2009
Posts: 72
Location: bangalore

PostPosted: Tue Jun 02, 2009 2:35 pm
Reply with quote

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
View user's profile Send private message
sm_2009

New User


Joined: 10 May 2009
Posts: 72
Location: bangalore

PostPosted: Tue Jun 02, 2009 2:36 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jun 02, 2009 3:53 pm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Jun 02, 2009 3:54 pm
Reply with quote

Hi !

In Working Storage Section:

--> EXEC SQL INCLUDE SQLCA END-EXEC
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jun 02, 2009 5:06 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top