SAS (.xpt) to CSV & Parquet Converter

tools/sas-xptFormat Readers

Read CDC NHANES and FDA clinical SAS XPORT files without a SAS license.

Decodes SAS Transport (.xpt v5/v8) files using microdata.sas_xpt with staged disk streaming. Turns clinical and federal survey data into typed SQL, Parquet, and CSV outputs.

Use in chatDownload NHANES DEMO and LAB .xpt files from CDC, join on SEQN in DuckDB, and publish a clean health dataset.

What SAS (.xpt) to CSV & Parquet Converter does

SAS (.xpt) to CSV & Parquet Converter removes the need for a SAS license when working with CDC NHANES, BRFSS, and FDA SDTM/ADaM submissions. The microdata.sas_xpt@1.0.0 library reads binary XPORT v5 and v8 records directly inside the runtime.

You can join survey cycles in DuckDB SQL, annotate lab units, and export results as Parquet, CSV, JSON, or through REST API and MCP endpoints.

Input & output example

Streams SAS XPORT clinical and public-health files without SAS licenses.

CDC NHANES .xpt transport file

SEQN: 130378 | RIDAGEYR: 42 | BMXBMI: 24.7

Normalized clinical table

seqnage_yearsbmi
1303784224.7

How it works

  1. 1

    Link .xpt source URLs

    Point the connector at public or credentialed SAS Transport (.xpt) endpoints from CDC or FDA releases.

  2. 2

    Stream via microdata.sas_xpt

    Pin microdata.sas_xpt@1.0.0 to decode typed numeric, date, and character variables from v5 or v8 files.

  3. 3

    Join, document, and publish

    Harmonize modules in DuckDB SQL, verify keys, and serve via Parquet, REST API, and MCP.

Try with an agent

Pre-loads SAS (.xpt) in chat

Join NHANES demographic and lab XPT files

Download NHANES DEMO and LAB .xpt files from CDC, join on SEQN in DuckDB, and publish a clean health dataset.

Common use cases

  • CDC NHANES nutrition and biomarker surveys
  • FDA CDISC clinical submission datasets
  • Federal health and demographic microdata

Details

Identifier
sas-xpt
Inputs
.xpt (SAS XPORT v5/v8)
Outputs
Typed SQL & Parquet tables
Dataset delivery
Parquet · CSV · JSON · SQL · REST API · MCP

Frequently asked questions

Does it require a SAS installation?

No. microdata.sas_xpt decodes XPORT files inside the Mostly Right runtime.

Does it support both SAS XPORT Version 5 and Version 8?

Yes. microdata.sas_xpt handles both v5 and v8 SAS Transport binary headers and record layouts.

Can multiple NHANES survey waves be combined into one table?

Yes. Declare each wave as a source and union them with a wave_cycle column in DuckDB SQL.

Related tools