When this option is specified, the default CITY lookup data set is MAPSGFK.WORLD_CITIES. If this option is not used, the GEOCODE procedure assumes that you are geocoding U.S. locations and uses MAPSGFK.USCITY_ALL as the default lookup data set.
Z5.
format to prepend leading
zeros to any ZIP code values that have fewer than five digits.
If an attribute variable has the same name as a variable in the address data set, then that attribute variable is not added to the output data set.
For the STREET geocoding method, only attribute variables from the street segment lookup data set can be included.
Only attribute values from the primary lookup data set that are associated with the specified geocoding method can be added to the output data set. For example, with the STREET geocoding method, you cannot specify that attribute variables be added from the ZIP or CITY lookup data sets. To add attribute variables from the ZIP lookup data set, you must run the GEOCODE procedure a second time. This second run uses the ZIP method on the addresses for which no STREET match was found.
Prior to the second maintenance release for SAS 9.3, you specified the CITY method lookup data set with the LOOKUP= option. Starting with the second maintenance release for SAS 9.3, you are required to use the LOOKUPCITY= option instead.
Prior to the second maintenance release for SAS 9.3, you specified the alternate lookup data set with the LOOKUP= option when using the CITY geocoding method. Starting with the second maintenance release for SAS 9.3, you are required to use the LOOKUPCITY= option instead.
CITY2 when the lookup data set is MAPSGFK.USCITY_ALL, MAPSGFK.WORLD_CITIES, or MAPSGFK.WORLD_CITIES_ALL. (The variable values are normalized, meaning that they are uppercased and stripped of all spaces and characters that are not alphabetic or numeric.)
The Y variable is the default when SASHELP.ZIPCODE or a user-created lookup data set is used.
The latitude variable name that you specify with this option must be contained in all of your specified lookup data sets. For example, when you specify LOOKUPLATVAR=LATITUDE with the ZIP and CITY geocoding methods, the latitude variable in your ZIP and CITY lookup data sets must contain that exact variable name.
The X variable is the default when SASHELP.ZIPCODE or a user-created lookup data set is used.
The longitude variable name that you specify with this option must be contained in all of your specified lookup data sets. For example, when you specify LOOKUPLONGVAR=LONGITUDE with the ZIP and CITY geocoding methods, the longitude variable in your ZIP and CITY lookup data sets must contain that exact variable name.
Z5.
format to
prepend leading zeros to any ZIP code values that have fewer than
five digits.
When the GEOCODE procedure uses SASHELP.ZIPCODE as the CITY lookup data set and finds multiple matches for an address, the procedure averages the latitude and longitude values. For any other lookup data set, the latitude and longitude values for that address observation are missing and the _MATCHED_ value lists how many cities were matched.
You can disable the secondary CITY matching by using the NOCITY option.
proc geocode data=address out=geocoded (keep=name city state zip);For more information about data set options, see SAS Data Set Options: Reference.
If your data does not
use the default variable names for any of these options, then you
must specify the correct variable names with the appropriate options.
|
|