DC geography formats + include macros run unmodified on Jenner#172
Open
jenner-analytics wants to merge 1 commit into
Open
DC geography formats + include macros run unmodified on Jenner#172jenner-analytics wants to merge 1 commit into
jenner-analytics wants to merge 1 commit into
Conversation
Adds a self-contained jenner-check/ directory: nine bundles that run scripts and include macros from this library against the hosted Jenner SAS engine, each with the captured log/listing and pinned expected fields, plus a small shell runner. t001 Format_cnty03f PROC FORMAT $cnty03f county labels t002 Format_longusr PROC FORMAT $longusr username translations t003 Style_rtf_arial_9pt PROC TEMPLATE Rtf_arial_9pt ODS style t004 %ucounty unique county ID (state+county FIPS) t005 %msapma PMSA / MSA-CMSA fallback t006 %Fedtractno Geo2000 tract to OCTO match key t007 %Octo_Quad DC quadrant normalize + validate t008 %GeoBlk2000_Octo OCTO census block ID t009 %uplace unique place ID (state+place FIPS) Nothing outside jenner-check/ is touched; nothing runs on merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jenneranalytics.com provides an API that runs SAS code, with support for more than 200 SAS procedures. You can also use it with AI assistants in a collaborative workspace. It's available for Mac on the Apple App Store, and by license for Windows and Linux.
We support the larger community by
(1) increasing access to SAS-compatible systems,
(2) by providing test coverage and a test coverage framework to public SAS repos in order to encourage the use of best practices in software engineering.
Your Format_cnty03f.sas runs on Jenner unmodified — this PR adds a small compatibility bundle so you can see for yourself. It's the test we wrote for your library, shared in case it's useful, and was assembled with AI assistance as is most code in modern businesses today.
What stood out reading through the library is how much of the geography knowledge lives in small, single-purpose include macros.
%Fedtractnois a nice example: the SELECT block handles the empty and general cases withinput( substr( ... ), 6.2 ), but carries an explicitwhen ( '11001008410' )branch that rewrites tract 84.10 to 84.01 — a real-world census correction pinned right where anyone reading the code will see it. The same discipline shows up in%Octo_Quadblanking anything outside NW/NE/SW/SE, and in%msapmafalling back from PMSA to the MSA/CMSA code. Formats and crosswalks like these are exactly the kind of code that is easy to break silently and worth having a check on.Everything is under a single
jenner-check/directory — a byte-identical copy of each script (the macros carry a tiny caller and a few rows of sample FIPS/tract input so they run in isolation), the captured log and listing from the run, and a small shell runner. Nothing outsidejenner-check/is touched, no workflow files or hooks are added, and nothing runs on merge.To try one straight away, check out this PR and run a bundle from the repo root:
# Check out this PR (puts you on its branch); then run from the repo root: gh pr checkout 172 curl -sS --data-binary @jenner-check/t001_format_cnty03f/script.sas https://api.jenneranalytics.com/v1/quickOr
cd jenner-check && ./run_jenner.sh --allre-runs every bundle and verifies the pinned fields in each one. The hosted API is free to try with no signup; full API reference is in the docs.On data: the runner uploads only the SAS source text of the script it runs (plus a two-line autoexec that caps input rows) to api.jenneranalytics.com, which runs it and returns the log and listing. It does not read or upload any data files — the sample rows live inside the scripts themselves, so anything else on your machine stays there — and nothing is sent unless you run one of these commands yourself. As with pasting a snippet into any hosted tool, only the code you run is transmitted, so you can review a script first if it ever embeds a value you would rather keep local.
Merge it, close it, or ignore it — all fine, and no response is expected. We won't open further PRs in this repository. If you'd prefer we never do, reply with
no-more-prsin any comment or open an issue titledjenner-check: opt outand we'll stop.Lawrence W. Sinclair
CEO / Jenner Analytics Ltd
linkedin.com/in/lwsinclair/