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 linking to a dynamically called subprogram

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: Problem while linking to a dynamically called subprogram
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Wed Nov 23, 2011 6:40 pm    Post subject: Reply to: Problem while linking to a dynamically called subp
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

Site Director


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

PostPosted: Wed Nov 23, 2011 11:25 pm    Post subject:
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: 1746
Location: Bloomington, IL

PostPosted: Wed Nov 23, 2011 11:34 pm    Post subject: Re: Problem while linking to a dynamically called subprogram
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Thu Nov 24, 2011 2:59 pm    Post subject: Reply to: Problem while linking to a dynamically called subp
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

Senior Member


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

PostPosted: Thu Nov 24, 2011 3:13 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm


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