Wondering if SAS Studio has an option in its text editor to display line and column numbers? Handy for me when inputting by column position.
Thanks John
Thanks Chris, downloaded Notepad++ successfully but still can' get a ruler to show.
John
In version 4.3 You can display line numbers in the code editor by choosing "More application Options" near the top right of the screen, then choose preferences-> editor -> Show line numbers
SAS Studio documentation is pretty decent.
It shows that you can set the line numbers, but I don't see anything about column numbers. The columns do show on the bottom left corner when typing though.
@Mallonjf0 wrote:
Wondering if SAS Studio has an option in its text editor to display line and column numbers? Handy for me when inputting by column position.
Thanks John
Thank you,
My input files often have odd formats with variables having spaces anywhere in them. I have been using the SAS log file that provides a ruler and line numbers. This is shown when you have invalid data for a variable. Works, but I was wondering if SAS provided the ruler option.
Seems not.
But thanks for you time.
John
It doesn't as far as I know but of course SAS programs are simply text files so you could write them in any text editor (I know many people use Notepad++ and I've used UltraEdit) and then open them in SAS Studio and run them there.
Notepad++ is free -> https://notepad-plus-plus.org UltraEdit is $99.95 for a personal licence with discounts for teachers and students -> https://www.ultraedit.com
Thanks Chris, downloaded Notepad++ successfully but still can' get a ruler to show.
John
@Mallonjf0 wrote:
Thank you,
My input files often have odd formats with variables having spaces anywhere in them. I have been using the SAS log file that provides a ruler and line numbers. This is shown when you have invalid data for a variable. Works, but I was wondering if SAS provided the ruler option.
Seems not.
But thanks for you time.
John
There is another option that may be available to examine line and column positions in SAS: FSLIST. I don't know if this works in SAS studio but in SAS command bare entering FSLIST "path\and\filename", or if you assign a FILENAME to the file, FSLIST Fileref will open the file in a Viewer (no editing). You can add a column ruler similar to the Log using the COL command once the viewer is open and the NUM command shows row numbers. And this will have the text on a single row.
Thanks, don't see a SAS Command bar in Studio. Will look around some more.
Thanks for your time and suggestion, John
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!
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.