Hi,
Is there a tool (apart from CA-MASTERCAT) that can give the last time VSAM cluster closed after being opened for update?
This information is currently available in the field SYSTEM-TIMESTAMP in LISTCAT ALL listing. But running LISTCAT on a multi volume (30 disks) catalog takes a very, very long time and produce hundreds of unnecessary lines.
Thanks,
Avihu Gershoni
Mainframe System Department Manager
Hilan Limited
8 Meitav Street
Tel Aviv
Israel
If you have Doctor D you can get a condensed listing showing the SYSTEM-TIMESTAMP. Let me know if you need sample jcl.
Zoltan
Click here to report this email as spam.
LISTCAT+ from McKinney will show a column for date last updated. It’s really cheap and produces a very condensed listing of you catalogs. That being said, it’s not fast since it relies on IDCAMS to create a report so it can condense it. DoctorD processes the catalog directly and is like lightning in comparison.
From: VSE-L [mailto:vse-l-bounces+kcorkery=live...@lists.lehigh.edu] On Behalf Of Avihu Gershoni
Sent: Thursday, December 29, 2016 8:29 AM
To: Vse-L (vs...@Lehigh.EDU)
On the z/VSE Web site, on the Downloads page under Customer and Vendor REXX samples, there is a ‘package’ from Rich Smrcina that includes a List Cat report. That could probably be used as a base, and modified to just give the last updated time for each file. Don’t know what the performance would be, if it calls IDCAMS ‘under the covers’, etc.
Dave
Hi,
I appreciate the replies I got, but most of them missed the point. I do not need a tool that will execute IDCAMS LISTCAT and then produce a condensed listing, or just extract the SYSTEM-TIMESTAMP information from it. I can (and did) write one myself using REXX. The problem is that LISTCAT that produce SYSTEM-TIMESTAMP for a multivolume (more than 30) catalog use a huge number of EXCPS and takes forever (hours). So I need something else that just extract this field.
In the past we had a product called QUICAT, which was part of FAVER (the predecessor to FAVER2), a report generator on VSAM catalog that was very fast. But that product was discontinued and morphed into separate product (MASTERCAT).
Avihu
SHOWCB?
STMST
System time stamp; the time and day (in microseconds) when the data or
index component was last closed. Bits 52 through 63 of the field are
unused.
Frank M. Ramaekers Jr.
From: VSE-L [mailto:vse-l-bounces+framaekers=ailif...@lists.lehigh.edu] On Behalf Of Avihu Gershoni
Sent: Sunday, January 01, 2017 1:30 AM
To: Vse-L (vs...@Lehigh.EDU)
Subject: Re: VSAM SYSTEM-TIMESTAMP information
Hi,
Hi all,
In the last couple of days I got tips and code from Jeffrey Barnard (Thanks Jeff) how to read the VSAM catalog directly using VSAM macros.
We have written a program that retrieve the SYSTEM-TIMESTAMP for all the files in the catalog and does it in a fraction of time it takes an equivalent IDCAMS LISTCAT .
Regarding the last replies I got:
Ron,
Looking at CBL site it looks very much like LISTCAT PLUS, so the question is do the product reads the catalog directly or do the product execute IDCAMS under the covers. Anyway, as I wrote above, we already have an answer written by ourselves. Thanks for the tip. We might look at the product in the future. BTW we once tried their other product (SELCOPY), a very nice product, but as I remember the current SORT products can do most of functions of this product.
Frank,
Yes, we already knew about SHOWCB and STMST, but you can use SHOWCB to get the STMST only on an open ACB. It means that I have to:
1) Run LISTCAT to get a list of all the file names in a catalog
2) Analyze the output from the LISTCAT and creates DLBLs for all the files:
3) Open each and every file in the catalog
That will certainly takes much longer than just a LISTCAT, not to mention a possible collision with other jobs that might try to do an OPEN REUSE on this file.
Avihu
You do not need DLBLs for ACB to access a catalog entry (see DSNAME).
Also, I believe you can access the catalog and retrieve the name of all of the clusters within.
No LISTCAT required.
Frank
From: VSE-L [mailto:vse-l-bounces+framaekers=ailif...@lists.lehigh.edu]
On Behalf Of Avihu Gershoni
Sent: Wednesday, January 4, 2017 1:17 AM
To: Vse-L (vs...@Lehigh.EDU)
Subject: Re: VSAM SYSTEM-TIMESTAMP information
Hi all,
Ken,
Thanks for the tip, but we are a LOGOUT/VSE installation.
Frank,
Thanks, I did not know about DSNAME, but I am afraid that it does not change the basic problem.
You have to open each and every file. It takes time, will issue error for every cluster defined but never did initial loading (open error 110), and might collide other jobs that might try to do an OPEN REUSE on this file.
We still need a LISTCAT to get the names, and instead of building DLBLs, we would put the names as input to the program.
It is true that we can read the catalog and get the names from there, but if we do that why settle with just the names? If I know how the catalog is built I could also get the timestamp.
That is exactly what we did with the generous help from Jeffrey Barnard.
Avihu