PetrOtahal
Technical User
Having a problem with the data step.
The following code works on my windows machine running SAS 9.1:
data CleanM;
set Clean;
if pathol ne "Burnie" then delete;
run;
But will not work on a Unix machine running SAS 9.1.
The only difference is that the windows machine has a random subsample of the data on the Unix machine (due to the large size of the data file).
The pathol variable is a character variable of length 13 and contains missing values. I can get the following to work on the both machines:
data CleanM;
set Clean;
if pathol ne "" then delete;
run;
This code gives me all the observations where pathol has a missing value.
I have done a proc freq on the Unix machine and there are over 100 000 observations (out of 600 000) where pathol = "Burnie".
Any help greatly appreciated.
Petr
The following code works on my windows machine running SAS 9.1:
data CleanM;
set Clean;
if pathol ne "Burnie" then delete;
run;
But will not work on a Unix machine running SAS 9.1.
The only difference is that the windows machine has a random subsample of the data on the Unix machine (due to the large size of the data file).
The pathol variable is a character variable of length 13 and contains missing values. I can get the following to work on the both machines:
data CleanM;
set Clean;
if pathol ne "" then delete;
run;
This code gives me all the observations where pathol has a missing value.
I have done a proc freq on the Unix machine and there are over 100 000 observations (out of 600 000) where pathol = "Burnie".
Any help greatly appreciated.
Petr