| Date: | Thu, 8 Apr 2004 11:57:24 +0100 |
| Reply-To: | Robert Burbidge <RBurbidge@PHD.CO.UK> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Robert Burbidge <RBurbidge@PHD.CO.UK> |
| Subject: | Re: Copying documents using SAS |
| Content-Type: | text/plain; charset="iso-8859-1" |
Further to Charles' comments:
"However, when executing a OS command such as "copy", you have an embedded
blank in the path "\Fast Start\" which will cause that x "copy" to fail.
I think but not sure, you will need to convert that space to "%20", or
better yet, if you can rename your directories NOT TO HAVE EMBEDDED blanks
as part of their named paths."
(I use 8.02 on XP.) This doesn't work:
systask command 'copy e:\My SAS Files\New Text Document.txt e:\My SAS Files\copy of New Text Document.txt';
This does:
systask command 'copy e:\MySASF~1\NewTex~1.txt e:\MySASF~1\copy_NTD.txt';
As all long path and files names have a one-one association with a short path and filename. Paths are 8 characters, filenames are 8.3 (just like the old days ;-) )
However, what I tend to do is use a DATA step to write a BAT file, and put the copy statements in that. In this case, embedded spaces and such in the filenames are fine. Then use systask command to call the BAT file.
Rgds,
Robert
***********************************************************************************
Privileged/Confidential Information may be contained in this message.
If you are not the addressee indicated in the message (or responsible
for the delivery of the message to such person), you may not copy
or deliver this message to anyone.
In such case, you should destroy this message and kindly notify the
sender by reply Email. Please advise immediately if you or your employer
does not consent to Internet Email for messages of this kind.
Opinions, conclusions and other information in this message that do not
relate to the official business of PHD Limited or its
Group/Associated Companies shall be understood as neither given nor
endorsed by them.
PHD Limited
Registered in England.
Registered Number: 2423952
Registered Office: The Telephone Exchange, 5 North Crescent, Chenies Street, London, WC1E 7PH
Telephone: 020 7446 0555
Fax: 020 7446 7100
E-Mail: postmaster@phd.co.uk
***********************************************************************************
|