BookmarkSubscribeRSS Feed

An Error in the SAS Macro Language: Reference

Started ‎12-01-2015 by
Modified ‎12-01-2015 by
Views 1,067

An error was reported in the “INTO Clause” dictionary entry in the SAS Macro Language: Reference.

In the following example, the log output should have quotation marks:

 

Example 3: Storing Values of All Rows in One Macro Variable

 

This example stores all values of the column (variable) STYLE in the macro variable TYPES and separates the values with a comma and a blank.

 

proc sql;

   select distinct quote(style)

      into :types separated by ', '

      from sasuser.houses;

%put Types of houses=&types.;

 

When this program executes, this line is written to the SAS log:

 

Types of houses=CONDO, RANCH, SPLIT, TWOSTORY

 

The log output should have quotation marks:

 

Types of houses="CONDO   ", "RANCH   ", "SPLIT   ", "TWOSTORY"

 

The documentation will be corrected in the next SAS software release.

 

 

Version history
Last update:
‎12-01-2015 10:40 AM
Updated by:

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

SAS AI and Machine Learning Courses

The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.

Get started

Article Labels
Article Tags