SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
lycheelove
Calcite | Level 5

Hi I'm trying to copy and paste my code from SAS 9's Enhanced Editor to Word. I'm trying to retain the color-coded format but when I paste onto Word, all my formatting gets lost. Same thing with Wordpad. Any suggestions for this? Thank you so much 😀.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

What options in WORD do you see when select "Paste special"? Formatted Text (RTF) should keep the formatting. If your Word has been configured to use a different default, such as "Unformatted Text" or "Unformatted Unicode Text" it would have that behavior you describe but Paste Special should allow selecting the "Formatted Text (RTF)" option.

View solution in original post

3 REPLIES 3
Tom
Super User Tom
Super User

Works fine for me with WORD.  

Highlight lines. Press Ctrl-C.  Move to WORD, Press Ctrl-V.

Tom_0-1654705086575.png

 

ballardw
Super User

What options in WORD do you see when select "Paste special"? Formatted Text (RTF) should keep the formatting. If your Word has been configured to use a different default, such as "Unformatted Text" or "Unformatted Unicode Text" it would have that behavior you describe but Paste Special should allow selecting the "Formatted Text (RTF)" option.

lycheelove
Calcite | Level 5

Thank you - that didn't really work. I think it's because I'm working off a remote server so there're some restrictions. I found a work around (paste onto OnDemand for Academics and then paste from there to Word).

Thank you again for all your help.😀

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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