Help using Base SAS procedures

COMMENTING IN SAS

Accepted Solution Solved
Reply
Super Contributor
Posts: 1,040
Accepted Solution

COMMENTING IN SAS

Hi,

I want to comment in the editor

*********************************

       data null;                        |

      set have;                        |

     where datepart(time)=;   |

      run;                                |

********************************;

How can I get to fill the edges with lines on both sides of the box???

Thanks


Accepted Solutions
Solution
‎07-23-2013 06:34 PM
Super User
Posts: 10,538

Re: COMMENTING IN SAS

You'll need to make sure you are using a monospace font, such as SAS Monospace, and no bolding within the lines otherwise any character base approach will be shifted just as your original post in this thread doesn't align vertically.

Once upon a time it would have been simple to enter using ALT and the numeric key pad to access the box drawing characters from the old IBM pc font set, but Windows seems to be short circuiting that approach. It seems like you need Unicode in the current enhanced program editor to get a vertical line character that woule work and I'm too lazy to figure an easy way to do that.

 


View solution in original post


All Replies
Super User
Posts: 17,912

Re: COMMENTING IN SAS

You type them in.

SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition

Read the tips especially.

Super Contributor
Posts: 1,040

Re: COMMENTING IN SAS

Hi,

Thanks for the reply.

Also how can I get  a solid line from top to down of the box instead of the dotted lines???

Thanks

Contributor
Posts: 22

Re: COMMENTING IN SAS

you may use underscore /*______________________________________________*/

Super Contributor
Posts: 1,040

Re: COMMENTING IN SAS

Thanks. I wanted a vertical line for the sides!!!

Super User
Posts: 17,912

Re: COMMENTING IN SAS

Think about your request in terms of a text editor. Only having what's on the keyboard how can you accomplish what you desire?

Please watch your caps and exclamation points, it implies tone.

! = exclamation, loud voice

!! = strong exclamation, shouting

!!! = all-caps, strong exclamation with loud shouting

!!!! = all-caps, loud, intense screaming

!!!!! = all-caps, the mother of all shouting/screaming/cursing

Solution
‎07-23-2013 06:34 PM
Super User
Posts: 10,538

Re: COMMENTING IN SAS

You'll need to make sure you are using a monospace font, such as SAS Monospace, and no bolding within the lines otherwise any character base approach will be shifted just as your original post in this thread doesn't align vertically.

Once upon a time it would have been simple to enter using ALT and the numeric key pad to access the box drawing characters from the old IBM pc font set, but Windows seems to be short circuiting that approach. It seems like you need Unicode in the current enhanced program editor to get a vertical line character that woule work and I'm too lazy to figure an easy way to do that.

 


PROC Star
Posts: 7,364

Re: COMMENTING IN SAS

: if you are on windows, hold your alt key down, enter 124 using your numeric keypad, and then release the alt key.

Super User
Super User
Posts: 6,502

Re: COMMENTING IN SAS

I personally cannot stand that type of "boxed" comment blocks.

It is a waste of time and effort to create.  Detracts from the readability of the comments and makes it harder to edit the content of the comment.  Not to mention the number of hours wasted debugging programs only to discover there is an extra * or | out in column 150 that is invisible in the editor because it is off the screen.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 8 replies
  • 306 views
  • 9 likes
  • 6 in conversation