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

Error in linkedit step cobol calling C++ code


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manojsharma1122

New User


Joined: 24 Jul 2007
Posts: 12
Location: india

PostPosted: Fri Dec 24, 2010 2:57 pm
Reply with quote

Hi everyone,

I am getting a MAXCC 12 in linkedit step while compiling a cobol code which is calling a C++ program.

the error description is :

IEW2456E 9207 SYMBOL POLICY UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY

POLICY is my C++ code being called in cobol code.
I have included the objectlib in my compile jcl or may be I am missing any compiler option.

Will appreciate your help on this.

Regards,
Manoj
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Dec 24, 2010 3:14 pm
Reply with quote

You need to show your compile/link JCL. Where in the JCL did you include your objectlib? In the compile? In the linkedit?

Garry.
Back to top
View user's profile Send private message
manojsharma1122

New User


Joined: 24 Jul 2007
Posts: 12
Location: india

PostPosted: Fri Dec 24, 2010 4:25 pm
Reply with quote

Garry Carroll wrote:
You need to show your compile/link JCL. Where in the JCL did you include your objectlib? In the compile? In the linkedit?

Garry.


Garry,

I included the objlib in linkedit.

//LKED EXEC PGM=HEWL,REGION=1024K,PARM='MAP'
//SYSLIB DD DSN=SYS1.SCEELKED,DISP=SHR
//SYSLIN DD DSN=RF00.RGYXLST.OBJLIB,DISP=SHR
//SYSLMOD DD DSN=RF00.RGYXLST.NAV.LOADLIB(RV10SMQS),DISP=SHR
//SYSUT1 DD UNIT=VIO,SPACE=(32000,(30,30))
//SYSPRINT DD SYSOUT=*
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Dec 24, 2010 4:36 pm
Reply with quote

the info posted is not enough, but since today is PSYCHIC day

rule...
the SYSLIN contains the linkage editor control statements + obect decks from a compilation...

in Your snippet
//SYSLIN DD DSN=RF00.RGYXLST.OBJLIB
seems to contain the COBOL object

//SYSLIB DD DSN=SYS1.SCEELKED,DISP=SHR
contains the LE and friends stuff

You do not show any library containing the c++ function/subroutine
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Dec 24, 2010 4:37 pm
Reply with quote

RF00.RGYXLST.OBJLIB would/should be the object code from your compile. This would not include the code for the external C++ program you are calling. The library containing the C++ needs to be included in this step's //SYSLIB DD concatenation. If the C++ module is also in RF00.RGYXLST.OBJLIB, then include that library there, too.

Hope this helps,
Happy Christmas,
Garry.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Dec 24, 2010 4:39 pm
Reply with quote

Quote:
the info posted is not enough, but since today is PSYCHIC day


... and TWO psychics on-line! Must be that star in the East ?!

G.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Dec 24, 2010 4:44 pm
Reply with quote

the G stand for Gaspar, I suppose!
Back to top
View user's profile Send private message
manojsharma1122

New User


Joined: 24 Jul 2007
Posts: 12
Location: india

PostPosted: Mon Dec 27, 2010 7:36 pm
Reply with quote

Hi Everyone,

Somehow my linkedit step started running giving the below error.

IEW2456E 9207 SYMBOL CBCSG003 UNRESOLVED

IEW2456E 9207 SYMBOL setConnectionReference__6ImqObjFP6ImqMgr UNRESOLVED

Will appreciate any help.

Regards,
Manoj
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Dec 27, 2010 7:55 pm
Reply with quote

The best people to talk to regarding these errors is your own peers, and/or site support people.

They, and only they, will know the correct concatenations and library names in force at your site.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 27, 2010 7:56 pm
Reply with quote

what did You do to start helping Yourself?
what does the manual tell about the message?
how does this new issue relate to the one in the starting post
why did you not care to acknowledge/reply the suggestions/hints already given ?

anyway the issue is the same, to be solved along the same lines!
solve one and all of them will disappear!
Back to top
View user's profile Send private message
manojsharma1122

New User


Joined: 24 Jul 2007
Posts: 12
Location: india

PostPosted: Mon Dec 27, 2010 8:13 pm
Reply with quote

enrico-sorichetti wrote:
what did You do to start helping Yourself?
what does the manual tell about the message?
how does this new issue relate to the one in the starting post
why did you not care to acknowledge/reply the suggestions/hints already given ?

anyway the issue is the same, to be solved along the same lines!
solve one and all of them will disappear!



Enrico,

Sorry for not acknowleding the replies. I thanks all for the suggestions provided and going as per the sugestions only I started encountering the above error. May be I am missing exact libraries to be used.

Regards,
Manoj
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Dec 27, 2010 8:28 pm
Reply with quote

expat wrote:
The best people to talk to regarding these errors is your own peers, and/or site support people.

