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: 6970
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: 6970
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 display offset thru cobol prog... tvinodkumar7 CICS 2 Sun Apr 22, 2018 8:42 pm
No new posts How do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts Mantis Program Compiled? luis carlos CICS 2 Sat Apr 07, 2018 8:59 pm
No new posts Undefined Report Program socker_dad COBOL Programming 2 Fri Mar 30, 2018 1:45 am

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