Chapter Contents

Previous

Next
IMPLMAC

IMPLMAC



Controls whether SAS allows statement-style macro calls

Valid in: configuration file, SAS invocation, OPTIONS statement, Systems Options window
Category: Macro: SAS macro
PROC OPTIONS GROUP= MACRO


Syntax
Syntax Description
Details
See Also

Syntax

IMPLMAC | NOIMPLMAC

Syntax Description

IMPLMAC
causes the macro processor to examine the first word of every statement to see if that word is a statement-style macro call.

NOIMPLMAC
causes statement-style macro calls to be ignored. If the macro processor encounters a statement-style macro call when NOIMPLMAC is in effect, it treats the call as a SAS statement. The SAS compiler produces an error message if the statement is not valid or is not used correctly.


Details

The IMPLMAC system option controls whether macros that are defined as statement-style macros can be invoked with statement-style macro calls, or if the call must be a name-style macro call. These two statements illustrate statement-style and name-style macro calls, respectively:

Regardless of the setting of IMPLMAC, if the MACRO system option is in effect, you can call any macro with a name-style invocation, including those defined as statement-style macros.

PERFORMANCE NOTE: When you use IMPLMAC, processing time is increased because SAS checks every SAS statement to determine whether the first word is a macro call. When you use IMPLMAC with the MAUTOSOURCE system option, processing time increases because SAS also checks for a macro by that name in all macro autocall libraries that are defined in the SASAUTOS= option. When you use IMPLMAC and the MAUTOSOURCE system option with the MRECALL system option, processing time increases even further.

See Also

SAS Macro Language: Reference


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.