select strings containing "a"

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

minijim
Posts: 14
Joined: Sun Dec 20, 2009 10:01 am

select strings containing "a"

Postby minijim » Fri Feb 12, 2010 6:41 am

Hi,

I'd like to know if there is a command to select all the observations from an alpha series containing, for example, "a".
I've tried, unsuccessfully, the following :
smpl @all if name="*a*"

Thanks in advance

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12543
Joined: Tue Sep 16, 2008 5:38 pm

Re: select strings containing "a"

Postby EViews Gareth » Fri Feb 12, 2010 9:07 am

smpl if @instr(name,"a")>0
Follow us on Twitter @IHSEViews

minijim
Posts: 14
Joined: Sun Dec 20, 2009 10:01 am

Re: select strings containing "a"

Postby minijim » Fri Feb 12, 2010 9:19 am

Thanks a lot :D


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 8 guests