static DataObject CreateFromOtherServerDataSet( String sServerName, String sLibrefDotDataSetName )
static DataObject CreateFromOtherServerDataSet( <String sName,> String sServerName, String sLibref, String sDataSetName )
The return value is a reference to the newly created object of the DataObject class.
String sServerName
The name of the server containing the data set to use to populate the DataObject. This name must either be "My SAS Server"
(which refers to the installation of SAS on your computer) or the name of a logical SAS Workspace Server defined in the SAS Metadata Server.
String sLibrefDotDataSetName
A string of the form "libref.member" that specifies the data set to use to populate the DataObject. You
do not need to specify the libref if it is WORK.
String sLibref
The libref of the library containing the data set to use to populate the DataObject.
String sDataSetName
The name of the data set to use to populate the DataObject.
String sName
The name to assign to the DataObject.
This method creates an object of the DataObject class and populates it with data from the specified data set on the specified server. The server may or may not be the server running the IMLPlus program. The only component of SAS that must be installed on the server is Base. If you do not specify the parameter sName, the string sDataSetName is used as the name of the DataObject.
If the libref is not assigned but the library is defined in the SAS Metadata Server, IMLPlus will assign the libref using the Metadata LIBNAME Engine.
For information about how the DataObject class supports SAS data set passwords, refer to Password Support.
declare DataObject dobj; dobj = DataObject.CreateFromOtherServerDataSet( "My SAS Server", "SASHELP.prdsale" ); DataTable.Create( dobj ).ActivateWindow();