% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/haven-sas.R
\name{write_sas}
\alias{write_sas}
\title{Write SAS files}
\usage{
write_sas(data, path)
}
\arguments{
\item{data}{Data frame to write.}

\item{path}{Path to file where the data will be written.}
}
\description{
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}}

\code{write_sas()} creates sas7bdat files. Unfortunately the SAS file format is
complex and undocumented, so \code{write_sas()} is unreliable and in most cases
SAS will not read files that it produces.

\code{\link[=write_xpt]{write_xpt()}} writes files in the open SAS transport format, which has
limitations but will be reliably read by SAS.
}
\keyword{internal}
