How to process already created Monthly SMF Files as the History input
search cancel

How to process already created Monthly SMF Files as the History input

book

Article ID: 75039

calendar_today

Updated On:

Products

JARS JARS Resource Accounting JARS SMF Director

Issue/Introduction

How to process already created Monthly SMF Files as the History input.
 

We have need from time to time to read already created Monthly SMF files that themselves were created by the Extract. 
What we'd like to do is use these Monthly files as input and perhaps further create an extracted file.

How can we best accomplish that?

Environment

Running SMF Director and have already created SMF data sets.

Resolution

This is something easily done with SMF Director.
If you have the already created SMF data sets, you can use the SOURCE statement to read and process these files as if they were SMF Director History files in the archive.
To do this, just allocate the data sets to a ddname you choose, and then before the EXTRACT statement, put in a "SOURCE HISTORY(ddname) ." control statement.

Rather than loading data from your SMF history archive, SMF Director will read through the allocated data set. 

An example of code: 

//EXTAGAIN EXEC PGM=SMFD,REGION=0M 
//STEPLIB DD DISP=SHR,DSN=your.smfdirector.CASFLOAD 
//SYSPRINT DD SYSOUT=* 
//SCDS DD DISP=SHR,DSN=your.smfdirector.SCDS 
//SMFIN DD DISP=SHR,DSN=input.smf.data01 
// DD DISP=SHR,DSN=input.smf.data02 (However many you need) 
//SMFOUT DD DSN=output.smf.data, ... (add in your needed allocation) 
//SYSIN DD * 
SOURCE HISTORY(SMFIN) . 
EXTRACT SELECT(80) FROM(mmddyy hhmm) TO(mmddyy hhmm) TODD(SMFOUT). 
/*