Question:
Is it possible to highlight syntax in Notepad ++ for SAS Program and run it directly from Notepad++. Somehow I have found info about SAS color coding in notepad++, however is there a way to run SAS code from it?
Answer:
Yes there is way to run SAS code from Notepad++.
1. Make Notepad++ as your default app to open .SAS file which is your SAS program file. To do that right click on any of .SAS file and choose "Open With...". Then choose Notepad++ and check the "Always use this app" checkbox.
Do the same for SAS log file .log file and .lst file which is not mandatory.
2. To run SAS program from Notepad++, press F5 or in the menu bar click Run -> Run..., it will open a Run dailog box. In the input feild, use the following command:
"C:\Program Files\SASHome\SASFoundation\9.4\sas.exe" -sysin "$(FULL_CURRENT_PATH)" -log "$(CURRENT_DIRECTORY)\$(NAME_PART).log" -print "$(CURRENT_DIRECTORY)\$(NAME_PART).lst"
Make sure the above path is correct. In some setup SAS might be installed in SASHome1. Everything you see in $() are Notepad++ variables.
3. Click on Save. Once you Save you can see a new item added under Run named as "Run in SAS".
Adding syntax highlighter in Notepad++:
There is already a option provided by Notepad++ and you can find it in below link:
http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files#S
Is it possible to highlight syntax in Notepad ++ for SAS Program and run it directly from Notepad++. Somehow I have found info about SAS color coding in notepad++, however is there a way to run SAS code from it?
Answer:
Yes there is way to run SAS code from Notepad++.
1. Make Notepad++ as your default app to open .SAS file which is your SAS program file. To do that right click on any of .SAS file and choose "Open With...". Then choose Notepad++ and check the "Always use this app" checkbox.
Do the same for SAS log file .log file and .lst file which is not mandatory.
2. To run SAS program from Notepad++, press F5 or in the menu bar click Run -> Run..., it will open a Run dailog box. In the input feild, use the following command:
"C:\Program Files\SASHome\SASFoundation\9.4\sas.exe" -sysin "$(FULL_CURRENT_PATH)" -log "$(CURRENT_DIRECTORY)\$(NAME_PART).log" -print "$(CURRENT_DIRECTORY)\$(NAME_PART).lst"
Make sure the above path is correct. In some setup SAS might be installed in SASHome1. Everything you see in $() are Notepad++ variables.
3. Click on Save. Once you Save you can see a new item added under Run named as "Run in SAS".
Adding syntax highlighter in Notepad++:
There is already a option provided by Notepad++ and you can find it in below link:
http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files#S
Comments
Post a Comment