BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
tianerhu
Pyrite | Level 9
proc export data = work.flightempdata
 outfile = "C:\Users\li\Documents\My SAS Files\prep guide\base\practice data\cert\flightempdata.csv"
 dbms = CSV
 replace;
run;

tianerhu_0-1618948923139.png

additionally, the four value from the second to fifth of the column date is missing . why?

the answer is like following:

tianerhu_1-1618949318561.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
What is the issue? I'm not seeing any issue?

You should open the file in a text editor though, not Excel. When you open your data with Excel it essentially does it's own conversion so you aren't seeing the actual data here. Right click your file, Open with>NotePad or TextPad or whatever you use to view text files.

View solution in original post

7 REPLIES 7
Reeza
Super User
What is the issue? I'm not seeing any issue?

You should open the file in a text editor though, not Excel. When you open your data with Excel it essentially does it's own conversion so you aren't seeing the actual data here. Right click your file, Open with>NotePad or TextPad or whatever you use to view text files.
tianerhu
Pyrite | Level 9

Get it . Thank you for your help .

tianerhu
Pyrite | Level 9
Thank you for your help.
tianerhu
Pyrite | Level 9

Thank you for your help.

ballardw
Super User

@tianerhu wrote:
proc export data = work.flightempdata
 outfile = "C:\Users\li\Documents\My SAS Files\prep guide\base\practice data\cert\flightempdata.csv"
 dbms = CSV
 replace;
run;

tianerhu_0-1618948923139.png

additionally, the four value from the second to fifth of the column date is missing . why?

the answer is like following:

 


What missing dates? Excel is showing ********, nothing missing. It does that when the value in the expected display format will not fit. Make the column wider if you really must see the data in Excel. Not a good idea as if you accidentally "save" the file while open in Excel you may find the actual values in a CSV file get changed because Excel already did one conversion to internal preferences to display the values.

 

 

tianerhu
Pyrite | Level 9

Thank you for your help.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1487 views
  • 2 likes
  • 4 in conversation