Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Overriding REGION parameter from the Called JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Mon Feb 11, 2008 4:36 pm    Post subject: Overriding REGION parameter from the Called JCL
Reply with quote

Hi There,

Am having a JCL which is calling a Proc

Code:
//STEP01 EXEC PROC1...


Inside this proc I have 3 steps

Code:
//PROC1   PROC
//STEP01 EXEC PGM=ABC
.
//STEP02 EXEC PGM=BCD,REGION=5M
.
//STEP03 EXEC PGM=xyz


I have a REGION parameter in STEP02 of PROC1, which I need to override from the called JCL, is there any way to do this without editing the PROC. Thanks in advance.

Thamilzan.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 11, 2008 4:53 pm    Post subject:
Reply with quote

Easiest way is to code the REGION= on the job card as the jobcard version will take precedence over step coded region parameters.
Back to top
View user's profile Send private message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Mon Feb 11, 2008 4:58 pm    Post subject:
Reply with quote

you can code REGION=, in Job card which will take care of all the steps.
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Mon Feb 11, 2008 5:09 pm    Post subject:
Reply with quote

Hi All,
Well adding a REGION parm in Job card is a known thing, but my work env. does not allow the use of the REGION parm in the JOB card. Any other way??? icon_question.gif

Thamilzan.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Feb 11, 2008 5:35 pm    Post subject: Re: Overriding
Reply with quote

Won't //STEP01 EXEC PROC1,REGION.STEP02=newvalue work?
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Mon Feb 11, 2008 6:13 pm    Post subject:
Reply with quote

Cics Guy,

Nope, I tried it but does not reflect in the JESJCL, thats step's region parameter is not substituted by the new value icon_sad.gif



Thamilzan.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10255
Location: italy

PostPosted: Mon Feb 11, 2008 6:35 pm    Post subject: Reply to: Overriding REGION parameter from the Called JCL
Reply with quote

maybe it is not reflected in the jesjcl,
but it is accepted and honored

just look at the region size in the iefactrt pintout

the job
Code:
****** ***************************** Top of Data ******************************
000001 //ENRICO@A JOB (H001),'TESTPROC',NOTIFY=ENRICO,
000002 //             CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
000003 //* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
000004 //*            DSN=ENRICO.TEST.JCL(TESTPROC)
000005 //* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
000006 // JCLLIB      ORDER=(ENRICO.TEST.JCL)
000007 //* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
000008 //*
000009 //P1      EXEC PROC01,REGION.S1=2M
000010 //P2      EXEC PROC01,REGION.S1=4M
000011 //P3      EXEC PROC01,REGION.S1=6M
****** **************************** Bottom of Data ****************************


the proc
Code:
****** ***************************** Top of Data ******************************
000001 //S1      EXEC PGM=IEFBR14
****** **************************** Bottom of Data ****************************


the spool
Code:
********************************* TOP OF DATA **********************************
J E S 2  J O B  L O G  --  S Y S T E M  H E R C  --  N O

13.58.19 JOB00901 ---- MONDAY,    11 FEB 2008 ----
13.58.19 JOB00901  IRR010I  USERID ENRICO   IS ASSIGNED TO THIS JOB.
13.58.19 JOB00901  ICH70001I ENRICO   LAST ACCESS AT 13:55:59 ON MONDAY, FEBRUAR
13.58.19 JOB00901  $HASP373 ENRICO@A STARTED - INIT 1    - CLASS A - SYS HERC
13.58.19 JOB00901  IEF403I ENRICO@A - STARTED - TIME=13.58.19
13.58.19 JOB00901  HTRT01I                                         CPU (Total)
13.58.19 JOB00901  HTRT02I Jobname  Stepname ProcStep    RC    I/O hh:mm:ss.th
13.58.19 JOB00901  HTRT03I ENRICO@A P1       S1          00      0       00.01
13.58.19 JOB00901  HTRT03I ENRICO@A P2       S1          00      0       00.01
13.58.19 JOB00901  HTRT03I ENRICO@A P3       S1          00      0       00.01
13.58.19 JOB00901  IEF404I ENRICO@A - ENDED - TIME=13.58.19
13.58.19 JOB00901  HTRT06I
13.58.19 JOB00901  HTRT04I ENRICO@A Job Service Totals           0       00.03
13.58.19 JOB00901  $HASP395 ENRICO@A ENDED
------ JES2 JOB STATISTICS ------
11 FEB 2008 JOB EXECUTION DATE
11 CARDS READ
116 SYSOUT PRINT RECORDS
0 SYSOUT PUNCH RECORDS
9 SYSOUT SPOOL KBYTES
0.00 MINUTES EXECUTION TIME
1 //ENRICO@A JOB (H001),'TESTPROC',NOTIFY=ENRICO,
//             CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
//* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//*            DSN=ENRICO.TEST.JCL(MAXPROCS)
//* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 // JCLLIB      ORDER=(ENRICO.TEST.JCL)
//* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//*
3 //P1      EXEC PROC01,REGION.S1=2M
4 XXS1      EXEC PGM=IEFBR14
5 //P2      EXEC PROC01,REGION.S1=4M
6 XXS1      EXEC PGM=IEFBR14
7 //P3      EXEC PROC01,REGION.S1=6M
8 XXS1      EXEC PGM=IEFBR14
STMT NO. MESSAGE
3 IEFC001I PROCEDURE PROC01 WAS EXPANDED USING PRIVATE LIBRARY ENRICO.TE
5 IEFC001I PROCEDURE PROC01 WAS EXPANDED USING PRIVATE LIBRARY ENRICO.T
7 IEFC001I PROCEDURE PROC01 WAS EXPANDED USING PRIVATE LIBRARY ENRICO.T
ICH70001I ENRICO   LAST ACCESS AT 13:55:59 ON MONDAY, FEBRUARY 11, 2008
IEF142I ENRICO@A S1 P1 - STEP WAS EXECUTED - COND CODE 0000
HTRT05I -----------------------------------------------------------------------
-   
-
- Program Name       IEFBR14                           hh:mm:ss.th
- Step Name          P1                Elapsed Time          00.02
- Procedure Step     S1                TCB CPU Time          00.01
- Return Code              00          SRB CPU Time          00.00
- Total I/O                 0          Total CPU Time        00.01
- Service Units            52
-
- Region Size           2048K          Pages Paged               0
- Data/Hiperspace          0M          Pages Swapped             0
- ASID Swaps                0          Pages Stolen              0
-                                      VIO (In and Out)          0
-
- --------Below 16Meg--------          --------Above 16Meg--------
- Private Area         12268K          Private Area       1972224K
- Max Allocated            4K          Max Allocated            4K
- LSQA And SWA           220K          LSQA And SWA          9660K
-
-----------------------------------------------------------------------
IEF373I STEP/S1      /START 2008042.1358
IEF374I STEP/S1      /STOP  2008042.1358 CPU    0MIN 00.01SEC SRB    0MIN 00.00
IEF142I ENRICO@A S1 P2 - STEP WAS EXECUTED - COND CODE 0000
HTRT05I -----------------------------------------------------------------------

