Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
/ sas-convert Public archive

Simple SAS7BDAT to CSV conversion tool based on the Parso library.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
COPYING
Notifications You must be signed in to change notification settings

thehyve/sas-convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sas-convert

Simple SAS7BDAT to CSV conversion tool based on the Parso library and opencsv.

Download

The latest version can be downloaded here: sas-convert-0.6.zip.

# Download sas-convert
curl -L https://github.com/thehyve/sas-convert/releases/download/0.6/sas-convert-0.6.zip -o sas-convert-0.6.zip
unzip sas-convert-0.6.zip

Usage

Usage:

./sas-convert/sas-convert <file.sas7bdat> [file.csv]

By default, the first three lines of output will describe the columns: labels, names, and formats, respecitively. To only output one line of header information containing just column names, use the --only-column-names or -o option:

./sas-convert/sas-convert -o <file.sas7bdat> [file.csv]

By default, if you don't pass the second argument, the output is sent to stdout. If instead you'd like to save it to an automatically named file based on the name of the input file, the --auto-create-csv or -a option will save this output to my-filename.csv:

./sas-convert/sas-convert -a my-filename.sas7bdat

Build and run from source

mvn package
./sas-convert <file.sas7bdat> [file.csv]

License

Copyright © 2015–2018   The Hyve.

sas-convert is licensed under the MIT License. See the file LICENSE.