|
Crystal
Assuming that you do want to keep all of the hyphens in the name , try the
following which uses the scan function.
Nat Wooding
data crystal;
name='DHI-523-Somatic-Cell-Graphs.pdf';
shortname=scan(name,1,'.');
put name=/shortname=;
run;
Crystal
Vierhout To: SAS-L@LISTSERV.UGA.EDU
<vierhout@UNITY cc:
.NCSU.EDU> Subject: Translate question
Sent by:
"SAS(r)
Discussion"
<SAS-L@LISTSERV
.UGA.EDU>
12/13/02 05:06
PM
Please respond
to Crystal
Vierhout
Hello,
I have a relatively simple questions this time.
I have around a thousand of these some If-then doesn't seem very practical.
I have: DHI-523-Somatic-Cell-Graphs.pdf
I need: DHI-523 Somatic Cell Graphs
Does anyone have an idea?
When I use translate to take off the ".pdf" it will talk all the p's, d's.
and f's out of the string.
Crystal
|