Kein Folientitel - horizont

Download Report

Transcript Kein Folientitel - horizont

TWS/BatchCP
Automation for the Current Plan
Product Presentation
HORIZONT
Software
for Datacenters1
HORIZONT
Garmischer Str. 8
D- 80339 München
Tel ++49(0)89 / 540 162 - 0
www.horizont-it.com
TWS/BatchCP
What is TWS/BatchCP?
TWS/BatchCP is an add on to TWS, it
enables you to:
• TWS/BatchCP can modify the Current Plan
in batch mode
• TWS/BatchCP can do mass updates
HORIZONT
2
TWS/BatchCP
Who is using TWS/BatchCP?
TWS/BatchCP is useful to anybody working
in an TWS environment, especially:
• Production Planning
• Operations
• ...
HORIZONT
3
TWS/BatchCP
Without TWS/BatchCP
TWS’s integrated mass update functions
are no competition for TWS/BatchCP:
• The TWS mass update is complicated and
incomplete
• Your own PIF or OCL program needs
- maintenance for new TWS versions
- manpower to implement requirements
- documentation
HORIZONT
4
TWS/BatchCP
With TWS/BatchCP
Insert, delete, modify or list
• Occurrences
• Operations
• Special Resources
• Dependencies
• JCL from the JS-file
HORIZONT
execute OPC
dialog functions
in batch mode!
5
TWS/BatchCP
5.1
5.2
5.3
5.4
5.5
5.6
How TWS/BatchCP works
TWS/BatchCP is a “normal” program (no STC).
It communicates with the TWS controller.
• TWS/BatchCP uses PIF (TWS Program
•
Interface)
- 100% secure
- 100% reliable
TWS/BatchCP can be used in
- Batch programs (JCL)
- Dialog programs (Clist, REXX)
HORIZONT
6
TWS/BatchCP
Selection
TWS/BatchCP offers a wide range of selection
functionality:
• Generic
- Use wildcards * and % to select Occurrences,
Operations, Special Resources...
• All data fields
- Even undocumented OPC fields are supported, e.g.
the Extended Status to search for Operations waiting
for Special Resources
• Comparison Operators
- Use comparison operators to search for Operations
which are now active for more than one hour
HORIZONT
7
TWS/BatchCP
Control Statements
* SEARCH CRITERIA
ADID=A*B*
Select Occurrences,
Operations, Special
Resources...
* ACTION PARAMETER
RECORD=CPOC/CPOP/CPDEP/CPSR/JS
ACTION=INSERT/DELETE/MODIFY/LIST
...select the desired
action
* UPDATE PARAMETER
STATUS=C
..and specify new
values for the selected
objects
HORIZONT
8
TWS/BatchCP
Some examples
The following three examples show you some
of the capabilities of TWS/BatchAD:
• List all jobs which are now active for more than
one hour
• List all jobs which are waiting for Special
Resources
• Run cyclic jobs, for example every 15 minutes
• Use TWS/BatchCP and REXX in Operating
HORIZONT
9
TWS/BatchCP
Example (1)
List all jobs which have been active for more
than one hour.
* SEARCH CRITERIA
ADID=*
STATUS=S
OPAS_TO=ACTUAL-0100
* ACTION PARAMETER
RECORD=CPOP
ACTION=LIST
HORIZONT
10
Time
variables!
TWS/BatchCP
Example (2)
List all Operations which are waiting for Special
Resources
* SEARCH CRITERIA
OPC’s
ADID=*
Extended
Status!
OPXST=X
* ACTION PARAMETER
RECORD=CPOP
ACTION=LIST
HORIZONT
11
TWS/BatchCP
Example (3)
A job should run every 15 minutes:
Possible solution without TWS/BatchCP:
96 Run Cycles with different Input Arrival Times
or
96 time dependent Operations
Too complicated!
Disadvantages:
• Do you really want to have to define 96 separate
Run Cycles or Operations?
• What happens if you now need to change
the job to run every 10 minutes?
HORIZONT
12
TWS/BatchCP
Example (3)
How to run a job every 15 minutes with TWS/BatchCP:
CPU-Job
A time
dependent
CPU
Operation with
the “first” start
time
Job with TWS/BatchCP
Increase the start time of the
CPU Operation and reset the
Status
HORIZONT
13
TWS/BatchCP
Example (4)
TWS/BatchCP and REXX:
File with
TWS/BatchCP
control cards
/* REXX SETOPCMH */
ARG JOBNAME
"ALLOC DD(PARMIN) DSN('HLQ.OCBBSP1') SHR REUSE"
"ALLOC DD(EQQMLIB) DSN('SYS1.OPCESA.V2R1M0.SEQQMSG0') SHR REUSE"
"ALLOC DD(EQQYPARM) DSN('HLQ.OPCESA.V2R1M0.EQQYPARM') SHR"
"ALLOC DD(EQQMLOG) DSN(*) SHR REUSE"
CUSTOMER=PARMJOBN
"ALLOC DD(SYSPRINT)
DSN(*) REUSE"
SECURITY_FLAG=N
"CALL 'OPCBATCP.V1R9M1.LOAD(OCBICOM5)'
'/"JOBNAME"'"
CONTINUE_ON_PIFERROR=Y
"FREE DD(PARMIN EQQMLOG EQQMLIB EQQYPARM PRGRCF OCBOUT)"
* SEARCH CRITERIA
EXIT
...
* ACTION PARAMETER
RECORD=CPOC/CPOP/CPDEP/CPSR/JS
ACTION=INSERT/DELETE/MODIFY/LIST
Contents of the
file
* UPDATE PARAMETER
...
HORIZONT
14
TWS/BatchCP
Example (4)
TWS/BatchCP and REXX:
Set Operations to MH (Manual Hold)
Instead of
hundred line
commands...
HORIZONT
...simply one
primary
command!
15
TWS/BatchCP
TWS/BatchCP vs. BCI
TWS/BatchCP
BCI
Modify
• Application
• Operation
• Predecessor
• Special Resource
Yes
Yes
Delete Application
Yes
Yes
Copy Application
Yes
Yes
Insert Application
Yes
Yes
Basic Functions
HORIZONT
17
TWS/BatchCP
TWS/BatchCP vs. BCI
TWS/BatchCP
BCI
Insert and Delete
• Operation
• Predecessor
• Special Resource
Yes
Yes
Delete JS-JCL
Yes
No
Insert JS-JCL
Yes
No
List JS-JCL
Yes
Yes
List CP-WS
No
Yes
Basic Functions
HORIZONT
18
TWS/BatchCP
TWS/BatchCP vs. BCI
TWS/BatchCP
BCI
List CP-WS (5.5.)
Yes
Yes
Modify CP-WS (5.5.)
Yes
No
Modify CP-WSInterval (5.5.)
Yes
No
List CP Special Res.
Yes
No
Modify CP Special
Resource (5.7.)
Yes
No
Basic Functions
HORIZONT
19
TWS/BatchCP
TWS/BatchCP vs. BCI
Special Functions
TWS/BatchCP
BCI
Variable simulation
Yes
Yes
List JCL only
Yes
No
List JCL sorted by
planned start time
Yes
No
LIST Status with RC
No
Yes
“move” IA from CP
to LTP, if IA > CP end
No
Yes
HORIZONT
20
TWS/BatchCP
TWS/BatchCP vs. BCI
TWS/BatchCP
BCI
Yes
No
Yes, always
Not all
Number of selection
parms
> 50
< 20
Integrated date and
time functions
Yes
No
Basic functionality
Operators
Generic Selection
HORIZONT
21
TWS/BatchCP
TWS/BatchCP vs. BCI
TWS/BatchCP
BCI
Predecessor
Yes
No
Successor
Yes
No
Special Resources
Yes
No
Selection Criteria
HORIZONT
22
TWS/BatchCP
TWS/BatchCP vs. BCI
Selection Criteria
TWS/BatchCP
BCI
Extended status
Yes
No
Time depend Y/N
Yes
No
Operation MH, NOP
Yes
No
on critical path
Yes
No
Operation is urgent
Yes
No
Op. latest out passed
Yes
No
Op. cancel if late
Yes
No
HORIZONT
23
TWS/BatchCP
TWS/BatchCP vs. BCI
TWS/BatchCP
BCI
Old start time+HHMM
Yes
No
Commands MH etc.
Yes
No
New Values
HORIZONT
24
TWS/BatchCP
TWS/BatchCP vs. OCL
The OCL (OPC Command Language) is a powerful
tool, but:
• REXX Runtime Library or IBM Compiler Libraries
•
•
•
for REXX are required
REXX experience is required
Would you like to write your own code?
Would you maintain your program
(from OPC/A to TWS 8.2?)
HORIZONT
25
TWS/BatchCP
TWS/BatchCP
Automation for the Current Plan
Thank you very much for
your attention!
HORIZONT
Software
for Datacenters26
HORIZONT
Garmischer Str. 8
D- 80339 München
Tel ++49(0)89 / 540 162 - 0
www.horizont-it.com
TWS/BatchCP