SAS Bridge to ESRI  

SAS Bridge for ESRI Classes

SAS Bridge for ESRI  

Use the following classes to create custom code:

  • DataSet object, which creates a SAS data set.
  • Server object, which creates and accesses a SAS workspace.
DataSet object

Creates a SAS data set from an ArcGIS map layer or table.

Attributes

DSName property

Methods

Create method
Fields method
LayerFields method
LayerTable method
Rows method

Examples:

See Use SAS Bridge for ESRI Objects in a Custom Application.
DSName property

Specifies the name of the SAS data set that you want to create. Use this property to get and set the name.

Type: String

Create method

Creates a SAS data set. This is a shorthand method that encapsulates the LayerTable, LayerFields, Fields, and Rows methods.

Parameters:  
Name
Direction
Type
Description
SASws in  SAS Workspace SAS workspace
pMxDoc in esriCore.IMxDocument Map document
expType in ExportType enum Alll or Selected
Verbose in Boolean True or False

Returns: True or False

Fields method

Creates the fields in the SAS data set. This is the third method of the DataSet object to be called during an export.  It opens the SAS data set and creates the fields.

Parameters: None

Returns: True or False

LayerFields method

Retrieves the attribute table's fields. This is the second method of the DataSet object to be called during an export.  It retrieves the attribute table fields as an esricore.IFields.

Parameters: None

Returns: True or False

LayerTable method

Retrieves the map layer's attribute table. This is the first method of the DataSet object to be called during an export.  It retrieves the layer's attribute table as an esricore.ITable.

Parameters: None

Returns: True or False

Rows method

Creates the rows in the SAS data set. This is the fourth method of the DataSet object to be called during an export.  It writes the data from the layer's attribute table to the SAS data set.

Parameters: None

Returns: True or False

Server object

Creates and accesses a SAS workspace.

Attributes

LibPath read-only property
Workspace read-only property

Methods

StartSAS method
StopSAS method

Examples:

See Use SAS Bridge for ESRI Objects in a Custom Application.
LibPath read-only property

Returns the specified SAS library.

Type: String

Parameters:
Name
Direction
Type
Description
Library in string The string parameter should be a current library for this SAS workspace, for example, "SASUSER".

Workspace read-only property

Returns the SAS workspace that was started with the StartSAS method.

Type: String

StartSAS method

Opens a SAS workspace (SAS session).

Parameters:
Name
Direction
Type
Description
strConnect in string Contains the connection information for starting a SAS session.  If this string is blank, then a local SAS session is started. 

Note: For Version 1.0 of SAS Bridge for ESRI this string should remain blank.

Returns: True or False

StopSAS method

Closes a SAS workspace (SAS session) and frees any associated resources.

Parameters: None

Returns: True or False