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

How to compile PLI sub-program and main-program


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

New User


Joined: 19 Aug 2005
Posts: 51

PostPosted: Wed Aug 18, 2010 9:36 pm
Reply with quote

Hi all,

I want to compile 2 PLI source programs A (main program) and B (sub-program), and A calls B using 'DCL B EXT ENTRY ...'. Firstly, I compiled B successfully, but got this error when compiled A:
IEW2456E 9207 SYMBOL B UNRESOLVED. MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY.

Is there any special compile/link option for compile sub/main program?
How to solve this error?
Thanks.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Aug 18, 2010 10:34 pm
Reply with quote

Your linkage editor SYSLIB needs to point to the load library you compiled B into. You need linkage editor input of INCLUDE SYSLIB(B) (or whatever you called the load module).
Back to top
View user's profile Send private message
autobox

New User


Joined: 19 Aug 2005
Posts: 51

PostPosted: Thu Aug 19, 2010 6:37 am
Reply with quote

Hi Robert,

I tried your suggestion, but I still got error messages as below:
IEW2459W 9206 INCLUDED MEMBER B FAILED TO RESOLVE REFERENCE.
IEW2467E 9224 SYMBOL B REMAINS UNRESOLVED.

I wonder if there's any special compile/link option needed for sub-program or main-program.

Thanks.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Aug 19, 2010 7:15 am
Reply with quote

No, there are no special requirements to compile subprograms and main programs -- people have been doing it for 50 years now. The error message is telling you, quite plainly, that there is no B to be included in your load module. Recompile your subprogram and add to the linkage editor / binder step:

Code:
//SYSIN DD *
  NAME B
/*
since you obviously have not named your subprogram B in the language as your post claims.

If you continue to have problems, please ensure you have MAP as one of the options on your linkage editor / binder step and post the output of your subprogram compilation linkage editor -- using the CODE tag -- to see what the linkage editor / binder thinks your program is named.
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: Thu Aug 19, 2010 8:12 am
Reply with quote

Hello,

Do you know in which load library the load module for B resides (you should if you compiled B)?

Is this library named in the libraries used for the compile/linkedit?
Back to top
View user's profile Send private message
autobox

New User


Joined: 19 Aug 2005
Posts: 51

PostPosted: Wed Aug 25, 2010 2:11 pm
Reply with quote

Hi Robert,

I tried your suggestion with 'NAME B' in SYSIN DD, but the problem stills. And I am sure that all the required libraries concatnated in LKED.SYSLIB.

Can you please advise what's 'CODE tag', and how to use it to check the actual load module entry name?

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

Senior Member


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

PostPosted: Wed Aug 25, 2010 3:19 pm
Reply with quote

Can you post the JCL for your compile/link jobs. The 'code tags' can be found above the window where you key your message. There are 'buttons' for bold, italic, underscore, Quote, Code, List, List=, Img and URL. Pease click on 'Code', paste your JCL and click 'Code' again.

Use the preview at bottom of the window to see what will be seen on the forum.

Garry.
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: Wed Aug 25, 2010 7:35 pm
Reply with quote

Hello,

Quote:
Is this library named in the libraries used for the compile/linkedit?
You didn't answer this. . .

Quote:
I tried your suggestion with 'NAME B' in SYSIN DD, but the problem stills.
If you have the wrong lib definition, the problem will surely persist. . .

As has been mentoned, you need to show your compile/link jcl fr both. . .
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

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts C Compile time time stamps Java & MQSeries 10
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top