Re: SELECT statements and column widths

2013-04-17 Thread Prather, Wanda
ion. At all. -Original Message- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Prather, Wanda Sent: Thursday, April 18, 2013 12:25 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] SELECT statements and column widths Well that is odd - I don't know why 2n+1

Re: SELECT statements and column widths

2013-04-17 Thread Prather, Wanda
/sapmnt -Original Message- From: ADSM: Dist Stor Manager [mailto:ADSM-L@VM.MARIST.EDU] On Behalf Of Neil Schofield Sent: Wednesday, April 17, 2013 6:25 PM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] SELECT statements and column widths Wanda > You can also do: > select substr(files

Re: SELECT statements and column widths

2013-04-17 Thread Neil Schofield
Wanda > You can also do: > select substr(filespace_name,1,20) from filespaces > > and get only 20 chars back. Well that's interesting because it makes the problem worse! Using either CAST or SUBSTR truncate my data to N characters, but CAST gives me a column width of (N+1) for NODE_NAME and (2N+

Re: SELECT statements and column widths

2013-04-17 Thread Prather, Wanda
-L] SELECT statements and column widths Allen Thanks for the suggestion. The problem I've got is that the reports are the sort of ad-hoc SQL scripts that are run by administrators and operators from the admin client. While using '-comma' does reduce the column width, it is not

Re: SELECT statements and column widths

2013-04-17 Thread Thomas Denier
-Neil Schofield wrote: - >The fact that only the FILESPACE_NAME column is twice as wide as it >should be makes me wonder if it's a bug? It probably has something to do with the possible occurrence of Unicode characters outside the ASCII character set in filespace names. Thomas Denier Tho

Re: SELECT statements and column widths

2013-04-17 Thread Neil Schofield
t that only the FILESPACE_NAME column is twice as wide as it should be makes me wonder if it's a bug? Regards Neil From: "Allen S. Rout" To: ADSM: Dist Stor Manager Cc: Neil Schofield Date: 17/04/2013 14:59 Subject: Re: [ADSM-L] SELECT statements and column widths On 04/16/2013

Re: SELECT statements and column widths

2013-04-17 Thread Allen S. Rout
On 04/16/2013 04:25 PM, Neil Schofield wrote: > I'm in the throes of an upgrade from TSM Server 5.5 to 6.3 and have had a > bit of a problem re-writing some of our custom SQL scripts. I was wondering > if anyone can point out what I'm doing wrong. > I don't know from "do wrong"; but the way I appr

Re: SELECT statements and column widths

2013-04-16 Thread white jeff
some of our custom SQL scripts. I was wondering > if anyone can point out what I'm doing wrong. > > I understand that to get the select statements to return a table format > instead of a list format I need to use the cast function to restrict the > column width - this article expla

SELECT statements and column widths

2013-04-16 Thread Neil Schofield
I'm in the throes of an upgrade from TSM Server 5.5 to 6.3 and have had a bit of a problem re-writing some of our custom SQL scripts. I was wondering if anyone can point out what I'm doing wrong. I understand that to get the select statements to return a table format instead of a lis

Re: Select statements

2006-09-28 Thread Choudarapu, Ramakrishna (GTI)
-Original Message- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of LeBlanc, Patricia Sent: Thursday, September 28, 2006 9:43 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] Select statements But it wont give you the schedule time. -Original Message- From: ADSM

Re: Select statements

2006-09-28 Thread goc
'Completed') - or (status = 'Pending') or (status = 'Failed') or (status = 'Missed')) - order by scheduled_start,status,result i find this one useful :-) - Original Message - From: "LeBlanc, Patricia" <[EMAIL PROTECTED]> To: Sent: T

Re: Select statements

2006-09-28 Thread LeBlanc, Patricia
But it wont give you the schedule time. -Original Message- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Lee, Gary D. Sent: Thursday, September 28, 2006 9:41 AM To: ADSM-L@VM.MARIST.EDU Subject: Re: Select statements Why not just do a Q assoc * * That will give

Re: Select statements

2006-09-28 Thread Lee, Gary D.
:25 AM To: ADSM-L@VM.MARIST.EDU Subject: Select statements I need a select that will give me all of my client schedules and tell me who is associated with them and what time they run. Client_schedules and associations are the tables I need. Just can't get my select to work. Any ideas? Not

Select statements

2006-09-28 Thread LeBlanc, Patricia
I need a select that will give me all of my client schedules and tell me who is associated with them and what time they run. Client_schedules and associations are the tables I need. Just can't get my select to work. Any ideas? Not sure of the syntax on joining them. thanks

