Macros Listed by Product

Base SAS

C D T

Name
Syntax and Description
%COPY_TO_NEW_ENCODING(from_dsname, to_dsname, new_encoding)
Creates a new version of a data set with a specified encoding.
Product: Base SAS
Document: SAS National Language Support (NLS) Reference for SAS Viya Workbench
%COPY_TO_UTF8(from_dsname, to_dsname);
Creates a new version of a data set in UTF-8 encoding.
Product: Base SAS
Document: SAS National Language Support (NLS) Reference for SAS Viya Workbench
%DS2CSV(argument-1=value-1, argument-2=value-2 <,argument-3=value-3 ...>)
Converts SAS data sets to comma-separated value (CSV) files.
Product: Base SAS
Document: Base SAS Utilities for SAS Viya Workbench
%TSLIT (literal text)
Overrides the need for double quotation marks around literal text and puts single quotation marks around the input value.
Product: Base SAS
Document: Base SAS Utilities for SAS Viya Workbench
Last updated: September 24, 2026