BookmarkSubscribeRSS Feed
Geo-
Quartz | Level 8

May anyone know what this line mean and give me a exact case on how it use.

I think cust_id and phone_num are two column names.

%let cust = %str(cust_id phone_num);

 ------------------------------------update---------------------------------------

Actually,I wanted to know STR statement usage and for this specific case which I could not find too much information in the doc..

4 REPLIES 4
Vince_SAS
Rhodochrosite | Level 12

The %LET statement creates a global macro variable with a value of the literal text within the parentheses.  To display the value in the SAS log, submit this code:

 

%put &CUST;

 

SAS® 9.4 Macro Language: Reference, Fifth Edition
%LET Statement
https://go.documentation.sas.com/?docsetId=mcrolref&docsetTarget=p18wszyqagt1qcn1t6vo5piib1bq.htm&do...

 

SAS® 9.4 Macro Language: Reference, Fifth Edition
https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=mcrolref&docsetTarget=...

 

Vince DelGobbo

SAS R&D

Geo-
Quartz | Level 8
have edited the message.maybe I am not clearly enough at first.thank you for your time
novinosrin
Tourmaline | Level 20

If you want to learn about macro quoting , assuming you are sound in other facets of the language, SAS docs alone will help. Otherwise, please get this book

 

https://www.sas.com/store/books/categories/usage-and-reference/carpenter-s-complete-guide-to-the-sas...

 

Vince_SAS
Rhodochrosite | Level 12

The topic of macro quoting is too complicated to explain in a forum post.

 

You have been recommended a good book.  See also this documentation:

 

SAS® 9.4 Macro Language: Reference, Fifth Edition
https://go.documentation.sas.com/?docsetId=mcrolref&docsetTarget=p07u5itr1teq0dn1bx0lli1ri5dy.htm&do...

 

Vince DelGobbo
SAS R&D

SAS INNOVATE 2024

Innovate_SAS_Blue.png

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. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 581 views
  • 0 likes
  • 3 in conversation