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

Problem while calling ASM from PL/I


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

Active User


Joined: 10 Aug 2009
Posts: 184
Location: India

PostPosted: Fri Mar 26, 2010 8:30 pm
Reply with quote

Hi All,

I am trying to compile a PL/I program, which is calling ASM program, in SCLM. My PL/I componet is UNSUCCESSFUL and I am getting following message:

Code:
z/OS V1 R10 BINDER     09:43:45 FRIDAY MARCH 26, 2010
BATCH EMULATOR  JOB(ABCDERF8) STEP(PLIEX01 ) PGM= IEWBLINK  PROCEDURE(BUILD0  )
IEW2278I B352 INVOCATION PARAMETERS - XREF,LIST,RENT,LET,RMODE=ANY,AMODE=31,COMPAT=LKED

IEW2322I 1220  1    INCLUDE SLM75EKQ(PLIEX01)
IEW2456E 9207 SYMBOL ASMPGM UNRESOLVED.  MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY.


Could anyone please let me know why this is happening?

Thanks in advance.
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: Fri Mar 26, 2010 8:34 pm
Reply with quote

Because you don't have an
Code:
INCLUDE SYSLIB(ASMPGM)
statement? Or at least some binder INCLUDE statement for the assembler module?
Back to top
View user's profile Send private message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 184
Location: India

PostPosted: Fri Mar 26, 2010 8:38 pm
Reply with quote

Hi Robert,

Thank you very much for you quick reply.

Could you please let me know where I need to code below code.

Code:
INCLUDE SYSLIB(ASMPGM)



Thanks you,
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 Mar 26, 2010 8:42 pm
Reply with quote

Or maybe all you need is to have the library with the ASMPGM module in the linkedit //SYSLIB concatenation.

Garry.
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: Fri Mar 26, 2010 8:43 pm
Reply with quote

In your linkage editor (binder) step, you will need a DD statement
Code:
//SYSLIB DD DISP=SHR,DSN=????
which points to the load library containing your assembler program. The INCLUDE statement will go in the linkage editor (binder) input stream, either before or after your other INCLUDE statement.
Back to top
View user's profile Send private message
satish.ms10

Active User


Joined: 10 Aug 2009
Posts: 184
Location: India

PostPosted: Fri Mar 26, 2010 8:48 pm
Reply with quote

Hi All,

I don't have any control to modify the compile jcl because I am compiling from SCLM and I check in JESJCL but I don't see any SYSLIB there.


Please advice.

Thanks,
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: Fri Mar 26, 2010 8:50 pm
Reply with quote

In that case, contact your site support group, explain what you are doing, and ask them for assistance in linking the assembler program into your PL/I load module.
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 Mar 26, 2010 8:51 pm
Reply with quote

Quote:
I don't have any control to modify the compile jcl because I am compiling from SCLM and I check in JESJCL but I don't see any SYSLIB there.

Then you need help from whoever has access to change the JCL in SCLM.
Back to top
View user's profile Send private message
Ranjithkumar

New User


Joined: 10 Sep 2008
Posts: 93
Location: India

PostPosted: Mon Mar 29, 2010 3:07 pm
Reply with quote

@Robert Sample

If the assembler program is called dynamically, do we need to code INCLUDE SYSLIB(ASMPGM) ? Just asking out of curiosity.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


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

PostPosted: Mon Mar 29, 2010 3:12 pm
Reply with quote

Quote:
If the assembler program is called dynamically, do we need to code INCLUDE SYSLIB(ASMPGM) ? Just asking out of curiosity.


No, but you need to tell the linkage editor/binderthat it is not to resolve the reference. You can do this by means of the control card

LIBRARY (ASMPGM)

which will result in cond code 4 for the linkedit step.

You will also need the library containnig the ASMPGM to be available to the job at runtime.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 29, 2010 3:13 pm
Reply with quote

speak to the support in order to verify the SCLM archdefs
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts calling a JCl inside a JCL JCL & VSAM 3
Search our Forums:

Back to Top