DataObject.CreateFromServerDataSet

Prototypes

static DataObject CreateFromServerDataSet( String sLibrefDotDataSetName )

static DataObject CreateFromServerDataSet( <String sName,> String sLibref, String sDataSetName )

Return Value

The return value is a reference to the newly created object of the DataObject class.

Parameters

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.

Remarks

This method creates an object of the DataObject class and populates it with data from the specified data set on the server running the IMLPlus program. 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.

Example
declare DataObject dobj;
dobj = DataObject.CreateFromServerDataSet( "SASHELP.prdsale" );
DataTable.Create( dobj ).ActivateWindow();
See Also

DataObject.CreateFromOtherServerDataSet

DataObject.CreateFromServerDataSetEx