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

Can SoS(Short on Storage) be handled programatically


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

New User


Joined: 18 May 2011
Posts: 47
Location: India

PostPosted: Tue Sep 06, 2011 11:31 am
Reply with quote

My application program which is main memory hungry issues a GETMAIN. CICS serves that request, but CICS gets in to SoS condition.

Is it possible to detect whether CICS will get in to SoS if it GETMAINs the storage.By detecting this i am planning to bypass the GETMAIN.

I am not looking at alternate solutions to GETMAIN. Please advise on how to detect SoS before CICS actually plunges in to SoS.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Sep 06, 2011 12:13 pm
Reply with quote

Eshwar CICS wrote:
My application program which is main memory hungry issues a GETMAIN. CICS serves that request, but CICS gets in to SoS condition.

Is it possible to detect whether CICS will get in to SoS if it GETMAINs the storage.By detecting this i am planning to bypass the GETMAIN.

I am not looking at alternate solutions to GETMAIN. Please advise on how to detect SoS before CICS actually plunges in to SoS.


If you have a method whereby your application can successfully bypass the GETMAIN, then you should use this method rather than issue the GETMAIN. It seems a bit silly to have two methods of processing, one of which is problematic.

Garry.
Back to top
View user's profile Send private message
Eshwar CICS

New User


Joined: 18 May 2011
Posts: 47
Location: India

PostPosted: Tue Sep 06, 2011 12:21 pm
Reply with quote

When GETMAIN is bypassed, a confirmation will be sent back to the user that the request (transaction) cannot be served. This is more appropriate than pushing the CICS region in to SoS.

People replying to this post may seek more information to understand the situation before coming to any fruitless conclusions. Thanks.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Sep 06, 2011 12:28 pm
Reply with quote

Quote:
People replying to this post may seek more information to understand the situation before coming to any fruitless conclusions.


It would be better if the scenario were better described in the original query to eliminate ambiguity or misrepresentation of the situation. icon_rolleyes.gif
Garry.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Sep 06, 2011 1:38 pm
Reply with quote

Quote:
People replying to this post may seek more information to understand the situation before coming to any fruitless conclusions. Thanks.

refrain from making offensive comment on people trying to help You !


Quote:
Is it possible to detect whether CICS will get in to SoS if it GETMAINs the storage.By detecting this i am planning to bypass the GETMAIN.

what kind of answer did You expect gievn tyhe previous statement

people reply on their own time free of charge...
if You do not like the answers You get here You are free to migrate elsewhere icon_evil.gif
You are warned !

PS.
from Your profile
Occupation : consultant

how much are You going to charge for something You are getting for free ?
Back to top
View user's profile Send private message
Eshwar CICS

New User


Joined: 18 May 2011
Posts: 47
Location: India

PostPosted: Tue Sep 06, 2011 2:23 pm
Reply with quote

Expecting whether SoS can be detected in advance of GETMAIN request. With the help of available DSA & the amount of GETMAIN being requested.

Let me know if any further explanation is required.
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: Tue Sep 06, 2011 2:46 pm
Reply with quote

What happens if after you check, I mean microseconds after you check, there is not enough storage.

So you leave a "safety margin".

But microseconds after you check the "safety margin" is busted.

If you have something eating lots of storage, it is best you fix it so it doesn't. As any consultant would now. Unless it was that consultant's solution in the first place, I suppose.
Back to top
View user's profile Send private message
Eshwar CICS

New User


Joined: 18 May 2011
Posts: 47
Location: India

PostPosted: Tue Sep 06, 2011 3:04 pm
Reply with quote

Hi Peterholland, many thanks for sharing the link which gives indepth information about SoS. Is it possible for an application program to fetch EDSA allocated for the CICS region & the amount of available EDSA at that particular instant.

Hi Bill, the length of GETMAIN is dynamically decided in the program. There are very little chances of GETMAIN reaching the DSA threshold limits, but possibility is not ruled out and we are trying to mitigate such risks.Thanks.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Sep 06, 2011 3:10 pm
Reply with quote

Maybe here :

publib.boulder.ibm.com/infocenter/cicsts/v4r2/index.jsp?topic=%2Fcom.ibm.cics.ts.doc%2Fdfha2%2Fparameters%2Fdfha2_edsalim.html

or here :

publib.boulder.ibm.com/infocenter/cicsts/v3r1/index.jsp?topic=%2Fcom.ibm.cics.ts31.doc%2Fdfht3%2Fdfht3zn.htm

And for now i leave it to you to do some research yourself.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Sep 06, 2011 7:27 pm
Reply with quote

Hello,

Just how much storage is requested in this problem GETMAIN?

Was this method chosen simply tio make the coder's work more simple?

There is no good reason to implement something that will not work a good bit of the time or will crash CICS. . .

A redesign is in order. If you explain what the process is supposed to accomplish, someone will probably have suggestions. It is most unlikely that you have something completely unique - i.e. many here have already successfully implemented the same business requirement.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 06, 2011 7:37 pm
Reply with quote

Quote:
Is it possible for an application program to fetch EDSA allocated for the CICS region & the amount of available EDSA at that particular instant.
It is possible for a system programmer program to find the limit; typically application programs are not allowed to do so at most sites. You would have to talk to your site management to get permission to do so, and probably work with your site support group (once given permission) to get the details worked out.
Back to top
View user's profile Send private message
Eshwar CICS

New User


Joined: 18 May 2011
Posts: 47
Location: India

PostPosted: Tue Sep 06, 2011 9:25 pm
Reply with quote

Hi Dick,

CICS went in to SoS when the GETMAIN requested above 16 MB was served. And when it was above 17 MB the transaction faced RLED abend (and CICS instantaneously killed the task without even allowing the abend handling).

This application program acts as interface module to business module in web services world. We are generating web service for service provider in top down approach with mapping level of 3.0 in RDZ. The amount of data coming in the input container can vary from few bytes to several MB.Need to GET the data from container and place in some main storage to process and pass it to business logic.GETMAIN is causing issues when the data received is large. We would like to dynamically decide the available storage in CICS.If the request can't be catered, send a SOAP fault back that the request cannot be catered.

Please let me know if any further information is required to provide me the direction. Thanks.[/quote]
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: Tue Sep 06, 2011 9:36 pm
Reply with quote

I'm assuming you're specifying the FLENGTH (31-Bit Extended User-DSA) keyword in the GETMAIN API?

17MB GETMAIN? That doesn't leave a lot of wiggle room if you have several of these tasks running concurrently and monopolizing the EUDSA, plus all the other tasks in the mix?

What's your total EDSA size in the SIT?

Mr. Bill
Back to top
View user's profile Send private message
Eshwar CICS

New User


Joined: 18 May 2011
Posts: 47
Location: India

PostPosted: Tue Sep 06, 2011 9:51 pm
Reply with quote

Hi Bill,

I do not have access to SIT. Bit i could see that the region has 250 MB of data above 16 MB line(checked in CICS job log). Thanks.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Sep 06, 2011 10:01 pm
Reply with quote

Quote:
Please let me know if any further information is required to provide me the direction.

the best direction is to start spending time upgrading Your skills and reading the manuals...
what You need is all there just waiting to be picked up icon_cool.gif

did You ever hear of the SPI and EXEC CICS INQUIRE SYSTEM
most probably not, too busy consulting and charging for info You got for free, I guess icon_evil.gif

after Your stupid comment
Quote:
People replying to this post may seek more information to understand the situation before coming to any fruitless conclusions.

You deserve all the rudeness and nasty comments that we can provide

but since I am in a very good mood here is the link to the relevant page of the manual
publib.boulder.ibm.com/infocenter/cicsts/v3r2/index.jsp?topic=%2Fcom.ibm.cics.ts.doc%2Fdfha8%2Fcommands%2Fdfha8_inquiresystem.html
Back to top
View user's profile Send private message
Eshwar CICS

New User


Joined: 18 May 2011
Posts: 47
Location: India

PostPosted: Tue Sep 06, 2011 10:22 pm
Reply with quote

Hi Enrico,

This is expert guidance. Found the answer in the link which you have provided.

My comment may appear rude but my intention was to stop replies which will deviate from the post. I apologize if my comment seems to be rude.

All your other advises are received in good spirit. Thanks.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Sep 06, 2011 10:56 pm
Reply with quote

Yes, and if you had explored the links i gave you would have learned the same. But being bone-idle is also a way of life.
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 CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts CICS vs LE: STORAGE option CICS 0
No new posts Insufficient Storage ABENDS & Debugging 7
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
No new posts is there an API to use cloud storage ... All Other Mainframe Topics 2
Search our Forums:

Back to Top