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 Profile Log in to check your private messages Log in
 
CICS - load a pgm and branch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: CICS - load a pgm and branch
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

Site Director


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

PostPosted: Mon Mar 16, 2009 3:14 am    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Mon Mar 16, 2009 4:11 am    Post subject:
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

Site Director


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

PostPosted: Mon Mar 16, 2009 4:39 am    Post subject: Reply to: CICS - load a pgm and branch
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    Post subject:
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Mon Mar 16, 2009 4:57 pm    Post subject: Reply to: CICS - load a pgm and branch
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 0 Mon Sep 18, 2017 4:31 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts Need to track the CICS transaction fr... sam8051 CICS 3 Mon Aug 07, 2017 3:11 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm

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