Pat--You should also look at the CMS DIRMAP program. I usually use it
with the USER BACKUP file that DIRMAINT puts on it's 1DB disk so it's
what the system looked last night or whenever you have it generated. If
I want an up-to-the-minute file, I do a DIRM USER BACKUP and then run
DIRMAP. I think it will provide you with the information you want
without having to figure out how to cope with the asynchronous output
from the DIRMAINT DIRMAP command.
Jim
Bruce Hayden wrote:
Dirmaint has a programming interface for synchronous communication.
See Appendix D of the "Directory Maintenance Facility Commands
Reference" manual for more information on it. It uses WAKEUP under
the covers to wait for the response from the DIRMAINT service machine.
On Tue, Jun 17, 2008 at 4:16 PM, Patrick Spinler
<[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi:
Although I've done a bit of maintenance on our company's VM systems, I'm
a raw, brand spanking new VM script writer, so forgive me if I'm missing
the obvious. I'm sure I'll have many d'oh! moments.
I'd like to write some code to fetch dirmaint's disk allocation maps
(dirmaint dirmap and possibly dirmaint send extent control) and perform
some analysis on it. Specifically asking questions like how much free
dasd we have in various volume groups, how fragmented our dasd
allocation is, and the like.
My question is how may I, in a rexx exec, know when the results of a
dirmaint command like dirmap are complete, if it failed, when any result
is available in my reader, and what reader file# to receive?
Thanks, and apologies for the beginner question.
- -- Pat
--
Jim Bohnsack
Cornell University
(607) 255-1760
[EMAIL PROTECTED]