Wow, you sure got a lot of answers and very quickly.

As others have stated, the TMC is simply a flat file. Basically 2 type of
records (volume and DSNB's for secondary files) plus a few control records.
The volume records are mapped by the old TMMTMREC macro and the DSNB's by
the TMMDSNB macro (both source distributed). If you want to read the
information for a specific volume programmatically, I would recommend the
interface program CTSQSTS (on CA 1 systems, it is an alias of TMSQSTS and on
TLMS systems it is an alias of TLMSQSTS). The record returned is what we
refer to as the common EARL record (for the most part, a common mapping used
by both CA 1 and TLMS for EARL reporting). For an example of how to pass it
a volser and get back the output I would recommend you look in the CA 1
sample source library for the CTSUXENT sample exit (this is the CA 1
supplied sample exit for the OAM CBRUXENT exit). It calls CTSQSTS to obtain
the common record format to identify the TRTCH and DENSITY values so that a
physical volume being re-inserted into an IBM robot will be assigned the
correct MEDIA type. Of course, you will be able to see all the volume
information (creation information, last use information, user data,
whatever).

If you are looking for information on secondary files it does get more
complicated. You will then need to use the TMMGETVL and TMMGETDB macros.
Again, if you look at the sample exits supplied you will get a better
understanding of them as well.

And as others have stated, if you are looking for something more in terms of
batch processing I would always recommend CA Earl first and then TMSGRW
(which is a little basic but might suffice) and of course the no-cost CA
Vantage if you want a GUI interface to product nice customized reports that
can be converted into excel spreadsheets or charts and graphs for management
(remember, managers need pictures to understand anything). 

Have fun, and don't hesitate to contact me directly if you have any
questions.

Russell Witt
CA 1 Principal Architect 

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Hardee, Chuck
Sent: Thursday, May 21, 2015 10:39 AM
To: [email protected]
Subject: CA-1 programming example

Has anyone out there written a program to inquire against a CA-1 tape
library?
I'm looking for tips and/or samples of how to do it.
I have a list of DSNs and their (tape) VOLSERs but I'd like to get more
information about the DSN/VOLSER from CA-1.

Anything shareable that someone might have would be greatly appreciated.

Thanks,
Chuck

Charles (Chuck) Hardee
Senior Systems Engineer/Database Administration EAS Information Technology

Thermo Fisher Scientific
300 Industry Drive | Pittsburgh, PA 15275 Phone +1 (724) 517-2633 | Mobile
+1 (412) 877-2809 | FAX: +1 (412) 490-9230 [email protected] |
www.thermofisher.com

WORLDWIDE CONFIDENTIALITY NOTE: Dissemination, distribution or copying of
this e-mail or the information herein by anyone other than the intended
recipient, or an employee or agent of a system responsible for delivering
the message to the intended recipient, is prohibited. If you are not the
intended recipient, please inform the sender and delete all copies.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to