|
Graeme:
no_dashes = length(filename) - length(compress(filename));
-----Original Message-----
From: Graeme Kirton [mailto:gkirton@FILCS.COM]
Sent: May 25, 2001 9:55 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Count the number of " - "
Can anyone tell me if there's a quick way to count the
number of " - " in the
following string. Im trying to do an error check on the
filename. EG if the
number of " - " doesn't equal five then STOP.
The names of the filenames do change.
QSM001A-01-0007-b1-50-PRECON.csv
Cheers
Graeme
____________________________________________________________________________
________________________________
Disclaimer
This email may contain privileged/confidential information
and/or copyright
material. It is intended only for the use of the person(s)
to whom it is
addressed and any unauthorised use may be unlawful. If you
receive this email
by mistake, please advise the sender immediately by using
the reply facility on
your email software and delete the material from your
computer.
Opinions, conclusions and other information in this email
that do not relate to
the official business of this organisation shall be
understood as neither given
nor endorsed by it.
If this message forms part of a quotation, the quotation is
an invitation to
treat only. No contract subsists until Filtronic Plc (or
its subsidiary
companies) accepts your order. Acceptance of your order is
made subject to our
standard Terms and Conditions.
Website Address http://www.filtronic.com
|