BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
wlierman
Lapis Lazuli | Level 10

I have a SAS dataset of 1,694,321 obs.  I wanted to convert into CSV and send to another party. The log of the export is here.

NOTE: The file 'I:\Health
      Analytics\AMB_INFORMATICS\ORPHEUS_ONE_Syntax_Log_MM\Merged_File\Merged_ORPHEUS_ONE_6.15.2021.csv' is:
      Filename=I:\Health Analytics\AMB_INFORMATICS\ORPHEUS_ONE_Syntax_Log_MM\Merged_File\Merged_ORPHEUS_ONE_6.15.2021.csv,
      RECFM=V,LRECL=32767,File Size (bytes)=0,
      Last Modified=15Jun2021:10:49:23,
      Create Time=15Jun2021:10:49:23

NOTE: 1694322 records were written to the file 'I:\Health
      Analytics\AMB_INFORMATICS\ORPHEUS_ONE_Syntax_Log_MM\Merged_File\Merged_ORPHEUS_ONE_6.15.2021.csv'.
      The minimum record length was 22.
      The maximum record length was 118.
NOTE: There were 1694321 observations read from the data set SASONE.OR_ONE_ALL_MERGE5A.
NOTE: DATA statement used (Total process time):
      real time           2.50 seconds
      cpu time            2.28 seconds


1694321 records created in I:\Health
Analytics\AMB_INFORMATICS\ORPHEUS_ONE_Syntax_Log_MM\Merged_File\Merged_ORPHEUS_ONE_6.15.2021.csv from
SASONE.OR_ONE_ALL_MERGE5A.


NOTE: "I:\Health Analytics\AMB_INFORMATICS\ORPHEUS_ONE_Syntax_Log_MM\Merged_File\Merged_ORPHEUS_ONE_6.15.2021.csv" file
      was successfully created.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           2.71 seconds
      cpu time            2.36 seconds



When I go out to the file and test whether it is being read into excel it doesn't load completely but stops after loading 1,048,576 obs.  I thought a csv file could be loaded into excel without running into a size constraint.

 

What is the best method to solve this problem?

 

Thanks.

 

wklierman

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Excel has a size limit itself and that's what you're running into here 🙂

You can load a larger CSV file into Excel in some ways, usually using a DSN connection but this isn't a SAS issue.

 

https://support.microsoft.com/en-us/office/excel-specifications-and-limits-1672b34d-7043-467e-8e27-2...

Set up a connection to a CSV file:

https://excel.officetuts.net/examples/open-large-csv

View solution in original post

4 REPLIES 4
Reeza
Super User

Excel has a size limit itself and that's what you're running into here 🙂

You can load a larger CSV file into Excel in some ways, usually using a DSN connection but this isn't a SAS issue.

 

https://support.microsoft.com/en-us/office/excel-specifications-and-limits-1672b34d-7043-467e-8e27-2...

Set up a connection to a CSV file:

https://excel.officetuts.net/examples/open-large-csv

wlierman
Lapis Lazuli | Level 10

Thank you.  It is the excel side of things.

 

Thanks again.

 

wklierman

wlierman
Lapis Lazuli | Level 10

Thank you. My thoughts precisely.

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 4 replies
  • 1012 views
  • 1 like
  • 3 in conversation