-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
Hello,
I've noticed that the sql-formatter-org/sql-formatter provides SQL formatting capabilities for VS Code. Currently, I work around this by manually copying SAS SQL code out, formatting it, and pasting it back. But it may not fully address the unique syntax of SAS SQL
SAS SQL has several distinctive features that differ from standard SQL:
- SAS-specific clauses like
UNION CORR
(a SAS extension not found in other SQL dialects) - Macro variable syntax: The
&
character functions as a macro variable indicator (not a logical operator), often used with a trailing dot like&abc.
- ** INTO : syntax** for storing query results into macro variables (e.g.,
SELECT col INTO :var FROM table
) - SAS-specific functions that are commonly used in SAS SQL queries (e.g.,
PUT()
,INPUT()
,CATX()
)
These SAS-specific elements might not be properly recognized or formatted by generic SQL formatters.
Would it be possible to add a dedicated SAS SQL dialect to sql-formatter
?
daltonl2
Metadata
Metadata
Assignees
Labels
No labels