Use the IEFU29L SMF dump exit to initiate the SMF log stream dump program. See the z/OS MVS Installation Exits book for more information about the IEFU29L dump exit.
SMF records created by IBM® components never exceed 32,756 bytes. If the data required in a record would cause the record to exceed that length, the component responsible for creating the record would, instead, create multiple (continuation) records, none of which would exceed 32,756 bytes. (See Record Type 30 (1E) — Common address space work for an example.) SMF records are written as spanned (VBS) in order to conserve storage space by ensuring that each block of data is as full as possible. If you specify DCB parameters on any of the input or output DD statements for IFASMFDL, you must specify RECFM=VBS. You should not specify LRECL=X for reading or writing SMF dump data, because LRECL=X signifies that a single record may be larger than 32,756 bytes, which is not the case for SMF data.
You can specify LRECL=32760 instead of 32767. You can also specify any block size from 4096 to the maximum allowed for the chosen device.
Specify a region size of 0M to avoid abend X'878' reason code 10 or other related abends.
//DUMPX JOB MSGLEVEL=1
//STEP1 EXEC PGM=IFASMFDL,REGION=0M
//OUTDD1 DD DSN=BASCAR.LSDEFLT.RECOR66,DISP=(NEW,CATLG,DELETE),
// UNIT=3390,
// SPACE=(CYL,(1,1),RLSE),DCB=(LRECL=32760,RECFM=VBS,BLKSIZE=0)
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
LSNAME(IFASMF.MULTSYS.STREAM1,OPTIONS(DUMP))
OUTDD(OUTDD1,TYPE(0:255),START(0000),END(2400))
DATE(2007011,2007011)
SID(SY1)
/*
//IFASMFDL JOB accounting information
//STEP EXEC PGM=IFASMFDL,REGION=0M
//OUTDD1 DD DSN=SMFREC.FEWTYPES,DISP=(NEW,CATLG,DELETE)
//OUTDD2 DD DSN=SMF.TYPE10.TYPE255,DISP=(NEW,CATLG,DELETE),DCB=BLKSIZE=32000
//OUTDD3 DD DSN=SMF.TYPE10.TYPE255B,DISP=(NEW,CATLG,DELETE), DCB = LRECL =32760
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
LSNAME (IFASMF.ACCNT1)
LSNAME (IFASMF.ACCNT2)
OUTDD (OUTDD1,TYPE(0,2,10,15:30,33(1)),START(0730),END(1850))
OUTDD (OUTDD2,TYPE(10:255),DATE(2006274,2006334))
OUTDD (OUTDD3,TYPE(10:255))
DATE (2006001,2006366)
SID (308A)
SID (308B)
/*
SMF DUMP PARAMETERS
END(2400) -- DEFAULT
START(0000) -- DEFAULT
SID(308B) -- SYSIN
SID(308A) -- SYSIN
DATE(2006001,2006366) -- SYSIN
OUTDD(OUTDD3,TYPE(10:255)) -- SYSIN
OUTDD(OUTDD2,DATE(2006274,2006334),TYPE(10:255)) -- SYSIN
OUTDD(OUTDD1,END(1850),START(0730),TYPE(0,2,10,15:30,33(1))) -- SYSIN
LSNAME(IFASMF.ACCNT2) -- SYSIN
LSNAME(IFASMF.ACCNT1) -- SYSIN
The following examples show sample jobs using the SMF log stream dump program to dump one log stream with the RELATIVEDATE option.
//DUMPX JOB MSGLEVEL=1
//STEP1 EXEC PGM=IFASMFDL,REGION=0M
//OUTDD1 DD DSN=BASCAR.LSDEFLT.RECOR66,DISP=(NEW,CATLG,DELETE),
// UNIT=3390,
// SPACE=(CYL,(1,1),RLSE),DCB=(LRECL=32760,RECFM=VBS,BLKSIZE=0)
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
LSNAME(IFASMF.MULTSYS.STREAM1,OPTIONS(DUMP))
OUTDD(OUTDD1,TYPE(0:255))
RELATIVEDATE (BYDAY,3,3)
SID(SY1)
/*
The SMF log stream dump program requires APF-authorization. Running the SMF log stream dump program, as shown in the above JCL examples, preserves the APF-authorization assigned to the SMF log stream dump program. Invoking the SMF log stream dump program in any way other than as shown above (for example, if you invoke the SMF log stream dump program from another program or invoke it as a TSO/E command), might cause it to lose its authorization.
For more information on APF-authorization, see z/OS MVS Programming: Authorized Assembler Services Guide. For more information on running authorized programs under TSO/E, see z/OS TSO/E Customization.
//DUMPX JOB MSGLEVEL=1
//STEP1 EXEC PGM=IFASMFDL,REGION=0M
//OUTDD1 DD DSN=BASCAR.LSDEFLT.RECOR66,DISP=(NEW,CATLG,DELETE),
// UNIT=3390,
// SPACE=(CYL,(1,1),RLSE),DCB=(LRECL=32760,RECFM=VBS,BLKSIZE=0)
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
LSNAME(IFASMF.MULTSYS.STREAM1,OPTIONS(DUMP))
OUTDD(OUTDD1,TYPE(0:255))
RELATIVEDATE (BYWEEK,3,2)
WEEKSTART (MON)
SID(SY1)
/*
//DUMPX JOB MSGLEVEL=1
//STEP1 EXEC PGM=IFASMFDL,REGION=0M
//OUTDD1 DD DSN=BASCAR.LSDEFLT.RECOR66,DISP=(NEW,CATLG,DELETE),
// UNIT=3390,
// SPACE=(CYL,(1,1),RLSE),DCB=(LRECL=32760,RECFM=VBS,BLKSIZE=0)
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
LSNAME(IFASMF.MULTSYS.STREAM1,OPTIONS(ARCHIVE))
OUTDD(OUTDD1,TYPE(0:255))
RELATIVEDATE (BYDAY,1,1)
/*
//RUNSMFDL JOB MSGLEVEL=(1,1),NOTIFY=&SYSUID
//SMFDMP EXEC PGM=IFASMFDL,REGION=0M
//DUMP04 DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LSNAME(IFASMF.SOME.LOGSTREAM,OPTIONS(DUMP))
OUTDD(DUMP04,TYPE(90,101))
FLDSTATS(1000)