Write and run SAS programs in your web browser

convert csv to sas7bdat

New Contributor
Posts: 3

convert csv to sas7bdat



I was wondering how I can convert a csv file into sas as a sas7bdat file. Or, if easier, an xls file into sas as a sas7bdat file. 



Esteemed Advisor
Posts: 7,294

Re: convert csv to sas7bdat

Both can be done most easily using proc import.


Art, CEO, AnalystFinder.com


Grand Advisor
Posts: 17,360

Re: convert csv to sas7bdat

CSV is easier, please see the videos here that illustrate how to accomplish most basic tasks:


Frequent Contributor
Posts: 93

Re: convert csv to sas7bdat

For my part, I would recommend that you file...import data, and follow the wizard's instructions.  Once the wizard has completed, it will output the infile code that you may use to import your dataset.  Copy the code, and paste it into the editor.  Modify it as needed, and save it for future use.



Ask a Question
Discussion stats
  • 3 replies
  • 1 like
  • 4 in conversation