Chapter Contents


SAS Macro Language: Reference

Changes and Enhancements for All Operating Environments

This chapter describes the features of the SAS Macro Language that have been implemented or enhanced since Release 6.12. If you use SAS software in an OS/390, CMS, or OpenVMS VAX environment, then also see Additional Changes and Enhancements for OS/390, CMS, and OpenVMS VAX.

Note:   Information about changes and enhancements that were implemented in Version 8 is preceded by [IMAGE]. All other changes and enhancements described in this section were implemented in Version 7. In other words, if your site upgraded directly from Version 6 to Version 8, then all of the changes and enhancements described here are new to you. If you upgraded from Version 7 to Version 8, then only the items preceded by [IMAGE] are new to you.  [cautionend]

Automatic Macro Variables

The following automatic macro variables are available in all operating environments.

contains the current condition code that SAS returns to your operating environment (the operating environment condition code).

contains the character width value.

contains a SAS date value in DATE9. format, which displays a 2-digit date, the first three letters of the month name, and a 4-digit year.

contains a return code that reflects an action taken on a damaged data set.

contains the process ID of the current SAS process.

contains the process name of the current SAS process.

contains the identification number that was generated by the last STARTSAS statement.

contains the process name that was generated by the last STARTSAS statement.

contains the user ID or login of the current SAS process.

For more information, see SAS Macro Language: Reference.

Macro Statements

[IMAGE] In Version 8, the %PUT statement has been enhanced. It displays text in different colors to generate messages that look like SAS-generated ERROR, NOTE, and WARNING messages.

In Version 8, this new macro statement creates a new macro variable or modifies the value of an existing macro variable on a remote host or server.

Chapter Contents



Top of Page

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