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.
select distinct quote(style)
into :types separated by ', '
%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.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.