Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us