September 2019
Beginner to intermediate
346 pages
7h 35m
English
The general form of the DELETE statement is as follows:
DELETE FROM table – name <WHERE expression>;
Here, we have the following:
We will try to subset the data before deleting it. Let's delete all the records that were created due to the looping exercise on the dealership data.
Run the following code:
Proc Sql; Delete From Dealership_looped; Where i gt 1;Quit;
Did you notice anything wrong in the preceding syntax? The semicolon is in the wrong place. Due to the semicolon before the WHERE clause, all the records will be deleted from the table. SAS won't throw an error, but after ...
Read now
Unlock full access