BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
BenConner
Pyrite | Level 9

Hi,

Am using SAS/GIS for the first time and downloaded the most recent TIGER files for county and state boundaries.  Tried to import the .shp file for the state boundaries and got all kinds of errors thrown.

Is there some step or trick that I'm missing?  Sample of the log file is attached...

Thanks!

--Ben

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

From the online help:

SAS/GIS can import 2006 Second Edition TIGER/Line files from the U.S. Census Bureau and earlier releases of the TIGER/Line spatial data format.

Contact SAS Technical Support for the latest information about the availability of support for importing files from 2007 TIGER/Line Shapefiles.

The SHP files I've run into in the past are not plain text that the import example you've given would match.

View solution in original post

5 REPLIES 5
ballardw
Super User

From the online help:

SAS/GIS can import 2006 Second Edition TIGER/Line files from the U.S. Census Bureau and earlier releases of the TIGER/Line spatial data format.

Contact SAS Technical Support for the latest information about the availability of support for importing files from 2007 TIGER/Line Shapefiles.

The SHP files I've run into in the past are not plain text that the import example you've given would match.

BenConner
Pyrite | Level 9

Ah.  That would explain it.  I had used files from this year.

Thanks much!

--Ben

EdO_sas
SAS Employee

There is now a SAS macro program to import 2007 through current year TIGER shapefiles into SAS/GIS data sets. It can be downloaded from the SAS Maps Online Tools page. See the link for the TIGER2GIS macro on that page.

Download the TIGER2GIS.zip file and unzip its contents. Then open the TIGER2GIS_User_Doc.htm file in a browser for detailed instructions. SAS Technical Support is available to help with any specific import problems you may encounter. Just put "SAS/GIS" in the subject line of your email to support@sas.com and it will be routed to the appropriate support analyst.

BenConner
Pyrite | Level 9

Hi Ed,

Downloaded the entire set of county files from the Census bureau and was running the macro aginst the entire batch (about 90 gig worth).  The job was running along and then got:

ERROR: Read Access Violation in Task [ MAPIMPORT]

Exception occurred at (47D56314)...

Is this typically an I/O error on the drive?  Once fixed, is there a graceful way to save what was already successfully processed?

--Ben

EdO_sas
SAS Employee

I am afraid there is no mechanism in the TIGER2GIS.sas macro program to save the partial data imported at an intermediate point in the process. The macro must run to completion in order for the GIS map to be usable.

Are you attempting to import the TIGER shapefiles for all of the counties in the US? I have done that when I was testing the macro during development, so I know it is possible.

I am not sure what triggered the Read Access Violation. If you can provide the following information, I will try to duplicate your run and post my results.

1) Submit these and please post their log messages in a reply:
   %put &sysvlong;
   %put &syshostinfolong;
   %put &sysscpl;
   %put sysmaxlong;

2) What is the TIGER release year of your shapefiles?

3) Are you importing all of the shapefiles for the entire U.S.? If not, which states and counties?

4) How much free disk space is on your machine?

5) How much memory is installed?

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1631 views
  • 3 likes
  • 3 in conversation