Page 1 of 1

How to find out the list of jobs with the file name using tso command?

Posted: Fri Feb 02, 2024 7:33 pm
by Akshya Chopra
Hi Everyone,

Is there a TSO command using which, we can find out the list of jobs with the file name?

Re: How to find out the list of jobs with the file name using tso command?

Posted: Sat Feb 03, 2024 12:26 am
by Robert Sample
There is no relationship between job names and file (data set) names. A single job may reference hundreds or thousands of data sets and inversely a single data set can be used by thousands of jobs. So there is not a TSO command to do what you want.

Re: How to find out the list of jobs with the file name using tso command?

Posted: Wed Mar 27, 2024 9:35 pm
by Akshya Chopra
Thanks Robert. So how can we do that? Please guide me on that.

Re: How to find out the list of jobs with the file name using tso command?

Posted: Fri Mar 29, 2024 1:53 am
by Robert Sample
If your site uses a scheduler, investigate what an be done through the scheduler.  If your site submits through a PDS or PDSE, use ISPF option 3.14 to search the PDS / PDSE.  If neither of these is true, resign yourself to looking at each of the many thousands of job libraries that exist at your site to find the data set or data sets.

If you have MXG or one of its competitors, you can summarize data from it to get what you want.

Or you can use the SMF records to identify data sets and their associated job(s).  Record types 14 and 15 are generated for input and output data sets respectively.  However, be aware that you need a LOT of system knowledge to be able to process SMF data -- a lot of it is in binary and much of the rest is coded (for example, some of the times in the SMF records are stored as the number of seconds -- or microseconds -- since midnight while others are stored at 8-byte numbers that represent the number of clock intervals of 1.048576 microseconds since January 1, 1900).  The records themselves are stored as VBS (variable, blocked, spanned) format.

Re: How to find out the list of jobs with the file name using tso command?

Posted: Wed Apr 10, 2024 11:04 am
by Akshya Chopra
Thanks. I have been using ISPF 3.14 but that's very time consuming. But there is a scheduling team also, I reached them too.