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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 458 views
  • 0 likes
  • 3 in conversation