-
- Program Name       IEFBR14                           hh:mm:ss.th
- Step Name          P2                Elapsed Time          00.01
- Procedure Step     S1                TCB CPU Time          00.01
- Return Code              00          SRB CPU Time          00.00
- Total I/O                 0          Total CPU Time        00.01
- Service Units            71
-
- Region Size           4096K          Pages Paged               0
- Data/Hiperspace          0M          Pages Swapped             0
- ASID Swaps                0          Pages Stolen              0
-                                      VIO (In and Out)          0
-
- --------Below 16Meg--------          --------Above 16Meg--------
- Private Area         12268K          Private Area       1972224K
- Max Allocated            4K          Max Allocated            4K
- LSQA And SWA           220K          LSQA And SWA          9660K
-
-----------------------------------------------------------------------
IEF373I STEP/S1      /START 2008042.1358
IEF374I STEP/S1      /STOP  2008042.1358 CPU    0MIN 00.01SEC SRB    0MIN 00.00
IEF142I ENRICO@A S1 P3 - STEP WAS EXECUTED - COND CODE 0000
HTRT05I -----------------------------------------------------------------------

-
- Program Name       IEFBR14                           hh:mm:ss.th
- Step Name          P3                Elapsed Time          00.01
- Procedure Step     S1                TCB CPU Time          00.01
- Return Code              00          SRB CPU Time          00.00
- Total I/O                 0          Total CPU Time        00.01
- Service Units            71
-
- Region Size           6144K          Pages Paged               0
- Data/Hiperspace          0M          Pages Swapped             0
- ASID Swaps                0          Pages Stolen              0
-                                      VIO (In and Out)          0
-
- --------Below 16Meg--------          --------Above 16Meg--------
- Private Area         12268K          Private Area       1972224K
- Max Allocated            4K          Max Allocated            4K
- LSQA And SWA           220K          LSQA And SWA          9660K
-
-----------------------------------------------------------------------
IEF373I STEP/S1      /START 2008042.1358
IEF374I STEP/S1      /STOP  2008042.1358 CPU    0MIN 00.01SEC SRB    0MIN 00.00
IEF375I  JOB/ENRICO@A/START 2008042.1358
IEF376I  JOB/ENRICO@A/STOP  2008042.1358 CPU    0MIN 00.03SEC SRB    0MIN 00.00

Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Thu Feb 14, 2008 11:36 am    Post subject:
Reply with quote

Enrico,

Thanks a Ton!!!!!!!!!!!!!!!!!!

But let me know one thing why does these information does not display in my MESSAGE in the spool, and let me know what is

Quote:
iefactrt pintout


Thanks in advance

Thamilzan.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10255
Location: italy

PostPosted: Thu Feb 14, 2008 2:05 pm    Post subject: Reply to: Overriding REGION parameter from the Called JCL
Reply with quote

You do not see what I see because Your system was custozide in a different manner

IEFACTRT is a SMF ( System management facility ) exit which gets invoked
at the end of each step and at end of job
and makes available the same info that gets written to the SMF datasets
it is strange that Your organization does not have anything of that kind
it makes easy to get some simple performance data,
to spot simple errors, or to spot gross malfunctions in a jcl setup/execution
Back to top
View user's profile Send private message
lenin

New User


Joined: 12 Oct 2007
Posts: 11
Location: Chennai

PostPosted: Mon Feb 18, 2008 4:36 pm    Post subject:
Reply with quote

Thamizhan,

I hope you might be using JEM or JSCAN before submitting the job. The parameters time,region and COND which you override in JCL wont be reflecting (in some systems) there in JSCAN. But it will work while executing. I have used the same for my requirement.
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Wed Feb 20, 2008 8:58 pm    Post subject:
Reply with quote

Lenin,

Thanks for the sugession, My system allows overriding.

Enrico,

I had checked my JESYSMSG I do have an entry for (SMF STATISTICS).

Once again Thanks to all

Thamilzan.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us