Previous Page | Next Page

Functions and CALL Routines

MODEXIST Function



Determines whether a software image exists in the version of SAS that you have installed.
Category: Numeric

Syntax
Arguments
Details
Comparisons
Examples
Example 1: Determining Whether a Product Is Licensed and the Image Is Installed

Syntax

MODEXIST('product-name')


Arguments

'product-name'

specifies a character constant, variable, or expression that is the name of the product image you are checking.


Details

The MODEXIST function determines whether a software image exists in the version of SAS that you have installed. If an image exists, then MODEXIST returns a value of 1. If an image does not exist, then MODEXIST returns a value of 0.


Comparisons

The MODEXIST function determines whether a software image exists in the version of SAS that you have installed. The SYSPROD function determines whether a product is licensed.


Examples


Example 1: Determining Whether a Product Is Licensed and the Image Is Installed

This example returns a value of 1 if a SAS/GRAPH image is installed in your version of SAS, and returns a value of 0 if the image is not installed. The SYSPROD function determines whether the product is licensed.

data _null_;
   rc1 = sysprod('graph');
   rc2 = modexist('sasgplot');
   put rc1= rc2=;
run;

Output from MODEXIST

rc1=1 rc2=1

Previous Page | Next Page | Top of Page