BookmarkSubscribeRSS Feed
LucilleBotha
Fluorite | Level 6

Hi all,

 

I am trying to import a large file into the XML Mapper, but I have file limitation issues. I am on version 930.

 

How can I increase the allowable size format to read in the data?

 

I appreciate your assistance,

Lucille

6 REPLIES 6
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Sorry, its not clear to me what the question is.  What file limitation issues are you facing?  Is the file an XML file, or is it from something like Excel?

LucilleBotha
Fluorite | Level 6

Apologies - it is a csv that i resaved to be a .xml

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Well, your best path of action is to import the CSV file, far simpler than messing around with XML and XML mapper.  Can you not proc import it directly - or better still write a datastep to import the CSV file?

LucilleBotha
Fluorite | Level 6

problem is, I was using the XML mapper to provide the schema to me.. I unfortunately do not know the schema.

 

 

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Erm, how will the XML mapper mapper know something you don't?  If you really don't know your data (and are prepared for anything coming from that data to fail) then use proc import.  That will guess your column names,  lengths, types etc.  Really not a good idea, but up to you.

ballardw
Super User

To add to @RW9's suggestion use proc import on the CSV file and use a large value for the guessingrows option.

proc import datafile="C:\temp\test.csv"
     out=mylib.mydata
     dbms=csv
     replace;
     getnames=no;
     guessingrows=32767;
run;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1454 views
  • 0 likes
  • 3 in conversation