Skip to content

Jenner compatibility tests for 7 script(s)#6

Open
lwsinclair wants to merge 1 commit into
bcgov:mainfrom
lwsinclair:jenner-check/initial-bundles
Open

Jenner compatibility tests for 7 script(s)#6
lwsinclair wants to merge 1 commit into
bcgov:mainfrom
lwsinclair:jenner-check/initial-bundles

Conversation

@lwsinclair

Copy link
Copy Markdown

Jenneranalytics.com provides an API that runs SAS code, with support for more than 200 SAS procedures. You can also use it with Anthropic Claude Code AI in a collaborative workspace. It's available for Mac on the Apple App Store, and by license for Windows and Linux. Your SAS code here runs on it unmodified — this PR adds a few compatibility bundles so you can see for yourself.

Yes, AI was used to develop this PR as is most code in modern businesses today.

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.

This PR is our way of giving back to the developers whose code we use to validate the SAS-compatible Jenner system. We test against all SAS code in the world to validate our compatibility. These tests are the way we build our product. But we do not want to just keep them for ourselves: we share some of those tests with the repo owner so that they benefit from the automated test coverage as well.

Everything new lives under jenner-check/, one folder per script with the SAS, a small autoexec, a frozen expected result, and a readable snapshot of the run:

jenner-check/
  run_jenner.sh / .bat / .sas   # one runner for all bundles
  t001_emp_naics_agegrp/        # employment by NAICS and age group
  t002_ftpt_region/             # full-/part-time by economic region
  t003_empcow_naics/            # employment by class of worker
  t004_empsize_naics/           # employment by establishment size
  t005_emp_permtemp_naics/      # permanent vs temporary employment
  t006_hrlywages_mean/          # mean hourly wages by NAICS and gender
  t007_emp_region_stat/         # labour-force status by region

Each bundle stands in a small mock LFS extract for the RTRAdata library and an RTRA-compatible %RTRAFreq / %RTRAMean shim, so the DATA step and the macro call run end to end in isolation. Run them all with ./jenner-check/run_jenner.sh --all, or POST any script.sas straight to the API or the hosted workspace.

I enjoyed reading these — the recoding is clean and self-documenting: the ERTAB-to-economic-region mapping reads like a legend, the age and firm-size bands are easy to follow, and routing every estimate through a single weighted-tally macro keeps the whole script family consistent. It made the bundles easy to build.

Merge it, cherry-pick a folder, or close it — no response expected either way. To opt out of any future PRs, just leave a comment with no-more-prs or open an issue titled jenner-check: opt out.


Lawrence W. Sinclair
CEO / Jenner Analytics Ltd
jenneranalytics.com
linkedin.com/in/lwsinclair/

Adds a jenner-check/ directory with one bundle per distinct RTRA
script technique, each runnable in isolation against the Jenner API:

  t001_emp_naics_agegrp    employment by NAICS and age group
  t002_ftpt_region         full-/part-time by economic region
  t003_empcow_naics        employment by class of worker
  t004_empsize_naics       employment by establishment size
  t005_emp_permtemp_naics  permanent vs temporary employment
  t006_hrlywages_mean      mean hourly wages by NAICS and gender
  t007_emp_region_stat     labour-force status by economic region

Each bundle ships a small mock LFS extract for the RTRAdata library
and an RTRA-compatible %RTRAFreq / %RTRAMean shim so the DATA step and
the macro call run end to end. Includes a pure-SAS runner
(run_jenner.sh/.bat/.sas) plus frozen expected results and readable
run snapshots per bundle.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant