Results 1 to 4 of 4
-
12-13-2012, 09:26 AM #1Member
- Join Date
- Feb 2011
- Posts
- 300
- Thanks
- 14
- Thanked 0 Times in 0 Posts
select statement output format in TSM6.3.2
Hi all,
Recently migrated to TSM 6.3.2 and i find it little different when it comes to output format of select statements from TSM 5.5
Below is the output format of a select statement in V6.3.2
but i want those two seleted columns side by side as below but not one after the otherCode:select volume_name, stgpool_name from volumes where DEVCLASS_NAME='TEST' VOLUME_NAME: T05126 STGPOOL_NAME: ORACLE
This is how it used to be in TSM5.5, i know things have changed with v6 but wondeing if i can customize the select statments ?Code:VOLUME_NAME STGPOOL_NAME T05126 ORACLE
Thanks in advance!
-
12-13-2012, 11:41 AM #2Senior Member
- Join Date
- Jul 2008
- Location
- Birmingham, UK
- Posts
- 529
- Thanks
- 0
- Thanked 4 Times in 4 Posts
Hi
Try this
select rpad(volume_name,9) as volume, rpad(stgpool_name,13) as stgpool from volumes where DEVCLASS_NAME='TEST' order by stgpool
Hope that helps
-
12-13-2012, 12:01 PM #3Member
- Join Date
- Feb 2011
- Posts
- 300
- Thanks
- 14
- Thanked 0 Times in 0 Posts
thank you ChrisRees,
Can you please expalin what are rpad and numbers like 9 and 13 etc in the query ?
-
12-13-2012, 12:03 PM #4Senior Member
- Join Date
- Jul 2008
- Location
- Birmingham, UK
- Posts
- 529
- Thanks
- 0
- Thanked 4 Times in 4 Posts
Hi
I came across rpad in this thread
http://adsm.org/forum/showthread.php...highlight=rpad
Cheers
Similar Threads
-
Need help converting Select statement to useable TSM 6.2 format
By pbrukner in forum ScriptingReplies: 4Last Post: 08-16-2012, 03:44 PM -
use output of select statement in a script
By mirreke in forum ScriptingReplies: 2Last Post: 04-18-2011, 02:30 PM -
Need output of select statement in unicode format
By raydifede in forum ScriptingReplies: 1Last Post: 04-24-2008, 03:06 AM -
text format - select statement output
By friesguy in forum ScriptingReplies: 5Last Post: 10-15-2006, 10:09 PM -
create files based on the output of select statement
By friesguy in forum ScriptingReplies: 3Last Post: 10-08-2006, 05:36 PM


Reply With Quote