How about putting the output file as part of the dsmadmc command: dsmadmc -id=admin -pa=xxxx -outfile=myoutput -tab select * from processes
regards, -=Dave=- -- +44 (0)20 7608 7140 Any time things appear to be going better, you have overlooked something. -----Original Message----- From: Andy Raibeck [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 2:49 PM To: [EMAIL PROTECTED] Subject: Re: Redirect Output in Windows dsmadmc That one is a little tougher. The problem is that the Windows command processor doesn't pass the '>' symbol to the program (to any program, not just TSM). You can verify this for yourself by compiling this simple C program: ======================================== /* args.c */ #include <stdio.h> int main(int argc, char *argv[]) { int i = 0; for (i = 0; i < argc; i++) printf("argv[%d] = %s\n", i, argv[i]); return 0; } ======================================== Example output: ======================================== C:\MyPrograms\args>args select * from nodes where max_mp_allowed>1 C:\MyPrograms\args>type 1 argv[0] = args argv[1] = select argv[2] = * argv[3] = from argv[4] = nodes argv[5] = where argv[6] = max_mp_allowed ======================================== As you can see, the program never even sees the > symbol, so it can't possibly process it. One thing I tried that seems to work, is to embed the entire admin command in quotes, like this: dsmadmc -id=admin -pa=xxxxx "select * from nodes where max_mp_allowed>1" and to redirect, you can do this: dsmadmc -id=admin -pa=xxxxx "select * from nodes where max_mp_allowed>1" > sel.out Regards, Andy Andy Raibeck IBM Software Group Tivoli Storage Manager Client Development Internal Notes e-mail: Andrew Raibeck/Tucson/IBM@IBMUS Internet e-mail: [EMAIL PROTECTED] (change eye to i to reply) The only dumb question is the one that goes unasked. The command line is your friend. "Good enough" is the enemy of excellence. Richard Cowen <[EMAIL PROTECTED]> Sent by: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> 07/25/2002 05:00 Please respond to "ADSM: Dist Stor Manager" To: [EMAIL PROTECTED] cc: Subject: Re: Redirect Output in Windows dsmadmc When will we be able to do this with a select statement and use a "greater than" symbol under windows? -----Original Message----- From: Andy Raibeck [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 8:16 PM To: [EMAIL PROTECTED] Subject: Re: Redirect Output in Windows dsmadmc Consider it noted. Don't know if this will help, but if the Admin client is done in batch mode, then the redirection will work: dsmadmc -id=adminid -pa=xxxxx q se > "c:\test dir\qse.txt" Regards, Andy ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs. www.guardianit.com The information contained in this email is confidential and intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. Guardian iT Group will accept no responsibility or liability in respect to this email other than to the addressee. If you have received this communication in error, please notify us immediately via email: [EMAIL PROTECTED] ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs.