How to use search CAPLSCAN to find started tasks and job output in spooled syslog
search cancel

How to use search CAPLSCAN to find started tasks and job output in spooled syslog

book

Article ID: 204903

calendar_today

Updated On:

Products

SMR

Issue/Introduction

Attempting to search for jobs and started tasks and want to know what to look for in batch search and panel search.

Environment

SMR any level

z/OS any level

Resolution

The best place to start is the SMR User Guide chapter 4 in the section titled Reviewing SMR Search Options. Here you will find sample panels and control statement parameters that can be used in the CAPLSCAN proc provided in the SMR proclib. (hlq.CAIPROC(CAPLSCAN)

In the panels you have the same options as in the batch execution. A simple control statement sample for a CAPLSCAN batch search is as follows:

//SMRIN     DD *                             
FUNCTION SDATE=20.344;STIME=06.00;STC=0006157                          --> This will look for a start dat of the 344th day of 2020 with a start time of 6am and search for ONLY started tasks

                                                                                                                            that match the numeric value of 0006157 (note that SMR does handle search criteria for large JES job and STC                                                                                                                                    numbers)

FUNCTION SDATE=20.344;STIME=06.00;JOB=0006204                          --> this will search the same syslog but only search for JOB numbers and not STCs or TSUs.