-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathBUILDDB.xml
180 lines (180 loc) · 8.02 KB
/
BUILDDB.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<workflow>
<autoTakeOwnership>false</autoTakeOwnership>
<workflowInfo>
<workflowID scope="none">Db2 DDF Analysis Tool - Build Database</workflowID>
<workflowDescription>Build the reporting database by reading SMF 101</workflowDescription>
<workflowVersion>2020-12-10</workflowVersion>
<vendor>Open Source</vendor>
<General/>
</workflowInfo>
<variable name="HLQ" scope="instance" visibility="private">
<label>High Level Qualifier</label>
<abstract>Installation HLQ</abstract>
<description>HLQ for installation data sets</description>
<category>General</category>
<string valueMustBeChoice="false" multiLine="false">
<minLength>1</minLength>
<maxLength>8</maxLength>
</string>
</variable>
<variable name="QUAL2" scope="instance" visibility="private">
<label>Second Level Qualifier For Installation Data Sets</label>
<abstract>Second Level Qualifier For Installation Data Sets</abstract>
<description>Second Level Qualifier For Installation Data Sets</description>
<category>General</category>
<string valueMustBeChoice="false" multiLine="false">
<minLength>1</minLength>
<maxLength>8</maxLength>
</string>
</variable>
<variable name="UNIT" scope="instance" visibility="private">
<label>Unit Name</label>
<abstract>Unit Name for disk</abstract>
<description>Unit Name for disk</description>
<category>General</category>
<string valueMustBeChoice="false" multiLine="false">
<minLength>1</minLength>
<maxLength>8</maxLength>
<default>SYSDA</default>
</string>
</variable>
<variable name="SYSOUT" scope="instance" visibility="private">
<label>SYSOUT string</label>
<abstract>SYSOUT string</abstract>
<description>SYSOUT string</description>
<category>General</category>
<string valueMustBeChoice="false" multiLine="false">
<default>A</default>
</string>
</variable>
<variable name="SMF-Input" scope="instance" visibility="private">
<label>Input SMF data set name</label>
<abstract>Input SMF data set name</abstract>
<description>Data set name for the SMF 101 (Db2 Accounting Trace) records that will be read to build the reporting database.</description>
<category>General</category>
<string valueMustBeChoice="false" multiLine="false">
<minLength>8</minLength>
<maxLength>44</maxLength>
<default>DB2.V12R0M0.SDSNMACS</default>
</string>
</variable>
<atCreate name="HLQ" scope="instance" required="true" prompt="true"/>
<atCreate name="QUAL2" scope="instance" required="true" prompt="true"/>
<atCreate name="UNIT" scope="instance" required="true" prompt="true"/>
<atCreate name="SYSOUT" scope="instance" required="true" prompt="true"/>
<atCreate name="SMF-Input" scope="instance" required="true" prompt="true"/>
<step name="Build-Database" optional="false">
<title>Build The Reporting Database</title>
<description>Run a job to read SMF 101 Db2 Accounting Trace and write flat files for reporting against.</description>
<variableValue name="HLQ" scope="instance" noPromptIfSet="false" required="false"/>
<variableValue name="QUAL2" scope="instance" noPromptIfSet="false" required="false"/>
<variableValue name="SYSOUT" scope="instance" noPromptIfSet="false" required="false"/>
<variableValue name="UNIT" scope="instance" noPromptIfSet="false" required="false"/>
<variableValue name="SMF-Input" scope="instance" noPromptIfSet="false" required="false"/>
<instructions substitution="true">Set the HLQ, QUAL2, UNIT, SYSOUT, and SMF-Input variables before running this step.</instructions>
<weight>1</weight>
<autoEnable>false</autoEnable>
<canMarkAsFailed>false</canMarkAsFailed>
<template>
<inlineTemplate substitution="true">//JCL1 JCLLIB ORDER=${instance-HLQ}.${instance-QUAL2}.JCL
//DELFLAT EXEC PGM=IEFBR14
//CLSRVDDF DD DISP=(MOD,DELETE),
// DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.CLSRVDDF,
// SPACE=(TRK,1),UNIT=${instance-UNIT}
//MFDB2DDF DD DISP=(MOD,DELETE),
// DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.MFDB2DDF,
// SPACE=(TRK,1),UNIT=${instance-UNIT}
//JDBCDDF DD DISP=(MOD,DELETE),
// DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.JDBCDDF,
// SPACE=(TRK,1),UNIT=${instance-UNIT}
//CLICICS DD DISP=(MOD,DELETE),
// DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.CLICICS,
// SPACE=(TRK,1),UNIT=${instance-UNIT}
//CLIBATCH DD DISP=(MOD,DELETE),
// DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.CLIBATCH,
// SPACE=(TRK,1),UNIT=${instance-UNIT}
//CLIOTHER DD DISP=(MOD,DELETE),
// DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.CLIOTHER,
// SPACE=(TRK,1),UNIT=${instance-UNIT}
//IFCID239 DD DISP=(MOD,DELETE),
// DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.IFCID239,
// SPACE=(TRK,1),UNIT=${instance-UNIT}
//*
//MAKEFLAT EXEC PGM=SORT,REGION=0M
//SYSOUT DD SYSOUT=${instance-SYSOUT}
//SYSUDUMP DD SYSOUT=${instance-SYSOUT}
//SYSPRINT DD SYSOUT=${instance-SYSOUT}
//SYMNOUT DD SYSOUT=${instance-SYSOUT}
//EXITLIB DD DISP=SHR,
// DSN=${instance-HLQ}.${instance-QUAL2}.LOAD
//*
//SORTIN DD DISP=SHR,
// DSN=${instance-SMF-Input}
//*
//CLSRVDDF DD DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.CLSRVDDF,
// DISP=(NEW,CATLG),
// SPACE=(CYL,(50,50),RLSE),
// DATACLAS=${instance-DATACLASS},
// DCB=*.SORTIN,RECFM=VB
//MFDB2DDF DD DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.MFDB2DDF,
// DISP=(NEW,CATLG),
// SPACE=(CYL,(50,50),RLSE),
// DATACLAS=${instance-DATACLASS},
// DCB=*.SORTIN,RECFM=VB
//JDBCDDF DD DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.JDBCDDF,
// DISP=(NEW,CATLG),
// SPACE=(CYL,(50,50),RLSE),
// DATACLAS=${instance-DATACLASS},
// DCB=*.SORTIN,RECFM=VB
//CLICICS DD DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.CLICICS,
// DISP=(NEW,CATLG),
// SPACE=(CYL,(50,50),RLSE),
// DATACLAS=${instance-DATACLASS},
// DCB=*.SORTIN,RECFM=VB
//CLIBATCH DD DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.CLIBATCH,
// DISP=(NEW,CATLG),
// SPACE=(CYL,(50,50),RLSE),
// DATACLAS=${instance-DATACLASS},
// DCB=*.SORTIN,RECFM=VB
//CLIOTHER DD DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.CLIOTHER,
// DISP=(NEW,CATLG),
// SPACE=(CYL,(50,50),RLSE),
// DATACLAS=${instance-DATACLASS},
// DCB=*.SORTIN,RECFM=VB
//IFCID239 DD DSN=${instance-HLQ}.${instance-QUAL2}.DDF.FLAT.IFCID239,
// DISP=(NEW,CATLG),
// SPACE=(CYL,(500,500),RLSE),
// DATACLAS=${instance-DATACLASS},
// DCB=*.SORTIN,RECFM=VB
//SYMNAMES DD DISP=SHR,
// DSN=${instance-HLQ}.${instance-QUAL2}.CTL(DDFIDSYM)
//*
//SYSIN DD *
* Always keep the following statements in
MODS E15=(E15DDFID,75000,EXITLIB,N)
OPTION COPY,VLSHRT
OUTFIL FNAMES=CLSRVDDF,
INCLUDE=(QMDAPTYP,EQ,C'SQL',AND,QLACSQLS,EQ,+0,AND,IFCID,EQ,+3)
OUTFIL FNAMES=MFDB2DDF,
INCLUDE=(QMDAPTYP,EQ,C'DSN',AND,QLACSQLS,EQ,+0,AND,IFCID,EQ,+3)
OUTFIL FNAMES=JDBCDDF,
INCLUDE=(QMDAPTYP,EQ,C'JCC',AND,QLACSQLS,EQ,+0,AND,IFCID,EQ,+3)
OUTFIL FNAMES=CLICICS,
INCLUDE=(QLACSQLS,GT,+0,AND,QWHCATYP,EQ,QWHCCICS,AND,IFCID,EQ,+3)
OUTFIL FNAMES=CLIBATCH,
INCLUDE=(QLACSQLS,GT,+0,AND,
(QWHCATYP,EQ,QWHCTSO,OR,QWHCATYP,EQ,QWHCDB2C,OR,
QWHCATYP,EQ,QWHCDLIB,OR,QWHCATYP,EQ,QWHCIMSB,OR,
QWHCATYP,EQ,QWHCUTIL,OR,CONNID,EQ,C'BATCH '),AND,IFCID,EQ,+3)
OUTFIL FNAMES=IFCID239,INCLUDE=(IFCID,EQ,+239)
OUTFIL FNAMES=CLIOTHER,SAVE
*
END
/*
</inlineTemplate>
<submitAs maxRc="0">JCL</submitAs>
<maxLrecl>80</maxLrecl>
</template>
</step>
</workflow>