Base SAS Functions Accessible from SAS/IML Software

You can call most functions available in Base SAS software from SAS/IML programs. If you call a Base SAS function with a matrix argument, the function will usually act elementwise on each element of teh matrix.

The following Base SAS functions are either not available from SAS/IML software, or behave differently from the Base SAS function of the same name.

Function

Comment

CALL CATS

return variable must be preinitialized

DIF

not supported; use the SAS/IML DIF function instead.

DIM

not supported

HBOUND

not supported

LAG

not supported; use the SAS/IML LAG function instead.

LBOUND

not supported

MOD

base function performs "fuzzing;" the SAS/IML function does not

PUT

Use the PRINT statement instead

CALL PRXNEXT

return variables must be preinitialized

CALL PRXPOSN

return variables must be preinitialized

CALL PRXSUBSTR

return variables must be preinitialized

CALL RXCHANGE

return variables must be preinitialized

CALL RXMATCH

return variables must be preinitialized

CALL RXSUBSTR

return variables must be preinitialized

CALL SCAN

return variables must be preinitialized

CALL SCANQ

return variable must be preinitialized

VVALUE

not applicable: interrogates DATA step variables

VVALUEX

not applicable: interrogates DATA step variables

VNEXT

not applicable: interrogates DATA step variables

There are also some Base SAS features that are not supported by the SAS/IML language. For example, the DATA step permits N-literals (strings that end with ’N’) to be interpreted as the name of a variable, but the SAS/IML language does not.

The following Base SAS functions can be called from SAS/IML. The functions are documented in the SAS Language Reference: Dictionary. In some cases, SAS/IML does not accept all variations in the syntax. For example, SAS/IML does not accept the OF keyword as a way to generate an argument list in a function.

The functions displayed in italics are documented elsewhere in this user’s guide. These functions operate on matrices in addition to scalar values, as do many of the mathematical and statistical functions.