They, and only they, will know the correct concatenations and library names in force at your site.
Back to top
View user's profile Send private message
manojsharma1122

New User


Joined: 24 Jul 2007
Posts: 12
Location: india

PostPosted: Mon Dec 27, 2010 8:34 pm
Reply with quote

expat wrote:
expat wrote:
The best people to talk to regarding these errors is your own peers, and/or site support people.

They, and only they, will know the correct concatenations and library names in force at your site.


Thanks icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 27, 2010 8:39 pm
Reply with quote

if You have read access to the zOS libraries You will find lots of samples on interlanguage communication!

procedures to be used for compile prelink link and friends!
the best thing anyhow would be to work with Your support,
You might be able to find Yourself the libraries needed,
but your support will need to provide company wide standards on the issue!

post the FULL jcl used
( also the procedure expansion if not the standard one provided by IBM )
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 27, 2010 9:01 pm
Reply with quote

the knowledge depends on too many factors!
is this the first attempt to interlanguage communication ( COBOL C++ )?
NO... then the TS should have been already given directions on how to proceed
YES... ( depends on the task assigned to and the role of the TS )
if pure clueless end user see case NO
otherwise the TS might have to carry on the research and setup by himself
and after that give feedback to the support for company wide implementation
of the whole shebang

i strongly dislike C++, but I got curious...
a google search with CBCSG003 IEW2456E gave an indirect hint
www-01.ibm.com/support/docview.wss?uid=swg1PK60366

Quote:
****************************************************************
* IEW2456E 9207 SYMBOL CBCSG003 *
* UNRESOLVED. MEMBER COULD *
* NOT BE INCLUDED FROM THE *
* DESIGNATED CALL LIBRARY. *
****************************************************************

The SYSLIB DD concatenation in the JCLIN step that link edits
DSNADMCU contains the SCLBCPP library instead of SCEECPP.


the IBM name for the library is usually CEE.SCEECPP
but as usually it depends!
Back to top
View user's profile Send private message
manojsharma1122

New User


Joined: 24 Jul 2007
Posts: 12
Location: india

PostPosted: Mon Dec 27, 2010 9:06 pm
Reply with quote

enrico-sorichetti wrote:
if You have read access to the zOS libraries You will find lots of samples on interlanguage communication!

procedures to be used for compile prelink link and friends!
the best thing anyhow would be to work with Your support,
You might be able to find Yourself the libraries needed,
but your support will need to provide company wide standards on the issue!

post the FULL jcl used
( also the procedure expansion if not the standard one provided by IBM )


Here is the expanded jcl from the spool.


//LKED EXEC PGM=IEWBLINK,PARM='MAP,XREF'
//SYSLIB DD DSN=RF00.RGYXLST.OBJLIB, <<<<< this contains the object code from the C++ source
// DISP=SHR
// DD DSN=SYS1.SCSFMOD0,
// DISP=SHR
// DD DSN=SYS1.SCEELKED,
// DISP=SHR
// DD DSN=SYS1.SCSQPLIC,
// DISP=SHR
// DD DSN=SYS1.SCSQLOAD,
// DISP=SHR
// DD DSN=SYS1.SCSQAUTH,
// DISP=SHR
// DD DSN=SYS1.SCSQCPPS,
// DISP=SHR
// DD DSN=SYS1.SCSQHPPS,DISP=SHR
//SYSLIN DD DSN=&&LOADSET,DISP=(OLD,DELETE)
DISP=SHR
//SYSLMOD DD DSN=RF00.RGYXLST.NAV.LOADLIB(RV10SMQS)<< this is the main cobol program which is calling C++ code
DISP=SHR
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 27, 2010 9:17 pm
Reply with quote

see my last post !

bear in mind please that asking for help does not mean to ...
having somebody do for free what somebody inside You organization earns a salary for!

that includes You !

the info I gave You is accessible to anybody with an average skill and willingness to learn!
Back to top
View user's profile Send private message
manojsharma1122

New User


Joined: 24 Jul 2007
Posts: 12
Location: india

PostPosted: Mon Dec 27, 2010 9:33 pm
Reply with quote

enrico-sorichetti wrote:
see my last post !

bear in mind please that asking for help does not mean to ...
having somebody do for free what somebody inside You organization earns a salary for!

that includes You !

the info I gave You is accessible to anybody with an average skill and willingness to learn!


Enrico,

I know what I am being payed for and I am not ordering you to do this am just requesting you to help me. Being a moderator doesn't mean you can write anything what you want.
Anyways you helped a lot and I also tried the way you suggested but its not working for me

Regards,
Manoj
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 27, 2010 9:57 pm
Reply with quote

Quote:
I am not ordering you to do this am just requesting you to help me.
You should know that in the scale of word strength "to request" is much closer to "to order" than to "to ask"
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Dec 27, 2010 10:41 pm
Reply with quote

