| Date: | Wed, 26 Mar 2003 10:37:09 -0500 |
| Reply-To: | "L. Bertolini" <bertolini.1@OSU.EDU> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "L. Bertolini" <bertolini.1@OSU.EDU> |
| Organization: | Ohio State University |
| Subject: | Re: Striping file name from long dir name |
| Content-Type: | text/plain; charset=us-ascii; format=flowed |
8 data _null_;
9 length filename $64;
10 pathname = 'C:\masterdir\slavedir\Wollo.doc';
11 filename = scan(pathname,-1,'\');
12 put filename=;
13 stop;
14 run;
filename=Wollo.doc
Action Man wrote:
> Striping file name
>
> When a user inter a file name it looks like the following:
> "C:\masterdir\slavedir\Wollo.doc".
>
> I need to strip all things from "C:\masterdir\slavedir\Wollo.doc" have
> Wollo.doc as a file name. How do I do that using SAS.
>
> I want Variable FileName = Wollo.doc not
> "C:\masterdir\slavedir\Wollo.doc".
>
> Thank you in advance.
>
> Wollo
>
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|