| name | SAS |
| description | Execute these commands after EVERY implementation (see AGENT_AUTOMATION module for full workflow). |
| version | 1.0.0 |
| category | languages |
| author | Rulebook |
| tags | ["languages","language"] |
| dependencies | [] |
| conflicts | [] |
SAS Project Rules
Agent Automation Commands
CRITICAL: Execute these commands after EVERY implementation (see AGENT_AUTOMATION module for full workflow).
sas -sysin validate_code.sas
sas -sysin run_tests.sas
SAS Configuration
CRITICAL: Use SAS 9.4+ with code validation and testing.
- Version: SAS 9.4+ or Viya 3.5+
- Linter: SAS Code Analyzer
- Testing: SASUnit or custom test frameworks
- Version Control: Track all .sas files
Code Quality Standards
Mandatory Quality Checks
IMPORTANT: These commands MUST match your GitHub Actions workflows!
sas -sysin your_program.sas -nosplash -print /dev/null
%include "sasunit/run_all_tests.sas";
grep -i "ERROR\|WARNING" your_program.log
Why This Matters:
- SAS code with syntax errors will fail in production
- Missing test validation = data processing errors
Code Style
/* Good: Clear, commented, structured */
%macro process_data(input_ds=, output_ds=, threshold=0.5);
%* Validate inputs;
%if %length(&input_ds) = 0 %then %do;
%put ERROR: input_ds parameter required;
%return;
%end;
/* Process data */
data &output_ds;
set &input_ds;
where value > &threshold;
run;
%mend;