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
 

 

Storage Violation issue while GETMAIN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Storage Violation issue while GETMAIN
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Fri Jul 01, 2011 4:03 pm    Post subject: Reply to: Storage Violation issue while GETMAIN
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7255

PostPosted: Fri Jul 01, 2011 4:04 pm    Post subject: Reply to: Storage Violation issue while GETMAIN
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Jul 01, 2011 5:18 pm    Post subject: Reply to: Storage Violation issue while GETMAIN
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sat Jul 02, 2011 12:12 am    Post subject: Reply to: Storage Violation issue while GETMAIN
Reply with quote

Click here -

http://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: 1224
Location: Israel

PostPosted: Sat Jul 02, 2011 11:24 am    Post subject: Re: Storage Violation issue while GETMAIN
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    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 Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm
No new posts REXX Screen not working due to LINKED... sundarkudos CLIST & REXX 1 Mon May 09, 2016 1:44 pm


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