BookmarkSubscribeRSS Feed
reddy19
Calcite | Level 5
Hi,

I'm newbie to SAS...I have to import excel file,do formatting and export it to CSV file.

I'm modifying output format,for example instead of datetime to date etc..comaa. to
w.d etc

After modifying i'm trying to export results to CSV file...i'm getting quotations for all the coloums....but i want quotations for only string colums having space value.

How can i control this using EG.

Thanks,
Reddy
1 REPLY 1
SPR
Quartz | Level 8 SPR
Quartz | Level 8
Hello Reddy19,

You wrote: "I'm modifying output format,for example instead of datetime to date etc..comaa. to w.d etc".

To change from datetime to date you need a function DATEPART, changing format it is not enough.

Please give an example of you data and desired output.

Sincerely,
SPR

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 1424 views
  • 0 likes
  • 2 in conversation