LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page