ADSM-L

Re: Way to do comparison in a TSM script?

2003-11-13 16:48:29
Subject: Re: Way to do comparison in a TSM script?
From: Paul Zarnowski <psz1 AT CORNELL DOT EDU>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 13 Nov 2003 16:47:38 -0500
Thanks Bill, and everyone else.   This is what I was looking for.  I've
written lots of host-based scripts, but was trying to do something simple
in a TSM script.  I'll give this a try.

At 04:08 PM 11/13/2003 -0500, you wrote:
Try:

select count(*) from sessions having count(*)<5
if(RC_NOTFOUND) goto notfound
exit
notfound: do something here...
exit


You can even add a WHERE clause to further refine the type of sessions
you're looking to 'count'.

Bill Boyer
DSS, Inc.

-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU]On Behalf Of
Paul Zarnowski
Sent: Thursday, November 13, 2003 3:30 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Way to do comparison in a TSM script?


Is there a way to do a comparison in a TSM script?
Specifically, I want to run code conditionally based on how many sessions
are active (for example).  I don't see an immediately obvious way to do
this.

Thanks.
..Paul


--
Paul Zarnowski                         Ph: 607-255-4757
719 Rhodes Hall, Cornell University    Fx: 607-255-8521
Ithaca, NY 14853-3801                  Em: psz1 AT cornell DOT edu

<Prev in Thread] Current Thread [Next in Thread>