BookmarkSubscribeRSS Feed
shubham1
Calcite | Level 5

Hello 

 

I have written below statement 

 

%let ardato=01feb2018;

Title1 'data pr' &ardato;

 

below is the warning coming up 

the title statement is ambiguos due to invalid options or unquoted text 

 

how can i suppres the warning 

 

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

The form of the title statement (without formatting) is:

title <text string>;

To resolve macro variables within text, you need to use double quotes = ".  So in your given example:

title1 "data pr &ardato.";

Note the double quotes surrounding all the text.  Also, always put the dot after the macro, you may get away with it in most circumstances, but it is good practice to always put it there.

singhsahab
Lapis Lazuli | Level 10

To resolve macro variable you have ti use double quotation like "&macrovarname." 

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

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2156 views
  • 1 like
  • 3 in conversation