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

Region Parameter


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Priyesh Tewari

New User


Joined: 24 Jun 2008
Posts: 7
Location: Pune

PostPosted: Fri May 21, 2010 12:57 pm
Reply with quote

Hi,
Can somebdy clarify this for me? This question was asked to me yesterday
I have a job that contains 5 steps. In the job card it is specified that region=4k.
Now in the exec part of steps the region parm is specied as
step 1 region = 4k
step 2 region = 2k
step 3 region = 8k
step 4 region= 6k
step 5 region = 8k

Will this job run??

Thanks
Priyesh
Back to top
View user's profile Send private message
Gousiya Mulla

New User


Joined: 02 Jun 2008
Posts: 87
Location: Bangalore

PostPosted: Fri May 21, 2010 1:11 pm
Reply with quote

I don't think there should be any reason for job not to run having definition of Region as :

Code:

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.  The REGION= 
value on the JOB statement overrides the REGION= values on any EXEC
statement in the job.  The REGION= value coded on an EXEC statement
in the job is only used if no REGION= value is coded on the JOB     
statement.                     
                                   
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri May 21, 2010 2:48 pm
Reply with quote

The Region parameter on the job card applies to all the steps in the job except steps which have their own localised REGION parameter coded.

If a step has REGION parameter then the job card REGION parameter will be ignored. The value mentioned on the step would be effective for that step.


Quote:
Will this job run??

Yes

Hope this helps.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri May 21, 2010 4:13 pm
Reply with quote

This question looks somewhat in-complete, was there any follow-up question after this from you, interviewer?

As Gousiya has said, The REGION= value on the JOB statement overrides the REGION= values on any EXEC statement in the job. The REGION= value coded on an EXEC statement in the job is only used if no REGION= value is coded on the JOB statement. So in case, 8k is coded on some of the steps, while job-card says to use maximum of just 4k, and those steps in real need that much of virtual storage, your job may abend with S106-0C.

So, job will run but might get an abend.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri May 21, 2010 4:23 pm
Reply with quote

vasanthz wrote:
The Region parameter on the job card applies to all the steps in the job except steps which have their own localised REGION parameter coded.

If a step has REGION parameter then the job card REGION parameter will be ignored. The value mentioned on the step would be effective for that step.
Unfortunately, this is not correct.

At my shop this job
Quote:
//jobname JOB (@),'IBMMAIN',
// CLASS=Z,MSGCLASS=0,NOTIFY=&SYSUID,REGION=10K
//***
//S3 EXEC PGM=ICETOOL,REGION=450K
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD *
.
.
abends with S106-0C:
Quote:
Display Filter View Print Options Help
-----------------------------------------------------------------------------
SDSF OUTPUT DISPLAY jobname JOB14526 DSID 2 LINE CHARS 'ABEN' FOUND
COMMAND INPUT ===> SCROLL ===> CSR
06.39.28 JOB14526 CSV028I ABEND106-0C JOBNAME=jobname STEPNAME=S3
06.39.28 JOB14526 IEA995I SYMPTOM DUMP OUTPUT 597
597 SYSTEM COMPLETION CODE=106 REASON CODE=0000000C

From manuals:
Quote:
SYSTEM COMPLETION CODE=106 REASON CODE=0000000C

Explanation: An error occurred during processing of a LINK(X), LOAD,
ATTACH(X), or XCTL(X) macro.

An error was detected by the control program when it attempted to fetch the requested program into virtual storage. The return code in register 15 identifies the error; see accompanying messages CSV031I and CSV028I to determine the reason code. For PMLOADER internal errors not listed, contact the IBM Support Center.

0C Not enough storage was available for FETCH to get storage for the module or control blocks.

0C No storage for I/O supervisor block (IOSB).
Back to top
View user's profile Send private message
Priyesh Tewari

New User


Joined: 24 Jun 2008
Posts: 7
Location: Pune

PostPosted: Mon May 24, 2010 2:20 pm
Reply with quote

Thanks all for the replies...
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top