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
 

 

Problem while calling ASM from PL/I

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

Active User


Joined: 10 Aug 2009
Posts: 158
Location: India

PostPosted: Fri Mar 26, 2010 8:30 pm    Post subject: Problem while calling ASM from PL/I
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: 7931
Location: Bellevue, IA

PostPosted: Fri Mar 26, 2010 8:34 pm    Post subject:
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: 158
Location: India

PostPosted: Fri Mar 26, 2010 8:38 pm    Post subject:
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

Active Member


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

PostPosted: Fri Mar 26, 2010 8:42 pm    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Fri Mar 26, 2010 8:43 pm    Post subject:
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: 158
Location: India

PostPosted: Fri Mar 26, 2010 8:48 pm    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Fri Mar 26, 2010 8:50 pm    Post subject:
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

Active Member


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

PostPosted: Fri Mar 26, 2010 8:51 pm    Post subject:
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: 94
Location: India

PostPosted: Mon Mar 29, 2010 3:07 pm    Post subject: Reply to: Problem while calling ASM from PL/I
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

Active Member


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

PostPosted: Mon Mar 29, 2010 3:12 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Mon Mar 29, 2010 3:13 pm    Post subject: Reply to: Problem while calling ASM from PL/I
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    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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


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