horizont 1 smartjcl ® the easy way to faultless jcl release notes horizont software for datacenters...

39
HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89 / 540 162 - 0 www.horizont-it.com SmartJCL SmartJCL and TWS Job Tailoring

Upload: mason-lindon

Post on 31-Mar-2015

225 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 1 SmartJCL®

The Easy Way to Faultless JCL

Release Notes

HORIZONTSoftware for Datacenters

Garmischer Str. 8 D- 80339 MünchenTel ++49(0)89 / 540 162 - 0www.horizont-it.com

SmartJCL

SmartJCL and TWS Job Tailoring

Page 2: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 2 SmartJCL®

About this Presentation

• This presentation does not replace or extend

any existing TWS manuals. It is an introduction,

but not a reference!

• Please read the TWS manual “Planning and

Scheduling the Workload” before using

variables

This presentation gives you a short introduction to This presentation gives you a short introduction to

TWS job tailoring. It will also show, how HORIZONT’s TWS job tailoring. It will also show, how HORIZONT’s

JCL checker “SmartJCL” handles TWS job tailoring.JCL checker “SmartJCL” handles TWS job tailoring.

Page 3: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 3 SmartJCL®

Overview

TWS for z/OS

EQQJBLIBEQQJBLIBEQQJBLIB Job Tailoring JES

PIF

SmartJCLJCL

errors HORIZONT‘s

JCL checker

EQQJBLIB

Page 4: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 4 SmartJCL®

Job Tailoring

• Variables

• Inclusion or exclusion of inline job statements

• Inclusion of job statements provided by

- EQQJBLIB members

- User-written exits

Job tailoring enables jobs to be automatically edited. Job tailoring enables jobs to be automatically edited.

Job tailoring provides:Job tailoring provides:

Page 5: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 5 SmartJCL®

Variables

• A variablename has one of following prefixes:

&%?

• A variablename has one of following suffixes:

.,/´()*&%+-= ?

• The maximum length of a variable is 8 characters

(excluding prefix and suffix)

• Variables can be used in the job, but not in procedures

Same basic rules for TWS variables:

Page 6: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 6 SmartJCL®

Variable Substitution

The values of TWS variables can be supplied:

• Automatically by TWS

• By a user-written exit

• Manually by an operator (promptable variables)

Page 7: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 7 SmartJCL®

Types of Variables

• Standard Variables, e.g.

- DSN=&OADID..LIST (Application Id)

- DSN=&OWSID..LIST (Workstation Id)

- DSN=D&CDAY..LIST (Current day)

• User defined variables, e.g.

- DSN=&MYHLQ..TWS.AD

- DSN=&DATA%SET

TWS has different types of variables:

Page 8: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 8 SmartJCL®

EQQJVMAP ------ MAINTAINING OPC JCL VARIABLE TABLES

Option ===>

Select one of the following:

1 BROWSE - Browse variable tables

2 MODIFY - Create a new JCL variable table

or modify, copy, browse or delete

existing variable tables

3 PRINT - Print variable tables

User Variables

Typically, variables are defined by using the TWS Typically, variables are defined by using the TWS

dialogs:dialogs:

See TWS manuals for

more information

Page 9: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 9 SmartJCL®

The Variable Prefix

• Ampersand &

• Percent %

• Question mark ?

There are three different prefixes for variables. Each

prefix causes TWS to perform variable substitution

in a certain way.

The same variable can be used with

different prefixes!

Page 10: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 10 SmartJCL®

Ampersand (&)

• && is not substituted (because of temp files)

• Variables which are defined “blank” are not

substituted by TWS, they are treated as

“normal” JCL variables

Ampersand variables correspond to standard

variables in JCL procedures and behave accordingly.

Page 11: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 11 SmartJCL®

Percent (%)

Percent variables can be used to form simple

variables (&) and compound variables. An example:

DSN=MY.%STEP&SET &SET=”LIB”

DSN=MY.%STEPLIB %STEPLIB=“COBLIB”

DSN=MY.COBLIB

Page 12: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 12 SmartJCL®

Question mark (?)

The position at which the value is placed can be

defined in the variable table, or can be specified in

the job where the variable is used. For example:

//SYSIN DD *

?10YEAR.?5MONTH.&YEAR=“2003”

&MONTH=“04”

....+....1....

//SYSIN DD *

04 2003

Page 13: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 13 SmartJCL®

Variable Tables

