XINFO - Examples - Source - Incremental

Download Report

Transcript XINFO - Examples - Source - Incremental

XINFO
The IT Information System
Incremental Update for
Source Scanner
HORIZONT
Software
HORIZONT for Datacenters1
Garmischer Str. 8
D- 80339 München
Tel ++49(0)89 / 540 162 - 0
®
www.horizont-it.com
XINFO
Incremental update for Source Scanner
It is prerequisite for incremental update that your
standard job is running without problems.
To get the results that you want, the following
improvements of quality should be done before using the
incremental update:
• Which Source Libs and Copy Libs belong together for one
“project”? Is there a meaningful relation of “Source Libs
and Copy Libs"?
• If there a duplicate include members: Do you know the
correct order of libraries?
HORIZONT
2
XINFO
®
Incremental update Source Scanner
There are three possibilities to do incremental update
1. If you want to scan one or a few specific program members,
you can directly use Job XXRJCOBU (e.g. started from a
hand over system)
2. To (e.g. daily) update XINFO with all changed source
members
-
Use XXRJISC/P to create a basic-list for all source-members
and their ISPF-Statistics or “checksums”
Use the (daily) Job XXRJIFC/P to find out which members have
changed ISPF-Statistics or “checksums” and doing the scan.
3. If you have a dataset with a list of changed members, you
can take only the Job: XXRJILC/P for incremental update
With 2. and 3.: If a Copy-Member is changed, all affected
source members are scanned automatically.
HORIZONT
3
XINFO
®
XINFO
The IT Information System
Many thanks for your
attention
HORIZONT
Software
HORIZONT for Datacenters4
Garmischer Str. 8
D- 80339 München
Tel ++49(0)89 / 540 162 - 0
®
www.horizont-it.com
XINFO
First possibility: Job XXRJCOBU
PGM XXRCCOB to analyze
Cobol-Sourcen
members which should be scanned
HORIZONT
5
XINFO
®
First possibility: Job XXRJCOBU
input SourceLibs
input CopyLibs
output PS-datasets
HORIZONT
6
XINFO
®
First possibility: Job XXRJCOBU
PGM XXRITGN to
manipulate data in DB2
update scanned records
HORIZONT
7
XINFO
®
First possibility: Job XXRJCOBU
update these tables in DB2
parameters are described in:
XINFO z/OS Tips and Tricks
input PS-datasets
HORIZONT
8
XINFO
®
Second possibility: Job XXRJISC
called REXX:create Files with
Checksums or ISPF-Stat
create a list of all members
project which should be
scanned
HORIZONT
9
XINFO
®
Second possibility: Job XXRJISC
created member which must be
scanned
rows to be deleted
HORIZONT
10
XINFO
®
Second possibility: Job XXRJISC
PGM XXRCCOB to analyze
the source
list with all members
which must be analyzed
output PS-datasets
HORIZONT
11
XINFO
®
Second possibility: Job XXRJISC
PGM XXRITGN to
manipulate data in DB2
delete actual records from DB2
delete rows from tables
HORIZONT
12
XINFO
®
Second possibility: Job XXRJISC
PROC XXRJ2LOA to load
the records in DB2
records to be updated
update DB2-tables
HORIZONT
13
XINFO
®
Second possibility Job: XXRJISC
rename
Work-Files:
…PROJECT1.DEL: modules to delete
…PROJECT1.OLD: list of modules and libraries with ISPF-Stat + checksum
…PROJECT1.SCN: parameters for cobol scanner, including MEMBER=Statements
…PROJECT1.WTR: list of modules which are using changed copy members
HORIZONT
14
XINFO
®
Second possibility: Job XXRJIFC
called REXX to identify the files with
new Checksums
compare the checksums
with old files
project which should be
scanned (see Job XXRJISC)
HORIZONT
15
XINFO
®
Second possibility: Job XXRJIFC
PGM XXRCCOB to analyze
the source
list only with members
that must be analyzed
output PS-datasets
HORIZONT
16
XINFO
®
Third possibility: Job XXRJILC
called REXX to identify the files with
new Checksums
compare the checksums with
your own member list
project which should be
scanned (see Job XXRJISC)
HORIZONT
17
XINFO
®
Third possibility: Job XXRJILC
Your own member list
list with your own
members that must be
analyzed
HORIZONT
18
XINFO
®
Effects on Programs-Data
• If you use incremental update, the data for
“Programs-Tables” are not filled updated.
• You can use the sample job XXRJMSP0 to
unload the current data from DB2. The job
creates the files used by Job XXRJMSP, but with
an additional qualifier: ...UNLOAD
• Either copy the steps in XXRJMSP0 into
XXRJMSP or edit XXRJMSP to use these files.
• The rest of the job can be used without
modifications.
HORIZONT
19
XINFO
®
Job XXRJMSP0: Unload Records from DB2
new output PS-Dataset
qualifier must be equal
to input PS-Dataset in
Job XXRJMSP
HORIZONT
20
XINFO
®
Job XXRJMSP: Create new list
.unload qualifier
input PS-Dataset
HORIZONT
21
XINFO
®
XINFO
The IT Information System
Many thanks for your
attention
HORIZONT
Software
HORIZONT for Datacenters22
Garmischer Str. 8
D- 80339 München
Tel ++49(0)89 / 540 162 - 0
®
www.horizont-it.com
XINFO