View previous topic :: View next topic |
Author |
Message |
rkarthik22 Beginner
Joined: 27 Sep 2008 Posts: 24 Topics: 9
|
Posted: Mon Sep 28, 2009 11:48 am Post subject: Region Parameter |
|
|
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 |
|
 |
taltyman JCL Forum Moderator

Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
Posted: Mon Sep 28, 2009 2:34 pm Post subject: |
|
|
Try a non zero value, like 32M |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Mon Sep 28, 2009 3:27 pm Post subject: |
|
|
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 |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Mon Sep 28, 2009 3:33 pm Post subject: |
|
|
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 |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Wed Sep 30, 2009 2:12 am Post subject: Re: Region Parameter |
|
|
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 |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Wed Sep 30, 2009 2:23 am Post subject: |
|
|
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 |
|
 |
rkarthik22 Beginner
Joined: 27 Sep 2008 Posts: 24 Topics: 9
|
Posted: Fri Oct 09, 2009 3:13 am Post subject: Re: |
|
|
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 |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Fri Oct 09, 2009 8:49 am Post subject: |
|
|
I believe thread was for REGION parameter and not for SPACE parameter  _________________ Regards,
Anuj |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Oct 09, 2009 10:08 am Post subject: Re: Region Parameter |
|
|
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 |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Fri Oct 09, 2009 7:59 pm Post subject: |
|
|
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 |
|
 |
IEFBR14 Beginner

Joined: 13 Aug 2008 Posts: 17 Topics: 0 Location: SYS1.LINKLIB
|
Posted: Sat Oct 10, 2009 8:07 am Post subject: |
|
|
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 |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Sat Oct 10, 2009 3:07 pm Post subject: Re: Region Parameter |
|
|
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... _________________ Regards,
Anuj |
|
Back to top |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Sat Oct 10, 2009 3:31 pm Post subject: |
|
|
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.. .
Other shop where I worked recently, REGION=0M was forced to a rather small default... _________________ Regards,
Anuj |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Sun Oct 11, 2009 8:32 am Post subject: |
|
|
what to mind?
Mind in this case means 'Could you' _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Mon Oct 12, 2009 8:32 am Post subject: |
|
|
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 |
|
 |
|
|