Awarded

SPSS Base Syntax

Hi there,

I have a dataset in spss which consists of string and numeric variables. I want to recode all values '999' to SYSMIS. See the following simple example:

************

Simple Source Data:

************

Var1 Var2

4 comment 1

999 comment 2

3 999

2 222

****************

Target Data should look like:

****************

Var1 Var2

4 comment 1..

. comment 2..

3 .

1 222

I tried this one:

DATASET ACTIVATE DataSet3.

RECODE ALL (999=SYSMIS) .

execute.

But then it i get errormessage:

>On the RECODE command, all the variables to be recoded must be of the same

>type. That is, all must be string variables, or all must be numeric

>variables.

I need a syntax that recodes string and numeric variables mixed in one dataset.

Can anyone help me with this issue?

Skills: Algorithm, Statistics

See more: recode spss, variables recoded must, syntax spss recode, recode numeric variables sysmis spss, recode command variables recoded must, spss sysmis string, spss recode string, string algorithm, statistics algorithm, simple algorithm example, example algorithm, algorithm string, algorithm statistics, algorithm help, algorithm example, spss base syntax, recode spss syntax, syntax, spss data, recode, numeric, base one, recoded, spss mixed, mixed spss

About the Employer:
( 0 reviews ) 8047, Switzerland

Project ID: #640480

3 freelancers are bidding on average $30 for this job

katudeni

Pls check PMB. Thanks.

$30 USD in 1 day
(1 Review)
1.3
counterpuncher

For your consideration... Please view PMB.

$30 USD in 0 days
(0 Reviews)
0.0
ramakrishnad

plz let me know ASAP

$30 USD in 2 days
(0 Reviews)
0.0