Variables can be defined in different tables by using Variables can be defined in different tables by using TWS dialogs, or by user written PIF-Programs:TWS dialogs, or by user written PIF-Programs:

• In tables specified for the operation

- by using the TABLE directive in the job

- by using the SEARCH directive in the job

• In tables specified for the application

- by using the Modify Current Plan panel

- by using the Long Term Plan panel

- in the variable table associated with the run cycle

- in the variable table associated with the period

• In the global variable table

Page 14: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 14 SmartJCL®

Search sequence

The "normal" search sequence is:The "normal" search sequence is:

JCL TABLE or SEARCH directives&ABC=TEST.DATA(JCXB9)

//SYSIN DD DISP=SHR,DSN=%MYDSN

Application run cycle and periods&MYDSN=PROD.DATA(JCXB9)

Global table&XYZ=SYS.DATA(JCXB9)

Page 15: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 15 SmartJCL®

Directives

• SCAN

• SEARCH

• SETFORM

• SETVAR

• TABLE

• BEGIN and END

• FETCH

TWS uses "directives" to manage variable TWS uses "directives" to manage variable

substitution. The directives are:substitution. The directives are:

Page 16: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 16 SmartJCL®

SCANIf VARSUB (keyword in OPCOPTS) is set to SCAN, If VARSUB (keyword in OPCOPTS) is set to SCAN,

the directive informs TWS, that variable substitution the directive informs TWS, that variable substitution

should start from this line.should start from this line.

//TESTJOB JOB (ACCOUNT)...//STEP1 EXEC PGM=MYPGM//*%OPC SCAN//STEPLIB DD DSN=OPC.LOAD.%LIBRARY.,// DISP=SHR

Page 17: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 17 SmartJCL®

TABLE NAMEIt defines the variable table that is used whenIt defines the variable table that is used when

attempting to assign a value to a variable.attempting to assign a value to a variable.

//TESTJOB JOB (ACCOUNT)...//STEP1 EXEC PGM=MYPGM//*%OPC TABLE NAME=(DAYTAB&CDAY)//STEPLIB DD DSN=OPC.LOAD.%LIBRARY.

• TABLE is often used with date variables, e.g. to use a dedicated table for every day of the week

• The variable table will be searched before the variable tables in any existing concatenation!

Page 18: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 18 SmartJCL®

SEARCH NAMEIt defines the variable tables that are searched whenIt defines the variable tables that are searched when

attempting to assign a value to a variable.attempting to assign a value to a variable.

//TESTJOB JOB (ACCOUNT)...//STEP1 EXEC PGM=MYPGM//*%OPC SEARCH NAME=(TABLE1,TABLE2)//STEPLIB DD DSN=OPC.LOAD.%LIBRARY.

Page 19: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 19 SmartJCL®

SEARCH NAME

Up to 16 tables, including the application and global Up to 16 tables, including the application and global

tables, can be specified.tables, can be specified.

• The GLOBAL or NOGLOBAL keyword specifies if the global variable table will be searched.

• The APPL or NOAPPL keyword specifies if the the application variable table will be searched.

• The SEARCH statement must not contain another TWS variable (which is allowed for the TABLE statement)

Page 20: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 20 SmartJCL®

SETFORMSETFORM defines the format of dynamic variables. SETFORM defines the format of dynamic variables.

Dynamic variables are, e.g. Dynamic variables are, e.g.

• CDATE, CTIME (Current date and time)

• ODATE, OTIME (Occurrence date and time)

• ….see TWS documentation for complete listing

//TESTJOB JOB (ACCOUNT)...//STEP1 EXEC PGM=MYPGM//*%OPC SETFORM CDATE=(YYYYDDD)//SYSIN DD DSN=TEST.D%CDATE

DSN=TEST.D2003058

Page 21: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 21 SmartJCL®

SETVARIt creates a temporary variable using an arithmetic It creates a temporary variable using an arithmetic

expression together with supplied date variables. expression together with supplied date variables.

//STEP1 EXEC PGM=MYPGM//*%OPC SETFORM CDATE=(YYYYDDD)//*%OPC SETVAR TVAR=(CDATE+1WD)//SYSIN DD DSN=TEST.D%TVAR

2003058 + 1

//SYSIN DD DSN=TEST.D2003059

Page 22: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 22 SmartJCL®

BEGIN and END

• The start and end of variable substitution

• The start and end of lines to be included or

excluded from the tailored job

BEGIN and END, used in pairs, denote the BEGIN and END, used in pairs, denote the

