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
 

 

Overwrite of Malloc'd storage in CICS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Steve Sullivan

New User


Joined: 01 Feb 2013
Posts: 2
Location: USA

PostPosted: Wed Feb 06, 2013 2:46 am    Post subject: Overwrite of Malloc'd storage in CICS
Reply with quote

We have a CICS transaction which executes a CICS COBOL program. This program dynamically calls several IBM C load modules.
Each of these load modules mallocs storage that we expect to own for the duration of the transaction.
It appears that the storage is being reused as it has been over-written with STKL and STKU entries.
We have gotten around this problem by replacing mallocs with CICS GETMAINS.
We did not have this problem when our C load modules were built with SAS C and statically linked with our COBOL program.
We're wondering whether there are compile or linking options relevant to this problem that we have overlooked.

The CICS translator parameters for the COBOL program are: COBOL3,NODEBUG,NOSOURCE,SP

The compile parameters for the COBOL program are: NODYN,LIB,OBJ,RENT,RES,APOST,MAP,XREF,LIST,SSRANGE.

The link parameters for the COBOL program are: LIST,XREF,AMODE(31),RMODE(ANY),RENT

The compile parameters for the IBM C programs are: SO,XR,EXPMAC,NOMAR,NOSEQ,LONGNAME,SSCOMM,RENT,
GONUMBER,LIST,OFFSET,OPTIMIZE(2),INLRPT,CICS(SP,DEBUG)

The pre-link parameters for the IBM C programs are: NONCAL, NOMEMORY, ER, DUP, MAP,NOOMVS NOUPCASE DYNAM


Lastly, the link parameters for the IBM C programs are: LIST,LET.

Thanks in advance for your responses.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Feb 06, 2013 4:05 am    Post subject: Reply to: Overwrite of Malloc'd storage in CICS
Reply with quote

please do not double post...

the people answering there
http://ibmmainframeforum.com/viewtopic.php?f=12&t=8742
are the same answering here

just tell where do You want to carry on the discussion and somebody will clear the then useless thread
Back to top
View user's profile Send private message
Steve Sullivan

New User


Joined: 01 Feb 2013
Posts: 2
Location: USA

PostPosted: Wed Feb 06, 2013 4:13 am    Post subject: Overwrite of Malloc'd storage in CICS
Reply with quote

I'd like to discuss this topic in the CICS forum.
Apologies for the double-post
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 INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 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 CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm


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