| Functions and CALL Routines |
| Category: | Numeric |
| Syntax | |
| Arguments | |
| Details | |
| Comparisons | |
| Examples | |
| Example 1: Determining Whether a Product Is Licensed and the Image Is Installed | |
Syntax |
| MODEXIST('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 |
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;
rc1=1 rc2=1
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.