BookmarkSubscribeRSS Feed
mduarte
Quartz | Level 8

Hi - Just wondering if it possible for the SAS Enterprise Guide Program Editor to wrap text?  

 

I have looked in Tools > Options but have found nothing.  

 

Long lines of code are especially difficult when using "proc odstext" (in which I had originally pressed enter within the paragraph to see all the text, but found output had squares for the newline character)

 

Edit: Example code which is not word-warpped in SAS EG

proc odstext;
	p '^{style[color=purple fontweight=bold]Definition 1:} Lorem ipsum dolor sit amet, no accusata gubergren disputando duo. Vis eu graeco recusabo laboramus, aliquip tritani sea in, ad saepe meliore sit. His meis viderer pertinax cu. Cu aeque vocent molestiae vel, utamur constituto duo ut. Option consequuntur vis te, eum ne illum nulla tacimates, et tation iisque adipisci sed. Et eam menandri euripidis splendide. Ex mel vide lobortis tractatos, eu ullum quaeque pri, mea te movet accumsan. Usu ut scripserit theophrastus. His at veri partem. Vidit dictas sed eu.';
	p '^{style[color=purple fontweight=bold]Definition 2:} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.';
	p '^{style[color=purple fontweight=bold]Definition 3:} Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?';
run;
4 REPLIES 4
RahulG
Barite | Level 11

Try using "Format code" option.  

 

Open your program in SAS EG. Then Go To "Edit" Menu ---> "Format Code"

Shortcut is CTRL + I .

mduarte
Quartz | Level 8

Thanks for your reply - however code within the proc odstext paragraphs are not wrapped using this method.  I just added example code to the original topic (should've done so in the first instance.. sorry!)

sas_wizard
Calcite | Level 5

Did you ever find a solution for this? 

 

I am renaming several variables using the set and rename statements. The line length is way too large and I have end up scrolling horizontally to see the code. 

 

Is there a way to text wrap?

CaseySmith
SAS Employee

Sorry, I'm pretty sure there is not currently a word wrap feature in the EG editor.

 

As a consolation, starting in EG 7.13, you can more easily scroll horizontally via SHIFT + MouseWheel.

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 4 replies
  • 4881 views
  • 5 likes
  • 4 in conversation