writeSASXPT exports the incoming table to a SAS XPORT (XPT v5) file. It can create a new .xpt file or append a dataset to an existing .xpt.

Parameters:
File name
Action
Dataset Name
Dataset Label
Columns names
Character encoding
When a "String" column is too small
Dates (as String)
Date (as String)
Date (as Elapsed-Time)
Date-times (as Elapsed-Time)

Parameters:

Parameters:
writeSASXPT exports the incoming table to a SAS XPORT (XPT v5) file. It can create a new .xpt file or append a dataset to an existing .xpt. It also lets you:
Typical use cases:
.xpt for exchange.Upstream input: connect a table (e.g., from readCSV).
Open writeSASXPT → Standard:
records/out.xpt (or any path; your screenshots use records/out.xpt)Create new .xpt fileDEMOuse the same column names as in graph (possibly truncated)utf-8truncate with warnings (safer first run)Run the graph.
Result: a file like out.xpt shown under Process → Records (click Download).
readCSV
assets/xpt_demo_min.csv,, Header ONwriteSASXPT → Standard
records/out.xptCreate new .xpt fileDEMOuse the same column names as in graph (possibly truncated)utf-8truncate with warningsRun → Download out.xpt from Process → Records.
File name
Path for the .xpt. Use a pin binding or a literal path, e.g. records/out.xpt or assets/out.xpt.
Action
Create new .xpt file — start a new container.Append to .xpt file — add a new dataset to an existing XPT (mind 8-char dataset name rule).Dataset Name
≤ 8 chars, uppercase, no spaces (e.g., DM, AE, DEMO, ORDERS).
Dataset Label
Optional, ≤ 40 chars.
Columns names
use the same column names as in graph (possibly truncated) — convenient; be aware of XPT limits.use the same column names as in graph (abort if truncation) — safer for regulated workflows.column names are C1, C2, … and column labels are ETL column names — use auto short names, keep human-friendly labels.Character encoding: utf-8 (recommended) or Latin1.
When a "String" column is too small
abort execution — strict; fails fast.truncate with warnings — practical for exploration; review warnings.Dates (as String) / Date (as String)
Map string columns to SAS date/datetime by specifying columns and format masks (e.g., yyyy-MM-dd, yyyy-MM-dd hh:mm:ss).
Date(s) as Elapsed-Time
If your date/time are numeric elapsed units since a Reference date (e.g., seconds since 1970-01-01 00:00:00), specify:
second, minute, hour, day, week)Use to pre-size text fields and avoid truncation:
First action: set Action = Create new .xpt file, Dataset Name = DM.
Duplicate the action for a second input (e.g., AE) and set:
Append to .xpt filerecords/out.xpt)AERun both in sequence. The same .xpt will contain datasets DM and AE.
“Abort due to truncation / too-small string”
String Columns tab and increase lengths (via f1/f2 or set explicit max length).truncate with warnings for a trial run.“XPT name violations”
File not created / path error
records/ exists or auto-creation is enabled).After a successful run, download the XPT from: Process → Records → out.xpt.
If you used a different name or folder, it will appear under that path.