MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Region Parameter

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
rkarthik22
Beginner


Joined: 27 Sep 2008
Posts: 24
Topics: 9

PostPosted: Mon Sep 28, 2009 11:48 am    Post subject: Region Parameter Reply with quote

Hi all,

Region Parameter issue is already discussed here...

http://www.mvsforums.com/helpboards/viewtopic.php?t=90

But Still i have soome doubts.

I am writing a easytrieve Program by comparing 2 input files and generating almost 75 Mismatch report files (75 Different fields mismatch reports).

While running this easytrieve program. in JCL, i am specifying all the 75 report files output files name in a single JCL with DCB. and so on...

I specified this parameter REGION=0M in JCL..and it was executed fine without any error.

Now this is the time where we are moving this code in to production, Where we are not allowed to code this REGION=0M.

If i Remove this REGION=0M in the JCL and test in the TEST region its giving S878 abend. '

So i am splitting this easytreive in to two programs..one writing 40 reports and other program writing 35 reports.

By doing this way we are going to move this code in to production..

I request you to help ,, is there any other alternative fo this?

Thanks for your help..

Regards,

Karthik
Back to top
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Mon Sep 28, 2009 2:34 pm    Post subject: Reply with quote

Try a non zero value, like 32M
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Sep 28, 2009 3:27 pm    Post subject: Reply with quote

If you look at the IEF374I msg on a test run, add the numbers after the VIRT and SYS labels to get the REGION used. This will be the below the line REGION=xxxxK and can be coded on the JOB or STEP.

Hopefully, your site default for above the line REGION is sufficient. Try the new REGION in the test partition first.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Mon Sep 28, 2009 3:33 pm    Post subject: Reply with quote

Also, find out what the default region size is for the job class this job will run in when in production.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Wed Sep 30, 2009 2:12 am    Post subject: Re: Region Parameter Reply with quote

rkarthik22 wrote:
I specified this parameter REGION=0M in JCL..and it was executed fine without any error.
REGION=0M can have nasty consequences. I prefer not specifying REGION and having things set up underneath the covers to allow things to run.

If your shop prints the statistics when MSGLEVEL=(1,1), it (REGION used) should be after each step. Also REGION=0M may be forced to a rather small default. Just because you coded REGION=0M doesn't mean that the system didn't do some overriding because of the dangers inherent in 0M.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Wed Sep 30, 2009 2:23 am    Post subject: Reply with quote

I am not very sure how to figure out how an operating system would distinguish between a program which intentionally uses a lot of storage, and a "runaway" program which unintentionally uses a lot of storage, without someone telling the operating system how much storage the program is intended to use.

In the former case it is just a waste of people time. In the latter case, all of the resources used by the job up until that point are -wasted- and as I've often said here and on other forums REGION related problems and job reruns are incredibly common in the wild. Arguably the current design drives up your hardware/software bill because you're wasting resources that could otherwise have been used productively.

/Rant on

If we accept that the computer's job is to run the work given to it by the user, obviously that is a knuckle headed concept.. Surely the system ought to be able to manage its own resources (including real and Auxiliary) and protect itself from ill-behaved programs, but that is something MVS has steadfastly refused to do for many years now. "Ohhhh..HH WELL" Just (change the REGION and) play it again Uncle Sam."

/Rant off
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
rkarthik22
Beginner


Joined: 27 Sep 2008
Posts: 24
Topics: 9

PostPosted: Fri Oct 09, 2009 3:13 am    Post subject: Re: Reply with quote

Yes..

According to our Production standards, We are not Coding this REGION=0M in any of our jcl's.

Instead (To rectify this S878 abend) i am using this

Code:

//EZTVFM DD UNIT=DISK,SPACE=(4096,(100,100)).

Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Fri Oct 09, 2009 8:49 am    Post subject: Reply with quote

I believe thread was for REGION parameter and not for SPACE parameter Surprised
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Oct 09, 2009 10:08 am    Post subject: Re: Region Parameter Reply with quote

Anuj Dhawan wrote:
REGION=0M can have nasty consequences. I prefer not specifying REGION and having things set up underneath the covers to allow things to run.


Hmm mind quoting an example?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Fri Oct 09, 2009 7:59 pm    Post subject: Reply with quote

kolusu wrote:
Hmm mind quoting an example?


I don't know if this was what Anuj was alluding to, but here's a good article written by Mark Zelden for TSO Times in 2004:
http://tsotimes.com/articles/archive/spring04/TSO-Times-Spring04.pdf
Note the title of the article. Most shops I've worked at discourage the use of the REGION parameter in test or development and ban it in production without proper justification.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
IEFBR14
Beginner


Joined: 13 Aug 2008
Posts: 17
Topics: 0
Location: SYS1.LINKLIB

PostPosted: Sat Oct 10, 2009 8:07 am    Post subject: Reply with quote

Anuj Dhawan wrote:

Surely the system ought to be able to manage its own resources (including real and Auxiliary) and protect itself from ill-behaved programs, but that is something MVS has steadfastly refused to do for many years now.

Anuj,

MVS and JES do that very very well - but also give you the option of "knowing better" and that is what REGION= is all about
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Sat Oct 10, 2009 3:07 pm    Post subject: Re: Region Parameter Reply with quote

kolusu wrote:
...mind quoting an example?
Sorry but I did not get you, what to mind? May be if you explain me a bit more I'll know which, probably, will lead to a constructive discussion...Confused
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Sat Oct 10, 2009 3:31 pm    Post subject: Reply with quote

Hi Terry,
Terry_Heinze wrote:
Most shops I've worked at discourage the use of the REGION parameter in test or development and ban it in production without proper justification.
Yes, I was saying this; not sure what was misleading there.. Confused .

Other shop where I worked recently, REGION=0M was forced to a rather small default...
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Sun Oct 11, 2009 8:32 am    Post subject: Reply with quote

what to mind?


Mind in this case means 'Could you'
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Oct 12, 2009 8:32 am    Post subject: Reply with quote

Our shop had a third-party product that would do a GETMAIN for all available storage below the line for work tables. With REGION=0M, nothing was left for system control block creation to OPEN files, etc. We had to find an appropriate REGION that left enough storage unallocated.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group