- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone know/have a list of all sas keywords for base datastep/procs?
I am building a parser for the sas language that color codes sas programs for viewing through a web browser.
Many thanks if anyone/SAS can help.
Cameron
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
As I'm sure you are aware of, SAS is colour coding in DMS and EG, maybe there is way to reuse these schemas. I suggest that you open a track to SAS support if you need help on this from the inside...
/Linus
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I really hope you'll be successful, because you might be delivering the syntax formatter that has been outstanding for a long time.
(well that would be more useful to me than the color which pastes quite well into m$word).
One challenge you face is that some SAS keywords are context dependant.
Even the SAS code node (a.k.a. enhanced editor) has a problem with, for example matching do-end where select-end is present in the code.
Would your code-coloring extend inside a %macro definition (unlike the enhanced editor 😞 )?
I haven't found a language syntax dictionary on the http://support.sas.com site. However, declared for SAS9.1.3, I found one on the ultraedit website, at http://www.ultraedit.com/files/wf/sas.uew .
good luck
PeterC
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the vote of support! I dream of the day when we get a proper SAS IDE!!!! This post is because I'm trying to avoid the task of going through the sas doc to get all the keywords. I think though it will be the only way to get them 😞
The parser extends Syntax Highlighter written by Alex Gorbatchev. The highlighter can be found here.
Once I have a suitable release you can find my parser at my google code site here. It will contain the language file and a css file with the colors. I also aim to release a code viewer (written in .NET) that allows you to view code stored on the file system within a browser.
I haven't uploaded anything yet but will be in the next few days.
The color coding does extend to macro definitions 🙂
Gettting the highlighter to contextually highlight correctly along with something resembling intelli-sense will be v2.0 release 😉
At present I have it highlighting;
- comments (except *;)</li><br> <li>libnames</li> <br> <li>ods</li> <br> <li>strings</li> <br> <li>formats/informats</li> <br> <li>sas supplied macros (%symget %sysfunc %put etc.)</li> <br> <li>Variable Definitions (%global, %let %local etc)</li><br> <li>user defined macros</li> <br> <li>data/proc/run;/quit;</li> <br> <li>All Base Procs (9.1.3)</li><br> <li>keywords</li></li>
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
http://www.ezrtools.com/
Scott Barry
SBBWorks, Inc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
In true SAS tradition....Design straight from 1999!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I believe SAS Studio got syntax highlighting and colouring implemented and as this is a Web client you could search through the installation folders and see if there is some XSL with what you're after.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello was a list found? I want such a list of SAS Keywords to parse SAS programs for anything that is not a keyword. This is just one approach I have for validating a few small programs. Basically this would tell me any variables needed by the programs or output by the programs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Vim has a syntax file for SAS. You can find it here :
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks I can extract the list from the vim script. Personally I am not looking for highlighting.