READ DATA Statement
READ DATA Statement
READ DATA SAS-data-set NOMISS INTO set-name = [ read-key-columns ] read-columns ;
The READ DATA statement reads data from a SAS data set into PROC OPTMODEL parameter and variable locations. The arguments to the READ DATA statement are as follows:
SAS-data-set
specifies the input data set name and options.
set-name
specifies a set parameter in which to save the set of observation key values read from the input data set.
read-key-columns
provide the index values for array destinations.
read-columns
specify the data values to read and the destination locations.
************************************
I have posted several optmodel example in the past. You can search them as example reference
|