View previous topic :: View next topic
|
Author |
Message |
nivedita.mukherjee16
New User
Joined: 10 Jun 2011 Posts: 13 Location: Kolkata
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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 |
|
|
nivedita.mukherjee16
New User
Joined: 10 Jun 2011 Posts: 13 Location: Kolkata
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
|