String GetServerDataSetName()
The return value is a reference to a String object containing the name of the DataObject in a form that is compatible with the naming rules for SAS library members.
This method returns the name of the DataObject in a form that is compatible with the naming rules for SAS library members.
When an IMLPlus program needs to copy information from a DataObject to a data set in a SAS library, the program must provide a name for the data set. The program could use a fixed name for the data set, such as MYDATA, but it is often preferable to use a name that resembles the actual name of the DataObject. Every DataObject has a name that conforms to the rules for filenames in Microsoft Windows. Because those rules permit names that are not valid for SAS library members, the program cannot use the Windows filename of the DataObject to create a new data set within a SAS library. Instead, the program should use the name returned by the method GetServerDataSetName. This method applies the following transformations to the Windows filename to convert it to a form that is compatible with a SAS library:
The following methods copy information from a DataObject to a data set in a SAS library:
declare DataObject dobj;
dobj = DataObject.Create( "1 Really Great! Name" );
name = dobj.GetServerDataSetName();
print name;