Reading and Writing Data |
Tables 2.2 through 2.4 summarize reading and writing data in IMLPlus programs.
Source |
Statement |
---|---|
Client data set |
DataObject.CreateFromFile |
Server data set |
DataObject.CreateFromServerDataSet |
run CopyServerDataToDataObject module |
|
SAS/IML matrix |
DataObject.Create |
DataObject.AddVar |
|
DataObject.AddVars |
Destination |
Statement |
---|---|
Client data set |
DataObject.WriteToFile |
Server data set |
DataObject.WriteToServerDataSet |
DataObject.WriteVarsToServerDataSet |
|
SAS/IML matrix |
DataObject.GetVarData |
Action |
Statement |
---|---|
Read from server into matrices |
USE, READ |
Write server data set from matrices |
CREATE, APPEND |
Note:If you create a server data set by using the WriteToServerDataSet or WriteVarsToServerDataSet method, you might want to delete the data set after you are finished with it by calling the DELETE subroutine.
Copyright © SAS Institute, Inc. All Rights Reserved.