enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. 5 digit zip code - SAS Communities

    communities.sas.com/.../5-digit-zip-code/td-p/228911

    Well, first, I want to delete any zip code that isn't 5 characters long. All zip codes must be 5 characters long (which can include leading 0). If it's character, that's fine, for this part, and this part looks easy to do. Second, I want to delete any values that are not all numbers.

  3. Adding Leading Zero to Character Variable - SAS Communities

    communities.sas.com/t5/SAS-Programming/Adding-Leading-Zero...

    Adding Leading Zero to Character Variable. Hi all, I'm setting the zip code to be a 5-digit character variable, and adding a leading zero if there are only 4 digits. data survey; infile '/home/uid/zip.csv' delimiter=',' missover firstobs=2 dsd; format Zip_Code $5.; input Zip_Code $;/* I've tried all 3 but none of them worked.

  4. Transform Data by Zip Code into US Regions - SAS Communities

    communities.sas.com/t5/Graphics-Programming/Transform-Data...

    I have a data set that is listed out by zip code as the mapping coordinate but I would like to group those zip codes into a small number of regions (say 5 or 10). Is there a way to do this using the zipcodes or do I need to develop a shape file to define the regions? For example, my data is simila...

  5. 3-digit ZCTA data set - SAS Support Communities

    communities.sas.com/t5/Graphics-Programming/3-digit-ZCTA...

    Re: 3-digit ZCTA data set. You would need to create the new 3-digit zip variable, and then use 'proc gremove' to remove all the internal boundaries within those 3-digit areas. Here's the gremove doc: SAS/GRAPH (R) 9.4: Reference, Second Edition.

  6. SAS Zipcode dataset and zip to County Match

    communities.sas.com/t5/Graphics-Programming/SAS-Zipcode...

    By 9-digit ZIP I assume you mean ZIP+4. The only ZIP+4 data set currently supplied by SAS is the PROC GEOCODE lookup data used for ZIP+4 geocoding. It was generated from Census Bureau TIGER files and is in the downloads section of the SAS Maps Online site. However, the current data set does not contain county values.

  7. US Zip code validation - SAS Communities

    communities.sas.com/t5/SAS-Programming/US-Zip-code...

    rename= (zip2=zip) ); set. final. ; run; In the above snippet we will drop the ZIP field with invalid codes and Rename the ZIP2 to ZIP (which obviously have the Invalid zip codes as '.') Note: the above code is written based on the assumption that the Zip code is 5 digit. View solution in original post.

  8. Geography Issues with Visual Analytics using zip Code

    communities.sas.com/t5/SAS-Visual-Analytics/Geography...

    va version 7.3 ...zip code is shown as a valid geography option. i right click my zip code (which is a character field) hover over geography. click US ZIP codes. try to drag this new field to the map. "This external geography type is not supported". 0 Likes. Madelyn_SAS. SAS Super FREQ.

  9. Function for FIPS codes by County - SAS Support Communities

    communities.sas.com/t5/SAS-Procedures/Function-for-FIPS...

    FIPNAME Function. Converts two-digit FIPS codes to uppercase state names. FIPNAMEL Function. Converts two-digit FIPS codes to mixed case state names. FIPSTATE Function. Converts two-digit FIPS codes to two-character state postal codes. STFIPS Function. Converts state postal codes to FIPS state codes. STNAME Function.

  10. use length, index, and substr for zipcode variable

    communities.sas.com/t5/SAS-Programming/use-length-index...

    Variable zipcode is read with format$10. It reads zip codes in the form 07417 or 07417-1280 Create variable_9digit. It equals 1 if zipcode has a hyphen separating the fifth and seven digits. Otherwise it equals 0. Write the statements three ways, using the length, index, ad substr functions. /* using length function*/.

  11. Extract First 5 Characters of String Variable with Varying...

    communities.sas.com/t5/SAS-Programming/Extract-First-5...

    I have a zip code variable in a dataset that includes both 5- and 9-digit zip codes. I want all of them to be 5-digits but am having trouble extracting the first 5 digits of the variable. It is an extensive list, but some examples are 15009, 15208, 191451652, 193760024. When I try to use substr, data cases; set cases; zip=substr(zip_char,1,5); run;