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

If all jobs in a system are coded with REGION=4M


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Prasoon Baral

New User


Joined: 12 Sep 2008
Posts: 3
Location: India

PostPosted: Thu Sep 18, 2008 7:17 pm
Reply with quote

What problem can occur if all jobs in a system are coded with REGION=4M irrespective of whether the jobs actually required that region or not? It may happen most of the jobs require less storage than 4M.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Sep 18, 2008 8:05 pm
Reply with quote

Coding an overly large REGION has no bad effects. No storage is obtained if it's never asked for.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Thu Sep 18, 2008 8:44 pm
Reply with quote

Hi,

I found the below notes in the internet, thought it might be useful sharing in this forum.

The REGION parameter specifies the maximum size of the execution region for any job step in this job. The value specified is the amount in K (1024 byte units) or M (1024*1024 byte units) which will be the upper limit on the amount of virtual storage that can be obtained via GETMAIN requests by any step in the job.

Quote:
"The region size allowed to users can affect performance of the entire system. When there is no limit on region size and the system uses its default values, users might obtain so much space within a region (by repeated requests for small amounts of storage or a single request for a large amount) that no space would remain in the private area for system use. This situation is likely to occur when a program issues a request for storage and specifies a variable length with such a large maximum value that most or all of the space remaining in the private area is allocated to the request. If this program actively uses this large amount of space (to write tables, for example), it can affect central storage (also known as real storage) and thus impact performance."
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Sep 18, 2008 11:58 pm
Reply with quote

The explanation found by Diwakar shows why it is bad form to routinely code REGION=0M (unlimited), as some folks do.
Back to top
View user's profile Send private message
Prasoon Baral

New User


Joined: 12 Sep 2008
Posts: 3
Location: India

PostPosted: Fri Sep 19, 2008 10:51 am
Reply with quote

What I understand is that coding REGION=0M has a detrimental effect on system performance. But if REGION=4M is coded in all jobs then the job does not block the storage until it request for any storage, thus there is no effect on performance.

What will happen if REGION is not coded in the job? Can you suggest the best practice of coding REGION in JCL?
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: Fri Sep 19, 2008 10:55 am
Reply with quote

Hello,

Your best source for that information (it is rather site-specific) would be your system support (or similar) people. They can tell you what class(es) and region specifications are proper for your jobs.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Sat Sep 20, 2008 1:25 am
Reply with quote

Prasoon Baral wrote:
What will happen if REGION is not coded in the job?
If you don't have REGION coded, you will get a default based on the JES2 JOBCLASS definition or other system exit. If not specified, the system default is 1M.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Sep 20, 2008 11:05 am
Reply with quote

Hi,

Just for my .02 cents..
Prasoon Baral wrote:
What I understand is that coding REGION=0M has a detrimental effect on system performance.
A value of 0K or 0M will allow the program to request the largest available region size, however this specification should be used with caution. From the OS/390 Initialization and Tuning Guide,

"The region size allowed to users can affect performance of the entire system. When there is no limit on region size and the system uses its default values, users might obtain so much space within a region (by repeated requests for small amounts of storage or a single request for a large amount) that no space would remain in the private area for system use. This situation is likely to occur when a program issues a request for storage and specifies a variable length with such a large maximum value that most or all of the space remaining in the private area is allocated to the request. If this program actively uses this large amount of space (to write tables, for example), it can affect central storage (also known as real storage) and thus impact performance."
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Sep 20, 2008 11:12 am
Reply with quote

Hi Bill,
Bill Dennis wrote:
If not specified, the system default is 1M.
Is it a universal concept ? I don't find any reference/s, please assist.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Sep 23, 2008 1:21 am
Reply with quote

One place for a default REGION to be set is based on the JES2 JOBCLASS you submit into. Check the JES2 Init and Tuning Reference manual for the defaults for JOBCLASS.

If you can issue commands, try $DJOBCLASS(n) ,where n is your job class, to see your site values.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
Search our Forums:

Back to Top