title: How to open .sas7bdat in SAS and export to excel?
body: <p>I am quite new to SAS. I have got a file with file extension  .sas7bdat which contains daily stocks prices and percentage changes. It has almost 2 million line items. I know that I can simply double click the file and open it with SAS 9.4. But, I am looking for codes which I can type in Editor and open this file. Please help me.</p>
  
  <p>After I open this file, I need to export it to excel. Since it has 2 million data, I can not export everything in a single excel tab. So, What I want to do it randomly pick (say 10,000 or 20,000) data and export only this randomly picked data to excel.</p>
  
  <p>My .sas7bdat file is on desktop.</p>
  
  <p>Please help. </p>