BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Phil_NZ
Barite | Level 11

Hi all SAS Users,

 

Is there any shortcut or way to italicize or bold the words in the comment part of SAS. For example, I have a code as below

/*Cut a file to three small pieces
SAS4rum:How to cut a file to many small files ? https://cutt.ly/jlVejWX
3939186,7966392.. are last obs of a random company */
data keepvar_1999_2001_1;
  set keepvar_1999_2001 (obs=3939186);
run;

In this code above, I want to highlight the word "SAS4rum", "3939186", "7966392" to let the comment part more eye-catching?

I am wondering is there any way to do that for the comment part, I did a search but the results so far saying that we can specify the font in the output parts but not the comment part (inside /* */).

 

Warm regards.

 

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
1 ACCEPTED SOLUTION

Accepted Solutions
mkeintz
PROC Star

I should clarify.  You can only tell sas to bold and/or italicize ALL comments, not just some comments.  So it may not be what you want.

 

in EG go to tools/options/sas programs submenu, click on the Editor Options button, and select the appearance tab.  In the "file elements" window select the "comments" item and modify the Font Style selection button.

 

In SAS display manager, use the tools/options/enhanced editor submenu, then choose the appearance tab.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

View solution in original post

4 REPLIES 4
SASKiwi
PROC Star

Check the keyboard shortcuts in SAS EG. There are no editing options for bolding, italicizing, underlining or similar. No can do 😟 

mkeintz
PROC Star

You can actually bold or italicize complete comment statements, but not individual words.

 

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
Phil_NZ
Barite | Level 11

@mkeintz 

 

Can I ask how to do it? Does it need any complicated code?

 

Warm regards.

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
mkeintz
PROC Star

I should clarify.  You can only tell sas to bold and/or italicize ALL comments, not just some comments.  So it may not be what you want.

 

in EG go to tools/options/sas programs submenu, click on the Editor Options button, and select the appearance tab.  In the "file elements" window select the "comments" item and modify the Font Style selection button.

 

In SAS display manager, use the tools/options/enhanced editor submenu, then choose the appearance tab.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 1103 views
  • 3 likes
  • 3 in conversation