The OPTMODEL Procedure |
PROC OPTMODEL supports several programming statements. You can perform various actions with these statements, such as reading or writing data sets, setting parameter values, generating text output, or invoking a solver.
Statements are read from the input and are executed immediately when complete. Note that certain statements can contain one or more substatements. The execution of substatements is held until the statements that contain them are submitted. Parameter values that are used by expressions in programming statements are resolved when the statement is executed. Note that this resolution might cause errors to be detected. For example, the use of undefined parameters is detected during resolution of the symbolic expressions from declarations.
A statement is terminated by a semicolon. The positions at which semicolons are placed are shown explicitly in the following statement syntax descriptions.
The programming statements can be grouped into these categories:
Control | Looping | General | Input/Output | Model |
DO | CONTINUE | Assignment | CLOSEFILE | DROP |
IF | FOR | CALL | CREATE DATA | EXPAND |
Null (;) | DO Iterative | RESET OPTIONS | FILE | FIX |
STOP | DO UNTIL | RESTORE | ||
DO WHILE | PUT | SOLVE | ||
LEAVE | READ DATA | UNFIX | ||
SAVE MPS | ||||
SAVE QPS |
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.