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

Storage Violation issue while GETMAIN


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

New User


Joined: 20 Jul 2006
Posts: 30

PostPosted: Fri Jul 01, 2011 3:57 pm
Reply with quote

I have a program A, which calls B. Program A sends the request and receives the response from program B.

In program B, the GETMAIN for the response copybook is coded and when the control returns to program A from B, again the GETMAIN is coded for the same response copybook.

Looking at the storage violation, the offset address has pointed the location to the statement where the GETMAIN is coded for the response copybook in program A.

Please suggest, if this really is a problem.

Thanks in advance.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Jul 01, 2011 4:03 pm
Reply with quote

a storage violation is ALWAYS a problem ! icon_cool.gif
( whatever the program flow )
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jul 01, 2011 4:04 pm
Reply with quote

Can you post the code (GETMAINs, access from Prog A to B, USING in Prog B) in the Code Tages (oblong button above input box).

What do you think that GETMAIN does? Are you doing it in A and B for the same copybook expecting to be able to access the data from B in A?

Try to explain more exactly what you are doing, how you expect it works, and include the full error message(s) detail.
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: Fri Jul 01, 2011 5:18 pm
Reply with quote

Review the accompanied TRACE in the transaction dump. I think you may find that the SV is occurring during an explicit FREEMAIN (issued by the program) or at task termination (implicit FREEMAIN, issued by CICS).

A common problem is when a top, bottom or both, SCZ's (Storage Check Zones) have been compromised.

Check your SIT parms for STGRCVY (Storage Recovery) set to Y.

Check MSGUSR for DFHSM0102 and DFHSM0103 messages.

Perhaps what has happened is that the GETMAIN's were successful, but the application compromised one or more of the SCZ's and the FREEMAIN's failed, causing the SV.

Yes, SV's can be a PITA.... icon_wink.gif

Bill
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: Sat Jul 02, 2011 12:12 am
Reply with quote

Click here -

www.ibmmainframes.com/viewtopic.php?p=254990&highlight=#254990

Bill
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sat Jul 02, 2011 11:24 am
Reply with quote

lvbntapasvi wrote:
In program B, the GETMAIN for the response copybook is coded and when the control returns to program A from B, again the GETMAIN is coded for the same response copybook.
I don't understand why you need two GETMAINs (or even one).
Post your code.
And instead of just waiting for an answer, please try to read some documentation (about GETMAIN and LINKAGE and passing arguments for example).
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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts CICS vs LE: STORAGE option CICS 0
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Insufficient Storage ABENDS & Debugging 7
Search our Forums:

Back to Top