Summary of Reading and Writing Data

Tables 2.2 through 2.4 summarize reading and writing data in IMLPlus programs.

Table 2.2 Reading Data into a DataObject

Source

Statement

Client data set

DataObject.CreateFromFile

Server data set

DataObject.CreateFromServerDataSet

 

run CopyServerDataToDataObject module

SAS/IML matrix

DataObject.Create

 

DataObject.AddVar

 

DataObject.AddVars

Table 2.3 Copying Data from a DataObject

Destination

Statement

Client data set

DataObject.WriteToFile

Server data set

DataObject.WriteToServerDataSet

 

DataObject.WriteVarsToServerDataSet

SAS/IML matrix

DataObject.GetVarData

Table 2.4 Reading and Writing Server Data in SAS/IML

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.