SAS To Table (Conversion Tools)
Summary
Converts a SAS dataset to a table.
Usage
This tool supports connection to SAS Desktop installed on a local computer or connection to SAS Cloud Analytic Services (CAS). If you're using CAS, the order of the records may change during conversion.
Note:
As of September 2025, the
swatPython package is not compatible with Python version 3.13, which is the required version for ArcGIS Pro 3.6. Because CAS connections rely on this package, attempting to run this tool using CAS will result in an error. Support for CAS connections will be enabled again when theswatpackage is compatible with the Python version included with ArcGIS Pro.The Custom Session Configuration File parameter must be used for remote deployments of SAS, such as Workspace Server, UNIX, and Mainframe. If SAS is installed on the same machine as ArcGIS Pro, the configuration file is not required.
Provide the SAS dataset in the form
libref.tablenamein whichlibrefis the name of a SAS or CAS library andtablenameis the name of the SAS dataset. For example,SASUSER.MYTABLEreferences a SAS dataset namedMYTABLEin theSASUSERlibrary.SAS libraries, dataset names, and column names are not case sensitive. For example,
SASUSER.MYTABLEis treated the same assasuser.mytableandSASUser.MyTable.The number of records that can be converted depends on the available memory of your computer.
SAS dataset column formats will not be preserved in the output table.
For a local SAS deployment, the
SASUSER,SASHELP,MAPS,MAPSSAS, andMAPSGFKlibraries are available by default. To use a custom library, the libref must be defined in the SAS Autoexec file.When connecting to CAS, you can authenticate your credentials in the following ways:
Provide your username and password using the CAS Username and Password parameters. The password will be hidden and not accessible through geoprocessing history.
Provide an authorization (Authinfo) file using the CAS Authorization (Authinfo) File parameter containing your username and encoded password. This option allows you to avoid retyping your password each time you run the tool.
To automatically use an Authinfo file each time you use the tool, name the file
_authinfo(including the underscore) and save it in the Windows home directory (usuallyC:\Users\<username>). The file can have any file extension, such as_authinfo.txtor_authinfo.netrc. If the file exists in your home directory, the CAS Authorization (Authinfo) File parameter will automatically populate with the file. This allows you to avoid browsing for the same Authinfo file each time you use the tool.The Authinfo file can contain connection information for multiple hosts and ports, but for the simplest case of a single user connecting to a single host and port, the Authinfo file will be a single line with the following syntax:
default user MYUSERNAME password {SAS004}1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZYou can encode your password for the file using the PROC PWENCODE SAS procedure.
Learn more about creating Authinfo files and encoding passwords
The
WORKlibrary is a temporary workspace that is created when a SAS session starts, and all files are deleted when the session closes. This tool starts and closes a new SAS session during operation, so you should not use theWORKlibrary in this tool.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input SAS Dataset (libref.tablename) |
The input SAS dataset. Provide the dataset in the form |
String |
|
Output Table |
The output table. |
Table |
|
Download SAS Dataset from SAS Cloud Analytic Services (CAS) (Optional) |
Specifies whether the input SAS dataset will be downloaded from CAS or accessed from a local SAS library.
|
Boolean |
|
CAS Hostname URL (Optional) |
The URL of the CAS host. |
String |
|
Port (Optional) |
The port of the CAS connection. |
Long |
|
CAS Username (Optional) |
The username for the CAS connection. |
String |
|
Password (Optional) |
The password for the CAS connection. This password is hidden and not accessible after running the tool. |
String Hidden |
|
Custom Session Configuration File (Optional) |
The file specifying custom configurations for the SAS session. The file is only required for customized local or remote SAS deployments. |
File |
|
CAS Authorization (Authinfo) File (Optional) |
The file containing authentication information when connecting to CAS. The file must contain the username and encoded password for the connection. If a file is provided, the CAS Username and Password parameters do not need to be specified. |
File |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes