Check this function:
strmatch()
Caveman
醫事室明傑ntu wrote:
> hi :
> i have a probum on processing sting data
> if i have more of condition
> for example
> in sql query i just wirte
> col like any ('ax%','bcd%','Def%',........)
> in stata
> just can do thant ?
> or just like thant
> substr(col1,1,2) ='ax' | substr(col1,1,3)='bcd' |......
>
> because that so long need to type
>
>
>
>
> 醫療事務室 林明傑
> tel 2715
> mail:[email protected]
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/