-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSMF1192.jcl
51 lines (51 loc) · 2.12 KB
/
SMF1192.jcl
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
//JOBNAME JOB (SMFD),'PROGRAMMER NAME',
// NOTIFY=&SYSUID,
// CLASS=A,MSGCLASS=H,MSGLEVEL=(1,1)
//*----------------------------------------------------------------*
//* UNLOAD SMF 119 subtype 2 RECORDS FROM LOGSTREAM *
//* Also, change the DCB reference to match the name of your *
//* weekly SMF dump dataset. Change the SPACE allocation values *
//*----------------------------------------------------------------*
//CONDMP EXEC PGM=IFASMFDL,REGION=0M
//OUTDA DD DSN=&©,DISP=(NEW,PASS),
// UNIT=SYSDA,SPACE=(CYL,(10,10),RLSE),
// DCB=(RECFM=VBS,LRECL=32756,BLKSIZE=0)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LSNAME(IFASMF.ASGPLEX1.SYSTEM)
RELATIVEDATE(BYDAY,7,7)
OUTDD(OUTDA,TYPE(119(2)))
/*
//*----------------------------------------------------------------*
//* COPY VBS TO VB, DROP HEADER/TRAILER RECORDS, SORT ON DATE/TIME *
//* Change the SPACE allocation values if needed *
//*----------------------------------------------------------------*
//CONSEL EXEC PGM=ICETOOL
//DFSMSG DD SYSOUT=*
//RAWSMF DD DSN=&©,DISP=(OLD,DELETE)
//CONSMF DD DSN=&&SMFDAT,DISP=(NEW,PASS),
// DCB=(RECFM=VB,LRECL=32756,BLKSIZE=0),UNIT=SYSDA,
// SPACE=(CYL,(10,10),RLSE)
//CON1CNTL DD *
OPTION DYNALLOC,VLSHRT,SPANINC=RC4
INCLUDE COND=(6,1,BI,EQ,119,AND,23,2,BI,EQ,2)
SORT FIELDS=(11,4,PD,A,7,4,BI,A)
/*
//TOOLMSG DD SYSOUT=*
//REPORT DD SYSOUT=*
//TOOLIN DD *
SORT FROM(RAWSMF) TO(CONSMF) USING(CON1)
/*
//*----------------------------------------------------------------*
//* FORMAT TCP/IP Connection termination TYPE 119 subtype 2 records*
//* Note: change the SYSEXEC DSN=your.rexx.library to the name *
//* of the dataset where you have placed the TCPCONN REXX EXEC. *
//*----------------------------------------------------------------*
//CONREXX EXEC PGM=IKJEFT01,REGION=0M,DYNAMNBR=50
//SYSEXEC DD DSN=your.rexx.library,DISP=SHR
//SMFREC DD DSN=&&SMFDAT,DISP=(OLD,DELETE)
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
prof nopref
%TCPCONN
/*