sasjs-core
Installation
SKILL.md
@sasjs/core - SAS Macro Library
@sasjs/core is an MIT-licensed library of production-quality SAS macros for SAS application development, portable across SAS 9 (meta), Viya, and SASjs server.
Coding standards (mandatory)
- One macro per file; filename must match the macro name (lowercase, no spaces)
- Macro definitions must use parentheses:
%macro x();not%macro x; - Macro calls are NOT terminated with a semicolon:
%my_macro()not%my_macro(); - All macro variables must be declared
%localto prevent scope leakage - Always use
mf_getuniquefilerefwhen assigning filerefs, andmf_getuniquelibrefwhen assigning librefs (never hardcode or hand-roll unique references) - 2-space indentation, no tabs, no trailing spaces, no invisible characters, max line length 300 (hard lint limit) but keep lines to 80 chars max where possible
- Every file must have a Doxygen header:
/**
@file
@brief One-line description of the macro