Hello,

Once again the use of English has caused misunderstanding. . . icon_sad.gif

Manoj,

Did this ever work or has this problem occurred every time this jcl was used? What is the difference between this jcl and the "standard" compile/link jcl?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 27, 2010 10:54 pm
Reply with quote

Quote:
Once again the use of English has caused misunderstanding. . .
I made the remark as a memento(remember) for future better wording
all languages have their own quirks and, depending on personal habits, peeves

for a lighter examples i see quite often the statement
Quote:
have a great(*) weekend
for my personal way of seeing things the statement is logically wrong
You can tell that something is great after not before the event
have a nice/good weekend and on monday you can tell if it was great or not icon_biggrin.gif
(*) same comment applies to wonderful

that' s what I was trying to understand when I said ...
Quote:
is this the first attempt to interlanguage communication ( COBOL C++ )?
NO... then the TS should have been already given directions on how to proceed
YES... ( depends on the task assigned to and the role of the TS )
if pure clueless end user see case NO
otherwise the TS might have to carry on the research and setup by himself
and after that give feedback to the support for company wide implementation
Back to top
View user's profile Send private message
manojsharma1122

New User


Joined: 24 Jul 2007
Posts: 12
Location: india

PostPosted: Tue Dec 28, 2010 3:36 pm
Reply with quote

dick scherrer wrote:
Hello,

Once again the use of English has caused misunderstanding. . . icon_sad.gif

Manoj,

Did this ever work or has this problem occurred every time this jcl was used? What is the difference between this jcl and the "standard" compile/link jcl?


Hello Dick,

Thanks for looking into the matter. Now answering to your question, my linkedit step did not worked ever. I tried it the way Enrico suggested but it is still failing.

with the standard jcl which i have i am getting the error:

IEW2456E 9207 SYMBOL POLICY UNRESOLVED

POLICY is my C++ code

Then I tried the way Enrico suggested and got the following error:

IEW2456E 9207 SYMBOL CBCSG003 UNRESOLVED
IEW2456E 9207 SYMBOL __as__6ImqStrFRC6ImqStr UNRESOLVED

and when I tried to find some info on google
www-304.ibm.com/support/docview.wss?uid=swg1PK84945
what I found that the compiler option EXTRN(SHORT) should be used and again the sad part was that this option was not supported by the compiler.

Will appreciate your views on this.

Regards,
Manoj
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 28, 2010 4:08 pm
Reply with quote

It still fails because You did not care to read my other post with the pointer to CEE.SCEECPP
Back to top
View user's profile Send private message
manojsharma1122

New User


Joined: 24 Jul 2007
Posts: 12
Location: india

PostPosted: Tue Dec 28, 2010 5:26 pm
Reply with quote

enrico-sorichetti wrote:
It still fails because You did not care to read my other post with the pointer to CEE.SCEECPP


Hello Enrico,

Yes you are correct I missed that post and did not included this library. When I ran my jcl with the changes it gave me following error. May be I am querring too much and sorry for that. Can you suggest me something more. And thanks for your patience and help.

IEW2456E 9207 SYMBOL __as__6ImqStrFRC6ImqStr UNRESOLVED. MEMBE
IEW2456E 9207 SYMBOL __ct__6ImqStrFPCc UNRESOLVED. MEMBER COUL
IEW2456E 9207 SYMBOL __dt__6ImqStrFv UNRESOLVED. MEMBER COULD
IEW2456E 9207 SYMBOL __dt__6ImqMgrFv UNRESOLVED. MEMBER COULD
IEW2456E 9207 SYMBOL __dt__6ImqQueFv UNRESOLVED. MEMBER COULD
IEW2456E 9207 SYMBOL __dt__6ImqMsgFv UNRESOLVED. MEMBER COULD
IEW2456E 9207 SYMBOL __dt__6ImqIihFv UNRESOLVED. MEMBER COULD
IEW2456E 9207 SYMBOL put__6ImqQueFR6ImqMsg UNRESOLVED. MEMBER

attachment deleted, does not convey any additional info
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 28, 2010 6:01 pm
Reply with quote

manojsharma1122, have you studied -- intensely -- the IBM manual in the Language Environment bookshelf entitled Language Environment: Writing Interlanguage Communication Applications? And, specifically, have you studied chapter 5 on C++ and COBOL interactions? From this manual:
Quote:
5.1.5 Building a Reentrant C++ to COBOL Application

By default, the XL C++ compiler generates object modules with constructed reentrancy. Therefore, linking a C++ to COBOL application is a two-step process:

1. Prelink all C++ and COBOL text decks together using the prelinker.

2. Link the text deck generated by the prelinker to create your module.
I don't see anywhere that you are using a two-step link -- you have only posted one step of linkage editor / binder JCL.
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 -> PL/I & Assembler Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Error when install DB2 DB2 2
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top