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

Overriding REGION parameter from the Called JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Mon Feb 11, 2008 4:53 pm
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
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
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: 2146
Location: At my coffee table

PostPosted: Mon Feb 11, 2008 5:35 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 11, 2008 6:35 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Feb 14, 2008 2:05 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


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 step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top