void WriteVarsToServerDataSet( Matrix mVarNames, String sLibref, String sDataSetName <, boolean bExcludeObsNotInAnalysis> )
void WriteVarsToServerDataSet( String[] asVarNames, String sLibref, String sDataSetName <, boolean bExcludeObsNotInAnalysis> )
Matrix mVarNames
A character matrix containing the names of the variables you want to copy from the DataObject to the data set on the server.
String[] asVarNames
The names of the variables you want to copy from the DataObject to the data set on the server.
String sLibref
The libref of the library in which the data set will be stored.
String sDataSetName
The name of the data set in which the variables will be stored. If the specified data set already exists, it will be overwritten.
boolean bExcludeObsNotInAnalysis
If bExcludeObsNotInAnalysis is true, observations that are excluded from analysis are not copied to the data set. If bExcludeObsNotInAnalysis is false, all
observations are copied to the data set. Calling this method without specifying the bExcludeObsNotInAnalysis parameter is equivalent to calling it with bExcludeObsNotInAnalysis equal to false.
This method copies specific variables from a DataObject to a data set on the server running the IMLPlus program.
Unlike the method WriteToServerDataSet, this method does not create a .dmm file.
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.CreateFromFile( "baseball" ); vars = { "no_hits", "no_runs" }; dobj.WriteVarsToServerDataSet( vars, "work", "baseball_subset" );