Thanks. I'll give it a try.

On Sat, Feb 21, 2015 at 10:48 PM, Alan Altmark <[email protected]>
wrote:

> On Saturday, 02/21/2015 at 10:08 EST, Cameron Seay <[email protected]>
> wrote:
> > Is there a way I can label multiple dasd volumes at once?  We are
> labeling
> > the volumes to match our guest names as we have a script that works this
> > way.  I am able to format multiple volumes using cpformat, but I do not
> see
> > a companion command to label. CPFMTXA doesn't seem to do multiple
> volumes.
> > This would save me a heck of a lot of typing.
>
> The trick here is to write a little EXEC that has a list of userids and
> matching RDEV(s).  Have the exec repeatedly invoke CPFMTXA.
>
> Let's say you have SOME FILE:
>
> 1125 CAMERON
> 1126 ALAN
> 1127 BRUCE
>
>
> LITTLE EXEC:
> /* */
> "PIPE < SOME FILE * | stem fmt."
>
> do i = 1 to fmt.0
>     parse var fmt.i rdev userid .
>     "CP ATTACH" rdev "* 6666"
>     "EXEC CPFMTXA 666" userid "( LABEL"
>     if rc <> 0 then exit rc
>     "CP DETACH 6666"
> end
>
> But when you format a volume, you also put a label on it, so you could do
> it then instead.
>
> Alan Altmark
>
> Senior Managing z/VM and Linux Consultant
> Lab Services System z Delivery Practice
> IBM Systems & Technology Group
> ibm.com/systems/services/labservices
> office: 607.429.3323
> mobile; 607.321.7556
> [email protected]
> IBM Endicott
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
>



--
Cameron Seay, Ph.D.
Department of Computer Systems Technology
School of Technology
NC A & T State University
Greensboro, NC
336 334 7717 x2251

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to