Reading and Writing Data |
Tables 2.2 - 2.4 summarize reading and writing data in IMLPlus programs.
Table 2.2: Reading Data into a DataObjectSource | Statement |
---|---|
Client data set | DataObject.CreateFromFile |
Server data set | DataObject.CreateFromServerDataSet |
run CopyServerDataToDataObject module | |
IML matrix | DataObject.Create |
DataObject.AddVar | |
DataObject.AddVars |
Destination | Statement |
---|---|
Client data set | DataObject.WriteToFile |
Server data set | DataObject.WriteToServerDataSet |
DataObject.WriteVarsToServerDataSet | |
IML matrix | DataObject.GetVarData |
Action | Statement |
---|---|
Read from server into IML | USE, READ |
Write server data set from IML | 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 IML DELETE subroutine.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.