ADSM-L

Re: Redirecting Commands in Scripts

2002-04-12 07:55:01
Subject: Re: Redirecting Commands in Scripts
From: "Mr. Lindsay Morris" <lmorris AT SERVERGRAPH DOT COM>
Date: Fri, 12 Apr 2002 07:55:13 -0400
In some clients, a space before the ">" makes a difference.
So try upd script test "QUERY SYSTEM> DSM.OUTPUT"


---------------------------------
Mr. Lindsay Morris
Mr. Lindsay Morris
CEO, Servergraph
www.servergraph.com
859-253-8000 ofc
425-988-8478 fax


> -----Original Message-----
> From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU]On Behalf Of
> Gerhard Wolkerstorfer
> Sent: Friday, April 12, 2002 6:26 AM
> To: ADSM-L AT VM.MARIST DOT EDU
> Subject: Redirecting Commands in Scripts
>
>
> Hello all,
> I found questions like this in the archives, but no answers......
>
> One more try =>
> I want to run a script, where one line should look like this:
> QUERY SYSTEM > DSM.OUTPUT.QSYSTEM
> where DSM.OUTPUT.QSYSTEM is a S390 Filename I want to take to the OFFSITE
> Location.
> (This Command works great on the command line, but I want to have it in a
> script!)
>
> However - I tried to do it like this:
> def script test desc='Test'
> upd script test "QUERY SYSTEM > DSM.OUTPUT"
>
> Result:
> ANR1454I DEFINE SCRIPT: Command script TEST defined.
> ANR2002E Missing closing quote character.
> ANS8001I Return code 3.
>
> Any hints how to route an output to a file in a script  ?
> I guess, the problem is, that TSM wants to direct the Output of
> the Update Stmt
> to a file - and when doing this, one quote is missing, of course
>
> We are running TSM 3.7.5 on S390 (I know, not supported, but I
> guess this should
> work on all versions)
>
> Regards
> Gerhard Wolkerstorfer
>