View previous topic :: View next topic
|
Author |
Message |
mmcgady
New User
Joined: 16 Aug 2007 Posts: 2 Location: US
|
|
|
|
I have and executable module stored in a DB2 table. I want to load it into storeage (with a getmain - I will know the length of it), execute it and return to the calling pgm at the point directly after the "call". Is anyone aware of a way to do this? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Any properly managed system will not give permission to do this. Program fetch/load and the associated memory management should be left to the system - in this case CICS.
All purchased, free, and in-house developed executables are stored in a loadlib and executed from there.
Suggest you "extract" the load module from the db2 table and properly install it in a load library. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
mmcgady wrote: |
I have and executable module stored in a DB2 table. I want to load it into storeage (with a getmain - I will know the length of it), execute it and return to the calling pgm at the point directly after the "call". Is anyone aware of a way to do this? |
dick scherrer wrote: |
Any properly managed system will not give permission to do this. Program fetch/load and the associated memory management should be left to the system - in this case CICS. |
Ah, come on Dick, the question was asked, and how hard would it be for the "loading program" to BAL to a "privately loaded" piece of code to be executed? Given that it will have the authority of the "loading program", what harm? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi CG,
Well, a while back (quite a few years actually), i watched a couple of places self-destruct by having some over enthusiastic folk try their hand at memory management within the "application" code. . .
d |
|
Back to top |
|
|
mmcgady
New User
Joined: 16 Aug 2007 Posts: 2 Location: US
|
|
|
|
CICS_Guy -
Thanks for the response. My assembler skills are somewhere between very rusty and non-existent. Please elaborate. I am coding in Cobol. I would like to do this in command level Cobol/CICS. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
I agree with Dick as this idea (on the surface) seems benign, but these things have a tendency to multiply like rabbits and wreak havoc.
Plus, I think the SOX Auditor's will have a field day with the security ramifications.
Regards, |
|
Back to top |
|
|
|