Your ATTACH command looks interesting.
How about:
do forever
"CP SLEEP 10 SEC"
"ATTACH" vdev "* 181"
if rc = 0 the leave
end
Admittedly, I have no idea from where you defined the "vdev" variable
from the DFSMSRM command.
-----Original Message-----
From: The IBM z/VM Operating System
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, January 22, 2008 7:06 PM
To: [email protected]
Subject: Re: how to wait for dfsmsrm command
Dennis,
here is the DFSMSRM command:
'dfsmsrm MOUNT VOLUME' label '(RDEV' tape_addr 'LIBNAME TAPLIB
READWR WAIT
ATTACH * VDEV 181'
but, the EXEC just plows on and i get
SPXTAPE CANCEL INITIATED ON VDEV 0181
i think because RMSMASTR has not finished mounting the tape.
the RC would be sufficient.
prg
Phillip Gramly
Systems Programmer
Communications Data Group
Champaign, IL
The IBM z/VM Operating System <[email protected]> wrote on
01/22/2008 05:53:50 PM:
> Phillip,
> Have you tried the WAIT option on DFSMSRM MOUNT? Do you need
to trap
> the response from DFSMSRM, or will the return code be
sufficient?
>
> Dennis
--------------------------------------------------------
This message w/attachments (message) may be privileged, confidential or
proprietary, and if you are not an intended recipient, please notify the
sender, do not use or share it and delete it. Unless specifically indicated,
this message is not an offer to sell or a solicitation of any investment
products or other financial product or service, an official confirmation of any
transaction, or an official statement of Merrill Lynch. Subject to applicable
law, Merrill Lynch may monitor, review and retain e-communications (EC)
traveling through its networks/systems. The laws of the country of each
sender/recipient may impact the handling of EC, and EC may be archived,
supervised and produced in countries other than the country in which you are
located. This message cannot be guaranteed to be secure or error-free. This
message is subject to terms available at the following link:
http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you
consent to the foregoing.
--------------------------------------------------------