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
 

 

Error in linkedit step cobol calling C++ code
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Error in linkedit step cobol calling C++ code
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

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Dec 24, 2010 3:14 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Dec 24, 2010 4:36 pm    Post subject: Reply to: Error in linkedit step cobol calling C++ code
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

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Dec 24, 2010 4:37 pm    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 990
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Dec 24, 2010 4:39 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Dec 24, 2010 4:44 pm    Post subject: Reply to: Error in linkedit step cobol calling C++ code
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    Post subject: Reply to: Error in linkedit step cobol calling C++ code
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: 8593
Location: Back in jolly old England

PostPosted: Mon Dec 27, 2010 7:55 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Dec 27, 2010 7:56 pm    Post subject: Reply to: Error in linkedit step cobol calling C++ code
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    Post subject: Re: Reply to: Error in linkedit step cobol calling C++ code
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: 8593
Location: Back in jolly old England

PostPosted: Mon Dec 27, 2010 8:28 pm    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Dec 27, 2010 8:39 pm    Post subject: Reply to: Error in linkedit step cobol calling C++ code
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Dec 27, 2010 9:01 pm    Post subject: Reply to: Error in linkedit step cobol calling C++ code
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
http://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    Post subject: Re: Reply to: Error in linkedit step cobol calling C++ code
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Dec 27, 2010 9:17 pm    Post subject: Reply to: Error in linkedit step cobol calling C++ code
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    Post subject: Re: Reply to: Error in linkedit step cobol calling C++ code
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Dec 27, 2010 9:57 pm    Post subject: Reply to: Error in linkedit step cobol calling C++ code
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

Site Director


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

PostPosted: Mon Dec 27, 2010 10:41 pm    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm


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