Convert CSV file to SAS file or SAS table (sas7bdat)

Reply
New Contributor
Posts: 4

Convert CSV file to SAS file or SAS table (sas7bdat)

I need to convert a CSV file to SAS file or SAS table(sas7bdat). I have gone through this link
https://communities.sas.com/t5/General-SAS-Programming/Convert-CSV-file-to-SAS-Table-sas7bdat/td-p/1... but its from 2014 and
from the discussions it seems that we really cannot do so using C++, python or any available library. We can convert CSV to SAS transport file using R which would again have to be imported into SAS application. The post is from 2014 and I'm wondering if anything has changed yet as in is it possible to do so now ?

Grand Advisor
Posts: 17,332

Re: Convert CSV file to SAS file or SAS table (sas7bdat)

Are you trying to create a SAS file without SAS? That wasn't clear from your question. 

 

Otherwise look at proc import. 

New Contributor
Posts: 4

Re: Convert CSV file to SAS file or SAS table (sas7bdat)

Yes, i  was trying to create sas file without SAS.Thanks for the response. 

Esteemed Advisor
Posts: 5,198

Re: Convert CSV file to SAS file or SAS table (sas7bdat)

SAS files are proprietary to SAS, so no, not any legal way without a SAS session.
But why would you create SAS files without SAS? They are to no use without SAS...
Data never sleeps
New Contributor
Posts: 4

Re: Convert CSV file to SAS file or SAS table (sas7bdat)

Thanks for the response

Esteemed Advisor
Posts: 6,646

Re: Convert CSV file to SAS file or SAS table (sas7bdat)

Since a .sas7bdat is a proprietary SAS format which is only of use if you have SAS, use the SAS system to import it.

 

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
New Contributor
Posts: 4

Re: Convert CSV file to SAS file or SAS table (sas7bdat)

Thanks for the reply.

Ask a Question
Discussion stats
  • 6 replies
  • 797 views
  • 0 likes
  • 4 in conversation