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;

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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