Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Warning message for DCLGEN in called program.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Warning message for DCLGEN in called program.
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Tue Jun 02, 2009 3:53 pm    Post subject:
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: 757
Location: Germany

PostPosted: Tue Jun 02, 2009 3:54 pm    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Tue Jun 02, 2009 5:06 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us