DATA Step, Macro, Functions and more

error

Reply
Contributor
Posts: 50

error

hi,

 

The data set WORK.CAR_SALES2 may be incomplete. When this step was stopped there were 0
observations and 1 variables.

i am geeting this error in log window ?

what should i do ?

this is my code :

DATA car_sales2;
set=Prateek.car_sales;
if_4_year_resale value is missing or Price_in_thousands is missing then delete;
run;

 

Super User
Super User
Posts: 7,955

Re: error

This line is invalid SAS syntax:

if_4_year_resale value is missing or Price_in_thousands is missing then delete;

 

You are missing a space after the if, the word value appears incorrectly.  You have not used the missng function correctly. Maybe something like:

if missing(_4_year_resale_value) or missing(price_in_thousands) then delete;

Super User
Posts: 5,509

Re: error

One more item you need to correct, even if it did not generate an error message:  the SET statement does not use an equal sign.  The correct version:

 

set Prateek.car_sales;

 

Ask a Question
Discussion stats
  • 2 replies
  • 216 views
  • 0 likes
  • 3 in conversation