Page 1 of 1

sampling

Posted: Fri Jul 02, 2010 10:10 am
by mark
I need to generate a number of samples in a dataset using the 6 and 7th characters from an alpha series with 60K records. Here is an example data point:

02101OP0004

I've tried tyo sample the set using various combinations of wildcards to not avail - I get "sample has no observations". Here are example sample statements.

if contractum="?????OP????"
if contractnum="*OP*"

Help please!

Re: sampling

Posted: Fri Jul 02, 2010 10:22 am
by EViews Gareth
if @mid(contractum,6,2) = "OP"

Re: sampling

Posted: Fri Jul 02, 2010 11:04 am
by mark
thanks