View previous topic :: View next topic
|
Author |
Message |
lvbntapasvi
New User
Joined: 20 Jul 2006 Posts: 30
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
a storage violation is ALWAYS a problem !
( whatever the program flow ) |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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....
Bill |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
|