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

CICS - load a pgm and branch


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mmcgady

New User


Joined: 16 Aug 2007
Posts: 2
Location: US

PostPosted: Mon Mar 16, 2009 2:51 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Mar 16, 2009 3:14 am
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Mar 16, 2009 4:11 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Mar 16, 2009 4:39 am
Reply with quote

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
View user's profile Send private message
mmcgady

New User


Joined: 16 Aug 2007
Posts: 2
Location: US

PostPosted: Mon Mar 16, 2009 7:12 am
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Mar 16, 2009 4:57 pm
Reply with quote

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. icon_wink.gif

Regards,
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Load new table with Old unload - DB2 DB2 6
No new posts How to load to DB2 with column level ... DB2 6
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
Search our Forums:

Back to Top