following, depending on the value of the ACTION following, depending on the value of the ACTION

keyword:keyword:

Page 23: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 23 SmartJCL®

ACTIONBEGIN must have a matching END specifying the BEGIN must have a matching END specifying the

same ACTION. An example:same ACTION. An example:

//STEP1 EXEC PGM=MYPGM//*%OPC BEGIN ACTION=EXCLUDE//STEPLIB DD DSN=SYS.DB2.LOAD//*%OPC END ACTION=EXCLUDE//SYSIN DD *

//STEP1 EXEC PGM=MYPGM//SYSIN DD *

Page 24: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 24 SmartJCL®

FETCHFETCH lets you include lines from a PO member or FETCH lets you include lines from a PO member or

which are supplied by an exit. which are supplied by an exit.

//STEP1 EXEC PGM=MYPGM//*%OPC FETCH MEMBER=MYMEM//SYSIN DD *

//STEP1 EXEC PGM=MYPGM//* MYMEM//STEPLIB DD DSN=SYS.DLIB//SYSIN DD *

Page 25: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 25 SmartJCL®

COMPA comparison expression lets you specify conditions A comparison expression lets you specify conditions

when BEGIN and FETCH directives will be honored.when BEGIN and FETCH directives will be honored.

//*%OPC BEGIN ACTION=INCLUDE,//*%OPC COMP=((&OADID..EQ.(A1,A2,A3)),//*%OPC (&CDAY..NE.(1,2)))

EQ,NE,GT,GE,LT,LE

Logical OR

Newline:Logical AND

READ: Include subsequent lines, if the Application Id is A1, A2 or A3 and it is not Monday or Tuesday

Page 26: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 26 SmartJCL®

PHASESpecifies whether the BEGIN/END pair should take Specifies whether the BEGIN/END pair should take

effect during the setup or submit phase of the effect during the setup or submit phase of the

operation. operation.

• Possible values: SETUP or SUBMIT

• Default is SUBMIT

//*%OPC BEGIN ACTION=EXCLUDE,PHASE=SETUP

Page 27: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 27 SmartJCL®

TWS Job Tailoring - Summary

• Predefined variables for date, time etc.

• User specific variables

• &, % and ? variables

• Directives to manage variable substitution, e.g.

SCAN, SEARCH, TABLE

• Inclusion or exclusion of job statements

TWS job tailoring provides:TWS job tailoring provides:

Page 28: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 28 SmartJCL®

TWS job tailoring and JCL checkers

• The JCL checker must be able to correctly

handle TWS variables and directives

• Due to date related variables, the JCL checker

should be able to “simulate” TWS job tailoring

for any day in the future

The previous slides showed you how Job Tailoring The previous slides showed you how Job Tailoring

can be used to make your JCL more flexible. can be used to make your JCL more flexible.

However, this has an impact on JCL checkers:However, this has an impact on JCL checkers:

Page 29: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 29 SmartJCL®

SmartJCL - JCL Validation

• SmartJCL checks syntax (parameters, quotes, etc.)• SmartJCL checks referbacks• SmartJCL checks JCL overrides• SmartJCL checks catalog actions• SmartJCL checks GDG processing• SmartJCL checks if program, dataset or proc exist

One major benefit of SmartJCL is its One major benefit of SmartJCL is its integrated TWS Interface, but it also performs integrated TWS Interface, but it also performs the basic tasks of a JCL checker:the basic tasks of a JCL checker:

Page 30: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 30 SmartJCL®

SmartJCL - Interface to TWS

• Simulate TWS job tailoring

• Check JCL in production sequence to simulate catalog actions

• Select the jobs which should be checked by Application Id, Owner Id, Input Arrival etc.

One of the benefits of SmartJCL is the One of the benefits of SmartJCL is the integrated TWS Interface. It enables you to:integrated TWS Interface. It enables you to:

Page 31: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 31 SmartJCL®

