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: 6966
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: 743
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: 6966
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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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