BookmarkSubscribeRSS Feed
Iblouse
Obsidian | Level 7

Hi, I have a large dataset 1.1 GB (health data from the CDC), I want to load it into SAS Academy OnDemand but the size limit is 1 GB. Is there another method to load it?

Thanks!  

7 REPLIES 7
Iblouse
Obsidian | Level 7

Note: a precision the dataset is a SAS .XPT file.

Thank you!

Tom
Super User Tom
Super User

@Iblouse wrote:

Note: a precision the dataset is a SAS .XPT file.

Thank you!


I assume that your trouble is that you cannot upload the file to your On Demand server because of the size?  You could try using compression on the file and upload the compressed file instead. An actual SAS version 5 transport file normally compresses to less than 30% of the original size. You should be able to create either a ZIP file or GZIP file (.gz extension added after the regular extension).

If the file is really a SAS version 5 format XPORT file then you can reference it by pointing a fileref at it using the ZIP engine and then create a libref with the same name using the XPORT engine.

filename cdc zip 'file_from_cdc.xpt.gz' gzip;
libname cdc xport;
proc copy inlib=cdc outlib=work;
run;

 

Kurt_Bremser
Super User

If that file is available for download from a website, consider using PROC HTTP to download it:

filename csvfile "$HOME/class.csv";
proc http
  url="https://communities.sas.com/kntur85557/attachments/kntur85557/programming/226864/1/class.csv"
  out=csvfile
;
run;

(this example uses a file attached to this post)

ChrisNZ
Tourmaline | Level 20

And consider storing it as a binary-compressed SPDE file.

Ksharp
Super User
1) Try options:
option obs=10000;
proc copy .....

load the first 10000 records. And

option firstobs=10001;
proc copy .........

load the remain records.

2) switch into SAS University Edition .
japelin
Rhodochrosite | Level 12

If you don't want to use XPT, but a SAS data set, this program may help.

 

"XTP2SAS.exe".

https://bitbucket.org/t_kawakami/xpt2sas/src/master/

 

I made this on the side of binary analysis of SAS XPT files, and it converts XPT files into sas programs that can be run in sas.

The data size of 1.1GB is a concern, but if you upload the sas program to SAS on Demand and run it, it will generate a SAS dataset with the same structure as the XPT file.

screen samplescreen sampleconverted sas programconverted sas program

Ksharp
Super User
3) Try option:
options compress=yes ;

to make dataset smaller .

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 7 replies
  • 2113 views
  • 0 likes
  • 6 in conversation