Date: Mon, 20 Aug 2007 10:29:00 +0200
Reply-To: SAS-L List <sas-l@listserv.uga.edu>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robert Bardos <bardos2@ANSYS.CH>
Subject: Re: file move
In-Reply-To: <1187596122.480082.22090@50g2000hsm.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"
> Von: vince dubois
> Gesendet: Montag, 20. August 2007 09:49
>
> Hi everyone;
> here is the thing:
> when one of my variable is empty, i have to move the file where i have
> the value of this variable in another folder.
> Have you an idea ?
> Thanks
>
>
Vince,
first, I'm not really sure I understand what you want.
Is it
a) when variable x in dataset y is empty then move y (a SAS dataset? a raw
data file?) to another folder
b) when variable x in dataset y is empty then move z (a SAS dataset? a raw
data file? where z contains the value which is missing in y) to another
folder
Anyway, it is one of those questions where knowing the OS (operating
system) is important.
If you know how to determine that "the variable is empty" then the rest of
your task can be achieved by writing both the needed statements (which may
include "call system" statements) to the stack (by means of 'call
execute').
Does this get you going?
Robert