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
 

 

How to compile PLI sub-program and main-program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Wed Aug 18, 2010 9:36 pm    Post subject: How to compile PLI sub-program and main-program
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: 7931
Location: Bellevue, IA

PostPosted: Wed Aug 18, 2010 10:34 pm    Post subject:
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: 48

PostPosted: Thu Aug 19, 2010 6:37 am    Post subject: Reply to: How to compile PLI sub-program and main-program
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: 7931
Location: Bellevue, IA

PostPosted: Thu Aug 19, 2010 7:15 am    Post subject:
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

Site Director


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

PostPosted: Thu Aug 19, 2010 8:12 am    Post subject:
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: 48

PostPosted: Wed Aug 25, 2010 2:11 pm    Post subject:
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

Active Member


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

PostPosted: Wed Aug 25, 2010 3:19 pm    Post subject:
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

Site Director


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

PostPosted: Wed Aug 25, 2010 7:35 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler 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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 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 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