Re: Way to do comparison in a TSM script?
2003-11-13 16:48:29
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
|
|
|