🌿 Core Components Overview
SAS CompareX is structured around multiple intelligent UI and backend components. Below, we break down each feature with examples.
📁 1. Code Upload & Primary Interface
Upload Original and Updated SAS files. CompareX shows:
- Original Code panel
- Updated Code panel
- Differences Panel at the bottom
📊 2. Show Metrics
Get quick code stats with one click:
- Lines added, removed, modified
- Macro/function usage
- Recursion detection
- Hardcoded string/number count
🧬 3. Dataset Lineage Table
Structured table showing:
- Output and input datasets
- PROC SQL / DATA Step
- Macro context
- Line number jump
🧠 4. Dataset Lineage Graph
Trace data lineage visually:
- Trace Mode highlights downstream nodes
- Node Info shows details on hover/click
- Search bar with suggestions
🧪 5. Intelligent Difference Detection
The difference panel auto-tags lines as:
[ADDED],[REMOVED],[MODIFIED]- Manual line jump via side scroll
- Smart syntax formatting
💾 6. Save & Restore Sessions
Save your analysis as a `.cxs` session file.
- Restores file paths, layout, scrolls, and highlights
- Fast load times — useful for large files
📐 7. Vertical Layout View
CompareX offers a clean side-by-side vertical layout:
- Inline diff with colored highlights
- Line jump and alignment sync
🎞️ 8. Auto Scroll Feature
Review long files effortlessly by auto-scrolling both panels in sync. Choose speed from:
- Slow
- Medium
- Fast
🧩 9. Other Smart Features
- Sync Scroll: Panels stay aligned
- Theme Toggle: Switch between Light and Dark
- Minimal / Full View: Collapse/expand difference panel
🔍 10. File Edit Detection
If a loaded file is externally edited, CompareX auto-detects and marks it with a 🔴.