Re: SQL Formatting on AIX scripts - SQLDISPLAYMODE

2001-12-03 Thread Bill Colwell
Joe - you can get shorter headers by selecting functions on the columns, for example - select left(volume_name,6) as volume, left(stgpool_name,10) as stgpool - from volumes - where stgpool_name = '9840APOOL' - and status = 'FULL' - and date(last_write_date) >= current date - 7 days

Re: SQL Formatting on AIX scripts - SQLDISPLAYMODE

2001-12-03 Thread Joe Faracchio
om volumes. > The parameter in quotes will be sent as the header, with that width. > Hope this helps. > Denny P. > > -Original Message- > From: Andrew Raibeck [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 03, 2001 9:26 AM > To: [EMAIL PROTECTED] > S

Re: SQL Formatting on AIX scripts - SQLDISPLAYMODE

2001-12-03 Thread Poehlman, James
e sent as the header, with that width. Hope this helps. Denny P. -Original Message- From: Andrew Raibeck [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 9:26 AM To: [EMAIL PROTECTED] Subject: Re: SQL Formatting on AIX scripts - SQLDISPLAYMODE The SET SQLDISPLAYMODE command only

Re: SQL Formatting on AIX scripts - SQLDISPLAYMODE

2001-12-03 Thread Prather, Wanda
Todd, here's another way around the problem: Add -commadelimited as a parm after -pa=. That causes the output to come out in a wide string, with the fields separated by commas, no wrapping. Since you are doing this from AIX, it's very easy to handle that output in the shell script. You could,

Re: SQL Formatting on AIX scripts - SQLDISPLAYMODE

2001-12-03 Thread Andrew Raibeck
The SET SQLDISPLAYMODE command only "holds" for a given session. Thus when the admin session from which you issued that command ends, the next admin session that issues the SELECT command uses the default SQLDISPLAYMODE. How about combining your SET SQLDISPLAYMODE and SELECT commands into a singl

Re: SQL Formatting on AIX scripts - SQLDISPLAYMODE

2001-12-03 Thread Ilja G. Coolen
Well Todd, This is the TSM default. In order to get the output in the required format you need to use the -outfile option. This way you will get the output as if you are at the admin command line. Like this: dsmadmc -id= -pa= -outfile= "your select goes here" Ilja G. Coolen