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

Problem while linking to a dynamically called subprogram


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nivedita.mukherjee16

New User


Joined: 10 Jun 2011
Posts: 13
Location: Kolkata

PostPosted: Wed Nov 23, 2011 6:17 pm
Reply with quote

Hi,

I am trying to run a program which calls a program dynamically.
When I am trying to run it is picking to production load for that specific program though it is present in my load.
Also in the JCL I have mentioned my load in the TOP.
For dynamic module I am using the same compilation and link JCL which I have used for my static ones. While specifying DYNAM in PARM card it is not recognizing the DYNAM KEYWORD

//COMPIL1 EXEC PLI,MEMBER=MEM_NAME,PARM=DYNAM

Please suggest if we have to do something else for compilation and linking of dynamic modules
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Nov 23, 2011 6:40 pm
Reply with quote

From what I can understand (which is not everything) of what you have said so far, there are many possibilities.

It seems there is a production program, to which you are making changes. Someone at your site must know how to compile/link those correctly, specifiy the correct loadlibraries in all places.

It will be much quicker to find someone at your site than to ask such a broadly-based question here, with little actual information.

It works in production, so someone there knows how to make it work.
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 Nov 23, 2011 11:25 pm
Reply with quote

Hello,

As you have provided basically nothing for us to use to help you, i suppose you are mostly "on your own".

If you care to post you compile/link jcl, any informational/diagnostic info generated by the compile and the execution jcl that would probably be a start.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Nov 23, 2011 11:34 pm
Reply with quote

nivedita.mukherjee16 wrote:
While specifying DYNAM in PARM card it is not recognizing the DYNAM KEYWORD

//COMPIL1 EXEC PLI,MEMBER=MEM_NAME,PARM=DYNAM

Please suggest if we have to do something else for compilation and linking of dynamic modules

DYNAM is a COBOL compile-time keyword that controls whether external routines invoked with literals are statically or dynamically linked; you appear to be compiling a PL/I program.

For a PL/I dynamically-linked program, code OPTIONS(REENTRANT) on the PROCEDURE statement of every external routine. Then invoke it thus:
Code:
FETCH FOO;
CALL FOO;
Back to top
View user's profile Send private message
nivedita.mukherjee16

New User


Joined: 10 Jun 2011
Posts: 13
Location: Kolkata

PostPosted: Thu Nov 24, 2011 10:55 am
Reply with quote

Hi,

Here the problem is that, My dynamic modules are neither called by fetch or call statement from the calling module. My calling program calls an assembler code by passing some parameters to it. This parameter contains my dynamic module name. parameters are being populated via one parm file. By this process, it is picking up the dynamic load modules.
I didn't compile/link the assembler code. but my dynamic modules as well as static modules are compiled and linked in my personal library. Kindly suggest whether I need to compile/link my assembler code.
In case I need to compile/link assembler code, I am not much familiar with that. please guide me.

Thanks
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Nov 24, 2011 2:59 pm
Reply with quote

I can't see that you need to re-assemble/link the assembler routine if it is as you describe.

You have a complex set-up for this, which seems to include a mix of dynamic/static calls, languages and methods.

I don't think you are going to get far at any speed by asking here. You need to talk to someone at your site who knows how to do this. Why is it not possible to do that?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Nov 24, 2011 3:13 pm
Reply with quote

Suggest you talk to someone around at your shop who has done this earlier. To me, it looks like, you did not get the proper libraries in place to pick up the load you recently compiled. Why do you say the load is in some personal library - it should be in some system defined library, which is specifc to your shop.

Compiling a program is a standndard process for every shop. We may provide you with comiple JCL but you should use such a JCL at your shop. This is an insane behaviour if you do so.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Dynamically pass table name to a sele... DB2 2
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
No new posts z/vm installation problem All Other Mainframe Topics 0
Search our Forums:

Back to Top