compile ACS and police data#36
Conversation
|
@ptatian I'm getting an error regarding the geo variable defined in the macro |
|
@maggiesu0725 What is the error that you are getting? |
|
the geo var is missing so I can't merge ACS with police data, even if I've kept all the geo macro vars in the dataset, the error reads "ERROR: BY variable run is not on input data set WORK.ACS. |
|
|
||
| data ACS_&geosuf; | ||
| merge ACS violentcrime ; | ||
| by &geo |
There was a problem hiding this comment.
@maggiesu0725 You are missing a semicolon here.
When you see a message like "BY variable run ..." that refers to a SAS keyword (run) rather than an actual variable name, that usually is the result of a missing semicolon.
|
@rpitingolo the program for compiling 2006-2010 data: Compile ACS data_06-10 I just rerun the program and still getting the extra state I don't want? |
|
@maggiesu0725 I'm looking into this. |
|
@maggiesu0725 the crime file has erroneous tract geographies. We should look into how this happened but in the short-term you can either just keep DC tracts in that file or data where violentcrimerate ^= . |
No description provided.