Re: [SPAM: 3.700] Re: [ADSM-L] Select Statements

2006-05-26 Thread Leigh Reed
large number of very useful select statements. They are mostly for monitoring/reporting purposes, but I found them useful in coming to terms with the constructs and syntax. Also good for getting to understand substr and cast. The actual raw text files with all the select commands are macro files

Re: Select Statements

2006-05-25 Thread Richard Sims
On May 25, 2006, at 4:08 PM, Laura Mastandrea wrote: Where do you get the syntax information for the select statement? i.e. substr , etc. I have a selection of SQL references near the bottom of http://people.bu.edu/rbs/ADSM.QuickFacts (seek "SQL:") where the following URL is most appropriate

Re: Select Statements

2006-05-25 Thread Laura Mastandrea
tor Manager" Subject Re: [ADSM-L] Select Statements Please respond to "ADSM: Dist Stor Manager" Roger I recently had to query the summary table for info regarding the database backups. My requirement was to report how long the da

Re: Select Statements

2006-05-25 Thread Roger Silva
essage- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Roger Silva Sent: 25 May 2006 17:24 To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] Select Statements Thank You Sandeep, I made changes since some of the fields didn't work for me, but this is what I have: SELECT DATE_

Re: Select Statements

2006-05-25 Thread Leigh Reed
ent: 25 May 2006 17:24 To: ADSM-L@VM.MARIST.EDU Subject: Re: [ADSM-L] Select Statements Thank You Sandeep, I made changes since some of the fields didn't work for me, but this is what I have: SELECT DATE_TIME AS DATE,TYPE,VOLUME_NAME,LOCATION FROM VOLHISTORY WHERE TYPE='BACKUPFULL'

Re: Select Statements

2006-05-25 Thread Richard Sims
On May 25, 2006, at 12:24 PM, Roger Silva wrote: Thank You Sandeep, I made changes since some of the fields didn't work for me, but this is what I have: SELECT DATE_TIME AS DATE,TYPE,VOLUME_NAME,LOCATION FROM VOLHISTORY WHERE TYPE='BACKUPFULL' But, what I would like to do is pull just the las

Re: Select Statements

2006-05-25 Thread Roger Silva
f Roger Silva Sent: Thursday, May 25, 2006 1:54 AM To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] Select Statements Hi, I am new to the this list and need some advice. I am trying to create a select statement I can run to monitor the Database Backups of our TSM Servers. I know there are fields in the S

Re: Select Statements

2006-05-25 Thread Sandeep Jain
- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Roger Silva Sent: Thursday, May 25, 2006 1:54 AM To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] Select Statements Hi, I am new to the this list and need some advice. I am trying to create a select statement I can run to m

Re: Select Statements

2006-05-25 Thread Leigh Reed
om summary where activity='FULL_DBBACKUP' HTH Leigh -Original Message- From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Roger Silva Sent: 24 May 2006 21:24 To: ADSM-L@VM.MARIST.EDU Subject: [ADSM-L] Select Statements Hi, I am new to the this list and nee

Select Statements

2006-05-24 Thread Roger Silva
Hi, I am new to the this list and need some advice. I am trying to create a select statement I can run to monitor the Database Backups of our TSM Servers. I know there are fields in the SUMMARY portion of the table that has Start Time, End Time, Activity, Entity, Volume Name and Successful fiel

Re: Using select statements

2004-06-30 Thread David E Ehresman
. David >>> [EMAIL PROTECTED] 6/30/2004 7:33:20 AM >>> Hi everyone I need some help. Was told by a colleague that you can run queries using SQL select statements to obtain information regarding a TSM server. I am trying to compose a select statement to display filespaces on

Antwort: Using select statements

2004-06-30 Thread Ralf Behrendt
778 39 15 Telefax:   +49 211 778 16 02 Handy:     +49 170 576 44 15 mailto:[EMAIL PROTECTED] "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> schrieb am 30.06.2004 13:33:20: > Hi everyone I need some help. > Was told by a colleague that you can run queries using SQL sele

Re: Using select statements

2004-06-30 Thread Henrik Wahlstedt
Hi, First, try to avoid select statements against backup table since it take some time to run... (and nobody mentioned it...) Second, look at http://people.bu.edu/rbs/ADSM.QuickFacts, there are alot of SQL links at the end. Third, try select node_name, filespace_name, substr(cast(backup_end as

