BookmarkSubscribeRSS Feed
alepage
Barite | Level 11

Hello,

 

Here's a piece of code, I have elaborated.

 

data _null_ ;
file mail;
put "Bonjour / Hi,";
put "";
put "Noter que le traitement CPE est maintenant completée / Take note that CPE process is now completed";
put "";
put "Si vous désirez plus d'information, s'il vous plaît contactez-nous / If you need more information, please contact us.";
put "";
put "Merci/Thanks,";
put "";
run;

For example, the second line is at the begining like that:

put "Noter que le traitement CPE est maintenant completée.// Take note that CPE process is now completed"

Then I saved the file and transfer it from my pc to a unix server.  Thereafter, text into the file become has shown above.

 

Is there a way to correct that situation when we make a cp  path1/filename to path2/ on a unix server and to keek the accented accent.

Thanks in advance for your help

2 REPLIES 2
AlanC
Barite | Level 11

For text, use the '/' character to indicate new line. For example, the code below:

 

put   "Bonjour / Hi,"
       / "Noter que le traitement CPE est maintenant completée / Take note that CPE process is now completed"

      // "Si vous désirez plus d'information, s'il vous plaît contactez-nous / If you need more information, please contact us."
      //"Merci/Thanks,"
      ;

https://github.com/savian-net
Reeza
Super User
If this were a text file, I'd say to make sure the encoding was set correctly for Unix....
I'd also consider using BYTE() or a different function to generate those symbols directly on a Unix system.

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

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
  • 2 replies
  • 769 views
  • 0 likes
  • 3 in conversation