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
 
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: 8166
Location: East Dubuque, Illinois, USA

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: 8166
Location: East Dubuque, Illinois, USA

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: 998
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm

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