Ling,

Have you tried:

x  '"dir &path\&folder > &pgmpath\list.txt"';

Regards,

Wei



Ling Yun Chen <lchen@ALGXMAIL.COM>
Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>

05/02/02 09:49 AM
Please respond to lchen

       
        To:        SAS-L@LISTSERV.UGA.EDU
        cc:        
        Subject:        X Command: blanks in directory?



Hi all, I searched the archive but couldn't find anything on the topic.
The question is the following:

I need to execute the following command in SAS V6.12 under Windows:

x "dir &path\&folder > &pgmpath\list.txt";
However, both &path and &folder have blanks in them.  How can I rewrite the
X command so that DOS will understand me?
Thanks in advance for any help.
Ling


Tel:  (617)965-8000 x26
Fax: (617)965-8014