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;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1335 views
  • 0 likes
  • 3 in conversation