Login  Register

compute new variable from string text

Posted by mattwro on Feb 15, 2011; 7:21pm
URL: http://spssx-discussion.165.s1.nabble.com/compute-new-variable-from-string-text-tp3386478.html

I'm trying to create a new variable based on the contents of a string. I have e-mail addresses for a set of survey respondents, and I want to create a variable that will categorize the respondents as either "internal" or "external". Internal respondents would be those whose e-mail addresses contain my company name, for example "jsmith@abc.com" would be internal while any e-mail addresses that do not contain "abc.com" would be external. Any ideas? Thanks!