SYSPROD Function


SYSPROD Function

Determines if a product is licensed

Category: Special

Syntax

SYSPROD ( product- name )

Arguments

product-name

  • specifies a character expression that resolves to the name of a SAS product.

Details

The SYSPROD function returns 1 if a specific SAS software product is licensed, 0 if it is a SAS software product but not licensed for your system, and -1 if the product name is not recognized. Use SYSPROD in the DATA step, in an IML step, or in an SCL program.

If SYSPROD indicates that a product is licensed, it means that the final license expiration date has not passed. Use the SETINIT procedure to determine the final expiration date for the product.

It is possible for a SAS software product to exist on your system even though the product is no longer licensed. However, SAS cannot access this product.

You can enter the product name in uppercase, in lowercase, or in mixed case. You can prefix the product with 'SAS/'. You can prefix SAS/ACCESS product names with 'ACC-'. Use the SETINIT procedure to obtain a list of products available on your system.

Examples

These examples determine if a specified product is licensed:

  • x=sysprod('graph');

    • If SAS/GRAPH software is currently licensed, then SYSPROD returns a value of 1. If SAS/GRAPH software is not currently licensed, then SYSPROD returns a value of 0.

  • x=sysprod('abc');

    • SYSPROD returns a value of -1 because ABC is not a valid product name.

  • x=sysprod('base');

    • or

  • x=sysprod('base sas');

    • SYSPROD always returns a value of 1 because the Base product must be licensed for the DATA step to run successfully.




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net