Previous Topic: Submit Batch Job

Next Topic: System Options

Running SMF in Batch

You can run batch SMF searches regularly by creating and then reusing the same JCL script without editing it. You might, for example, want to run a batch SMF search of the previous day’s SMF records overnight so that the report would be ready for you first thing the next morning.

To do this you create your JCL in your usual manner. When you get to the SMF search display of your choice, you enter symbolic date parameters in the date fields. You could enter &YDAY (today’s date minus one or yesterday) in the From: Date field and leave the To: Date field blank (blank defaults to the current date). Submit your JCL in your usual manner.

You can use the same JCL script, without editing, for the next daily report because the blank date field will always default to the current date and the &YDAY symbolic will always indicate the current date minus one or yesterday. You can run weekly batch reports at the end of your week by inserting &WEEK in the From: Date field.

The &YDAY and &WEEK symbolic variables described above must be defined in the SYMBPARM member of the central parameter file. For information about symbolic date parameters, see the Installation Guide.