dmsanchezr
ADSM.ORG Member
- Joined
- Oct 30, 2003
- Messages
- 9
- Reaction score
- 0
- Points
- 0
Hi there, I wonder if the following is possible in my command line interface: to write a SQL script that declares a variable, assigns any value to that variable and use this value for any purpose. For example:
declare myvar varchar
select myvar = volume_name from volumes where stgpool_name = 'BACKUPPOOL' and status = 'FULL'
update vol myvar access=readonly
I'm not sure this sintax will work on a TSM script, so if anyone can help me I will be grateful.
Greetings,
Diego.
declare myvar varchar
select myvar = volume_name from volumes where stgpool_name = 'BACKUPPOOL' and status = 'FULL'
update vol myvar access=readonly
I'm not sure this sintax will work on a TSM script, so if anyone can help me I will be grateful.
Greetings,
Diego.