The OPTMODEL Procedure

CALL Statement

CALL name ( argument-1 [, ...argument-n] );

The CALL statement invokes the named library subroutine. The values that are determined for each argument expression are passed to the subroutine when the subroutine is invoked. The subroutine can update the values of PROC OPTMODEL parameters and variables when an argument is an identifier-expression (see the section "Identifier Expressions"). For example, the following code sets the parameter array a to a random permutation of 1 to 4:

  
    proc optmodel; 
       number a{i in 1..4} init i; 
       number seed init -1; 
       call ranperm(seed, a[1], a[2], a[3], a[4]);
 

See Chapter 4, "Functions and CALL Routines," in SAS Language Reference: Dictionary for a list of CALL routines.

Previous Page | Next Page | Top of Page