This function is experimental and needs feedback/suggestions to flesh
it out fully. If this feature is important to you, please consider
opening an issue on github to suggest improvements.
This function relies on exportBulkRecords
to do the
bulk of the export before formatting for SAS. ... are supplied to
exportBulkRecords so full user inversion of control still applies.