Re: Antwort: Re: Using select statements

2004-06-30 Thread Stapleton, Mark
"Karin Dambacher" <[EMAIL PROTECTED]> >you can use the sample script FSNOBACKUP. Start it with "run >fsnobackup 3" >(3 = 3 days since they have not been completed). From: ADSM: Dist Stor Manager [mailto:[EMAIL PROTECTED] On Behalf Of Moses Show >Where can I locate this sample script Read your

Antwort: Re: Antwort: Re: Using select statements

2004-06-30 Thread Karin Dambacher
| | Kopie:(Blindkopie: Karin Dambacher/Emprise) |

Re: Antwort: Re: Using select statements

2004-06-30 Thread Moses Show
Where can I locate this sample script "Karin Dambacher" <[EMAIL PROTECTED]> Sent by: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> 30/06/2004 13:21 Please respond to "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subje

Antwort: Re: Using select statements

2004-06-30 Thread Karin Dambacher
| | Kopie:(Blindkopie: Karin Dambacher/Emprise)

Re: Using select statements

2004-06-30 Thread Moses Show
Hi, I forgot to include the select statement that I have written. It takes the following form. "select node_name, filespace_name, date(backup_date) from backups where ((days(backup_date) - days(current_date))) >=-3" == Thi

Using select statements

2004-06-30 Thread Moses Show
Hi everyone I need some help. Was told by a colleague that you can run queries using SQL select statements to obtain information regarding a TSM server. I am trying to compose a select statement to display filespaces on the server which have not been backed up in the last three days

Re: Suppress header and footer lines of select statements

2003-09-23 Thread Stephen E. Bacher
Bernd Schemmer <[EMAIL PROTECTED]> wrote: >I'm writing some scripts using dsmadmc with the select command to >retrieve data from the TSM database. At this time I've to use various >grep commands to remove the headers and footers from the dsmadmc output. > >Is it possible to suppress those headers

Re: Suppress header and footer lines of select statements

2003-09-16 Thread Alexander Verkooijen
r 2003 1:12 > To: [EMAIL PROTECTED] > Subject: Suppress header and footer lines of select statements > > > Hi, > > thanks to all that replied to my question regarding compression - the > cause of the problem was the double-compression by TSM and the drive. > > No

Suppress header and footer lines of select statements

2003-09-16 Thread Bernd Schemmer
Hi, thanks to all that replied to my question regarding compression - the cause of the problem was the double-compression by TSM and the drive. Now I've another question: I'm writing some scripts using dsmadmc with the select command to retrieve data from the TSM database. At this time I've to us

Re: Format of output file using select statements

2003-01-08 Thread Andy Carlson
nt: Tuesday, January 07, 2003 10:36 AM > To: [EMAIL PROTECTED] > Subject: Re: Format of output file using select statements > > > Is there an ODBC driver for Unix and Mysql? > > > Andy Carlson|\ _,,,---,,_ > Se

Re: Format of output file using select statements

2003-01-07 Thread Anthonijsz, Marcel M SITI-ITDSES31
If using perl, please consider using the TSM for PERL module from Jörg Nouvertné at: http://home.wtal.de/the_swordsman/ It returns your data in hashes, i.e. my $arrayref = $tsm->select("* from volumes"); foreach my $element (@$arrayref) { print "$element->{VOLUME_NAME}:\t $element->

Re: Format of output file using select statements

2003-01-07 Thread Bill Boyer
bject: Re: Format of output file using select statements Is there an ODBC driver for Unix and Mysql? Andy Carlson|\ _,,,---,,_ Senior Technical Specialist ZZZzz /,`.-'`'-. ;-;;,_ BJC Health Care

Re: Format of output file using select statements

2003-01-07 Thread Andrew Raibeck
anager" To: [EMAIL PROTECTED] cc: Subject:Re: Format of output file using select statements Is there an ODBC driver for Unix and Mysql? Andy Carlson|\ _,,,---,,_ Senior Technical Specialist

Re: Format of output file using select statements

2003-01-07 Thread Andrew Raibeck
ce. Matt Simpson <[EMAIL PROTECTED]> Sent by: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> 01/07/2003 06:27 Please respond to "ADSM: Dist Stor Manager" To: [EMAIL PROTECTED] cc: Subject:Re: Format of output file using select stateme

Re: Format of output file using select statements

2003-01-07 Thread shekhar Dhotre
up status\" $people \< /tmp/file2 .out" ); unlink $filename; unlink $tmpfilename; Matt Simpson <[EMAIL PROTECTED]> Sent by: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> 01/07/2003 08:27 AM Please respond to "ADSM: Dist Stor Manager" To: [

Re: Format of output file using select statements

2003-01-07 Thread Andy Carlson
Is there an ODBC driver for Unix and Mysql? Andy Carlson|\ _,,,---,,_ Senior Technical Specialist ZZZzz /,`.-'`'-. ;-;;,_ BJC Health Care|,4- ) )-,_. ,\ ( `'-' St. Louis, Missouri

Re: Format of output file using select statements

2003-01-07 Thread Peter Bjoern
>People here have suggested various ingenious combinations of >tail/awk/grep to strip out the garbage, and they work fairly well. >But that seems a little Rube Goldbergish, and I'm a little worried >that it might break if something in the output changes. I think I >already know the answer (No), bu

Re: Format of output file using select statements

2003-01-07 Thread Matt Simpson
At 23:33 -0600 1/6/03, Roger Deschner wrote: Neither of these formats, which were designed to be human-readable, are particularly easy for re-digestion by a computer program of any kind - especially when a field is split across lines. One of the challenges to machine-readable output from dsmadmc

Re: Format of output file using select statements

2003-01-07 Thread Richard Sims
>When I run this on a terminal, it returns a format like: > > DATE_TIME: 2003-01-01 16:30:00.00 > MSGNO: 402 > SEVERITY: I Select *wants* to produce the results in columnar format, and will be able to if the number of columns and their combined width fits into the window width. You can u

Re: Format of output file using select statements

2003-01-06 Thread Roger Deschner
he command line is your friend. >"Good enough" is the enemy of excellence. > > > > >Andy Carlson <[EMAIL PROTECTED]> >Sent by: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> >01/02/2003 15:21 >Please respond to "ADSM: Dist Stor Mana

Re: Format of output file using select statements

2003-01-06 Thread Andrew Raibeck
enemy of excellence. Andy Carlson <[EMAIL PROTECTED]> Sent by: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> 01/02/2003 15:21 Please respond to "ADSM: Dist Stor Manager" To: [EMAIL PROTECTED] cc: Subject: Format of output file using

Format of output file using select statements

2003-01-02 Thread Andy Carlson
I figure this has something to do with running in a terminal or not. I run the following command: /usr/local/bin/tsmua -outfile=xx run qact.rep When I run this on a terminal, it returns a format like: DATE_TIME: 2003-01-01 16:30:00.00 MSGNO: 402 SEVERITY: I MESSAGE: ANR0402I Sess

Re: Select statements syntax: The Answer

2002-12-20 Thread Seay, Paul
'.' || trim(cast(client_sublevel as char(2))) as "Level" from nodes order by 2,4,1 Paul D. Seay, Jr. Technical Specialist Naptheon Inc. 757-688-8180 -Original Message- From: Jolliff, Dale [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 1:13 PM To: [EM

Re: Select statements syntax

2002-12-18 Thread Jolliff, Dale
Thanks to you all, perfect answer! -Original Message- From: Cook, Dwight E [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 12:52 PM To: [EMAIL PROTECTED] Subject: Re: Select statements syntax Way to go Paul ! example run against the occupancy table... tsm: TSMSRV01

Re: Select statements syntax

2002-12-18 Thread Cook, Dwight E
0.03 0.000.00 6.146.12 0.240.24 294.77290.99 <... and on ...> Dwight -Original Message- From: Paul van Dongen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: RES: Select statements syntax Try something like this: Select cast(clien

RES: Select statements syntax

2002-12-18 Thread Paul van Dongen
-0353 -Mensagem original- De: Jolliff, Dale [mailto:[EMAIL PROTECTED]] Enviada em: Wednesday, December 18, 2002 15:13 Para: [EMAIL PROTECTED] Assunto: Select statements syntax I need to create a select statement that concatenates numeric fields as text -- I need to create a single text

Select statements syntax

2002-12-18 Thread Jolliff, Dale
I need to create a select statement that concatenates numeric fields as text -- I need to create a single text field from the four numeric fields in the NODES table into a single text field. Once I get the fields CAST as CHAR type, how do I concatenate them? I tried SUBSTR but it pukes on too man

Re: Select statements

2002-06-20 Thread Jolliff, Dale
t: Re: Select statements It's an SQL thing. SQL operations occur in a certain order. When you do a SELECT to query a table, the results you get back are actually another (temporary) table. "where" clauses are applied to columns in the original table "order" clauses are applie