Here is something I learned with the client under aix when running into
redirect problems...
Within a ksh script, to get dsmc to NOT treat the ">" as part of the
parameters I had to stick an "eval" at the front of my line... when the
interpreter interpreted the line, it broke off all my redirect stuff
properly and all was OK then.

eval nohup dsmc retrieve
/export/data2/oracle/oratccda/ewks_aats02_oratccda.dbf
/d102/oracle/ORATCCDA/ewks_aats02_oratccda.dbf -serv=houdsm02-hosd207f
-replace=yes -fromdate=08/21/1999 -pass=xxxx >2.files.out 2>&1 &

so inside your script you are doing something like
#!/bin/ksh
...
dsmadmc -id=blah -pass=xxx query drmedia .....    > some_file
...
exit

try making the line
eval dsmadmc -id=blah -pass=xxx query drmedia .....    > some_file


Dwight





-----Original Message-----
From: Gill, Geoffrey L. [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 8:59 AM
To: [EMAIL PROTECTED]
Subject: redirecting output


Hello all,

I am trying to redirect the output of a server command script to a file and
have been unable to do so. I'm getting: ANR2020E QUERY DRMEDIA: Invalid
parameter - > and ANR2020E QUERY DRMEDIA: Invalid parameter - |, depending
on which character I try. This is in the help file if you "help 12" so why
doesn't it work?

I am on AIX 4.3.3 TSM 4.1.2.0

Thanks for the help,

Geoff Gill
TSM Administrator
NT Systems Support Engineer
SAIC
E-Mail:   [EMAIL PROTECTED]
Phone:  (858) 826-4062
Pager:   (888) 997-9614

Reply via email to