SmartJCL - Variables, Example (1)File Edit Confirm Menu Utilities Compilers Test Help -----------------------------------------------------------EDIT P390P.TEST.CNTL(SIMJCL01) - 01.04COMMAND ===> ****** *********************** Top of Data ****************000001 //SIMJCL01 JOB 'HORIZONT',MSGCLASS=T,NOTIFY=&SYSUID 000002 //*%OPC SCAN 000003 //************************************************** 000004 //DELETE EXEC PGM=IEFBR14 000005 //DD1 DD DSN=P390A.&OJOBNAME..N&OOPNO,DISP=SHR 000006 //**************************************************000007 //ALLOC EXEC PGM=IEFBR14,COND=(4,LT) 000008 //DD1 DD DSN=P390A.&OJOBNAME..N&OOPNO, 000009 // DISP=(,CATLG),SPACE=(CYL,(2,5),RLSE), 000011 //************************************************** 000012 //WRITER EXEC PGM=REPORT01,COND=(4,LT) 000013 //OUT1 DD DISP=SHR,DSN=P390A.&OJOBNAME..N&OOPNO 000014 //IN1 DD DISP=SHR,DSN=P390A.D&OYMD1..T&OHHMM ****** ******************** Bottom of Data ****************

TWS Variables...

TWS Variables...

TWS Variables...

TWS Variables...

Page 32: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 32 SmartJCL®

SmartJCL - Variables, Example (2)File Edit Confirm Menu Utilities Compilers Test Help-----------------------------------------------------------EDIT P390P.TEST.CNTL(SIMJCL01) - 01.04 COMMAND ===> ****** ************************* Top of Data **************000001 //SIMJCL01 JOB 'HORIZONT',MSGCLASS=T,NOTIFY=&SYSUID 000002 //*%OPC SCAN 000003 //**************************************************000004 //DELETE EXEC PGM=IEFBR14 000005 //DD1 DD DSN=P390A.&OJOBNAME..N&OOPNO,DISP=SHR000007 //**************************************************000008 //ALLOC EXEC PGM=IEFBR14,COND=(4,LT) 000009 //DD1 DD DSN=P390A.&OJOBNAME..N&OOPNO, .HAAA // DISP=(,CATLG),SPACE=(CYL,(2,5),RLSE) ==MSG> JCK0316E - INVALID DATA SET NAME FORMAT 000010 //************************************************** 000011 //WRITER EXEC PGM=REPORT01,COND=(4,LT) .HAAI //OUT1 DD DISP=SHR,DSN=P390A.&OJOBNAME..N&OOPNO

…must be substituted before JCL validation.

Page 33: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 33 SmartJCL®

SmartJCL - Variables, Example (3)File Edit Confirm Menu Utilities Compilers Test Help-----------------------------------------------------------EDIT P390P.TEST.CNTL(SIMJCL02) - 01.00COMMAND ===> ****** ********************** Top of Data *****************000001 //SIMJCL01 JOB 'HORIZONT',MSGCLASS=T,NOTIFY=&SYSUID=NOTE= --SIMJCL01 JOB 'HORIZONT',MSGCLASS=T,NOTIFY=P390G 000002 //*%OPC SCAN 000003 //**************************************************000004 //DELETE EXEC PGM=IEFBR14 000005 //DD1 DD DSN=P390A.SIMJCL01.N010,DISP=SHR 000007 //**************************************************000008 //ALLOC EXEC PGM=IEFBR14,COND=(4,LT) 000009 //DD1 DD DSN=P390A.SIMJCL01.N010, 000010 // DISP=(,CATLG),SPACE=(CYL,(2,5),RLSE), 000011 //**************************************************000012 //WRITER EXEC PGM=REPORT01,COND=(4,LT)000013 //OUT1 DD DISP=SHR,DSN=P390A.SIMJCL01.N010

Jobname found in TWS-CP

Additional search in TWS-AD?

Yes or No? Y

SmartJCL has an integrated TWS dialog: First the AD and the CP are scanned for the job....

Page 34: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 34 SmartJCL®

SmartJCL - Variables, Example (4)File Edit Confirm Menu Utilities Compilers Test Help-----------------------------------------------------------EDIT P390P.TEST.CNTL(SIMJCL02) - 01.00COMMAND ===> ****** ********************** Top of Data *****************000001 //SIMJCL01 JOB 'HORIZONT',MSGCLASS=T,NOTIFY=&SYSUID=NOTE= --SIMJCL01 JOB 'HORIZONT',MSGCLASS=T,NOTIFY=P390G 000002 //*%OPC SCAN 000003 //**************************************************000004 //DELETE EXEC PGM=IEFBR14 000005 //DD1 DD DSN=P390A.SIMJCL01.N010,DISP=SHR 000007 //**************************************************000008 //ALLOC EXEC PGM=IEFBR14,COND=(4,LT) 000009 //DD1 DD DSN=P390A.SIMJCL01.N010, 000010 // DISP=(,CATLG),SPACE=(CYL,(2,5),RLSE), 000011 //**************************************************000012 //WRITER EXEC PGM=REPORT01,COND=(4,LT)000013 //OUT1 DD DISP=SHR,DSN=P390A.SIMJCL01.N010

-------------- OPC/SimJCL ---------------- Row 1 of 35 Command ===> ________________________ Scroll ===> PAGE Select line with S to start Simulation

Simulation Date ===> 20011231 Time ===> 0900 Input Arrival Date ===> ________ Time ===> ____ Application ID Jobname Input Arrival OpNo WsId _ HELMUTTIME P390K2 20020422 0800 020 CPU1 CP_ HELMUTTIME P390K2 20020422 0900 020 CPU1 CP_ HELMUTTIME P390K2 20020422 1000 020 CPU1 CP_ HELMUTTIME P390K2 20020422 1100 020 CPU1 CP_ HELMUTTIME1 P390K2 20020422 0700 020 CPU1 CP

...the User has to select the desired Application....

Page 35: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 35 SmartJCL®

SmartJCL - Variables, Example (5)File Edit Confirm Menu Utilities Compilers Test Help -----------------------------------------------------------EDIT P390P.TEST.CNTL(SIMJCL02) - 01.00COMMAND ===> ****** ********************** Top of Data *****************000001 //SIMJCL01 JOB 'HORIZONT',MSGCLASS=T,NOTIFY=&SYSUID =NOTE= --SIMJCL01 JOB 'HORIZONT',MSGCLASS=T,NOTIFY=P390G 000002 //*%OPC SCAN 000003 //************************************************** 000004 //DELETE EXEC PGM=IEFBR14 000005 //DD1 DD DSN=P390A.SIMJCL01.N010,DISP=SHR 000007 //************************************************** 000008 //ALLOC EXEC PGM=IEFBR14,COND=(4,LT) 000009 //DD1 DD DSN=P390A.SIMJCL01.N010, 000010 // DISP=(,CATLG),SPACE=(CYL,(2,5),RLSE), 000011 //**************************************************000012 //WRITER EXEC PGM=REPORT01,COND=(4,LT)000013 //OUT1 DD DISP=SHR,DSN=P390A.SIMJCL01.N010

…and finally all Variables are substituted!

Page 36: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 36 SmartJCL®

SmartJCL - ISPF dialog-------------------- OPC/SimJCL Startpanel ---------------Command ===> Select one of the following options and press ENTER 1 AD - Select jobs from Application Description 2 CP - Select jobs from Current Plan 3 FORECAST - Select jobs from LTP or future planning 4 SIMULATE - Start JCL simulation 5 CHECK - Start JCL check based on simulation6 CHECK - Start JCL check without simulation Note: Options 5 and 6 are only available, if a JCL checker is installed

Select jobs from AD, CP

and LTP

Check JCL for any day in the future

Page 37: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 37 SmartJCL®

SmartJCL - Checking jobs in sequence

The integrated TWS interface enables The integrated TWS interface enables SmartJCL to check jobs in a correct sequence:SmartJCL to check jobs in a correct sequence:

10.20.98 22:30 10.20.98 22:31 10.20.98 22:32 10.20.98 22:33

WVT600HP4 001WVT600HP4

WV55684

WVT600HP4

WV55690WVT600HP4 099

WVT600HP4

WV55688

Job A creates a file which does not exist

Job B reads the file

Without checking the jobs in the correct sequence, a JCL checker displays a message like „dataset not found“

Page 38: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 38 SmartJCL®

SmartJCL - Summary

• Standard JCL validation, such as syntax checks, catalog actions etc.

• Simulation of TWS job tailoring

• Check JCL in production sequence to simulate catalog actions

• Select jobs which should be checked by Application Id, Owner Id, Input Arrival etc.

SmartJCL is a JCL checker with an integrated SmartJCL is a JCL checker with an integrated TWS interface, some functions are:TWS interface, some functions are:

Page 39: HORIZONT 1 SmartJCL ® The Easy Way to Faultless JCL Release Notes HORIZONT Software for Datacenters Garmischer Str. 8 D- 80339 München Tel ++49(0)89

HORIZONT 39 SmartJCL®

Many thanks for your attention

HORIZONTSoftware for Datacenters

Garmischer Str. 8 D- 80339 MünchenTel ++49(0)89 / 540 162 - 0www.horizont-it.com

The Easy Way to Faultless JCL

SmartJCL

Thank you very much for you attention