I am cleaning some extraneous strings from a text field
Data SASCDC_2.Arias_County_RC_ETHNICITY_FILL;
Set SASCDC_2.Arias_County_RC_ETHNIC_CLEANUP;
If Identify_Race_or_Ethnicity in ("American_Indian", "American_Indian_(Cheeroke)", "American_Indian_or_Alaskan Native", "Apache", "Caucasian/_NAtive_American_Cow_Creek", "Caucasian/_Native_American",
"Native_American", "Native_American_-_Cherokee", "Native_American_-_Turtle_Mountain_Reservation", "Native_American_German", "Native_American_Irish",
"Native_American_and_White", "Native_American,_Hispanic,_Caucasian", "Native_American/Hispanic", "Native_America/Mexican", "Native_American/White", "Native/Indigenous",
"Rosebud_Sioux_Tribe", "native_American", "native_american", "American_Indian_+_Other_White", "American_Indian_and_Caucasion", "Alaska_Native", "Alaskan_Native",
"American_Indian/Hispanic") then Identify_Race_or_Ethnicity = 'NATIVE_AMERICAN';
run;
In the survey the developers allowed individuals to provide free-form descriptions of R/E. Then these free form responses are to be put into the stylized R/E buckets used by the Census and others. Here is the log
Set SASCDC_2.Arias_County_RC_ETHNIC_CLEANUP;
577 If Identify_Race_or_Ethnicity in
577! ("American_Indian","American_Indian_(Cheeroke)","American_Indian_or_Alaskan
--- --- ---
---
---
49 49 49
49
49
577! Native","Apache","Caucasian/_NAtive_American_Cow_Creek","Caucasian/_Native_American",
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS
release. Inserting white space between a quoted string and the succeeding
identifier is recommended.
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS
release. Inserting white space between a quoted string and the succeeding
identifier is recommended.
581 "American_Indian/Hispanic") then Identify_Race_or_Ethnicity = 'NATIVE_AMERICAN'
581! ;
582 run;
581 "American_Indian/Hispanic") then Identify_Race_or_Ethnicity = 'NATIVE_AMERICAN'
------------------------------------------------------
49
581! ;
NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS
release. Inserting white space between a quoted string and the succeeding
identifier is recommended.
583 Data SASCDC_2.Arias_County_RC_ETHNIC_CLEANUP;
584 Set SASCDC_2.Arias_County_RC_ETHNICITY_A;
585
586 If Identify_Race_or_Ethnicity in ("Mexican-Indian (these were their own words)", "US
----
----
----
----
49
49
49
49
I am not sure what the log is trying to tell me? It is a note not an error technically, however when I check the field that is to be changed many of the free form texts are still there. I am searching for answers or remedies (that is why there are underscores between letters and other text expressions in the above).
In some other coding like Python that is sensitive to whitespace there is at least and explanation of how to correct and then the code runs as expected. Here I think SAS is ambiguous (maybe not - so that is why I am asking how to correct this - even though it is just a note because the code doesn't produce the expected result.)
Thank you for your help.
wlierman
... View more