<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Warning messages in output text? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575048#M162585</link>
    <description>&lt;P&gt;should this&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string" style="box-sizing: inherit; color: maroon; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;"Check &amp;amp;KK:&amp;amp;&amp;amp;&amp;amp;inp_&amp;amp;KK.a"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string" style="box-sizing: inherit; color: maroon; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;be this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string" style="box-sizing: inherit; color: maroon; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;"Check &amp;amp;KK.:&amp;amp;&amp;amp;&amp;amp;inp._&amp;amp;KK.a"&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2019 20:16:44 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2019-07-19T20:16:44Z</dc:date>
    <item>
      <title>Warning messages in output text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575046#M162584</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a program below.&amp;nbsp; However, I got a warning message from the LOG screen.&amp;nbsp; It stated that "&lt;SPAN&gt;WARNING: The TITLE statement is ambiguous due to invalid options or unquoted text.&lt;/SPAN&gt;"&amp;nbsp; &amp;nbsp;Please see the details below.&amp;nbsp; &amp;nbsp;Could anyone help me where things went wrong?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let i=(&amp;amp;KK + 1);
%let KK=%eval(&amp;amp;i);


proc sql;
	create table INP&amp;amp;KK as
 	select site,ID,ICU,Days,Admit,Date
 	from test
 	where ICU=1 and Admit ne '01JAN8888'd and 
		( Days=. or Admit=. or (Admit lt Date) or (Admit gt "&amp;amp;enddate"d))
	order by site;

	%let inp_&amp;amp;KK.a=%str(ICU = 1 and (Admit ne '01JAN8888'd) and (Days=. or Admit=.) );
	%let inp_&amp;amp;KK.b=%str( or (Admit lt Date) or (Admit gt "&amp;amp;enddate"d));

	ods proclabel "Check &amp;amp;KK:&amp;amp;&amp;amp;&amp;amp;inp_&amp;amp;KK.a";

data INP&amp;amp;KK;
	set INP&amp;amp;KK;
	
	var1="ICU="||trim(left(put(ICU,5.)))
	||','||"Days="||trim(left(put(Days,5.)))
	||','||"Admit="||trim(left(put(Admit,mmddyy10.)))
	||','||"Date="||trim(left(put(Date,mmddyy10.)));
run;
%createINP;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;MLOGIC(CREATEINP): Beginning execution.&lt;BR /&gt;SYMBOLGEN: Macro variable KK resolves to 11&lt;BR /&gt;MPRINT(CREATEINP): proc print data = INP11 noobs label;&lt;BR /&gt;MPRINT(CREATEINP): by Site;&lt;BR /&gt;SYMBOLGEN: Macro variable KK resolves to 11&lt;BR /&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;BR /&gt;SYMBOLGEN: Unable to resolve the macro variable reference &amp;amp;inp_&lt;BR /&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;BR /&gt;SYMBOLGEN: Macro variable KK resolves to 11&lt;BR /&gt;SYMBOLGEN: Macro variable INP_11A resolves to ICU = 1 and (Admit ne&lt;BR /&gt;'01JAN8888'd) and (Day=. or Admit=.)&lt;BR /&gt;SYMBOLGEN: Some characters in the above value which were subject to macro quoting have&lt;BR /&gt;been unquoted for printing.&lt;BR /&gt;MPRINT(CREATEINP): title2 "Check 11:ICU = 1 and (Admit ne '01JAN8888'd) and&lt;BR /&gt;(Day=. or Admit=.) ";&lt;BR /&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;BR /&gt;SYMBOLGEN: Macro variable KK resolves to 11&lt;BR /&gt;SYMBOLGEN: Macro variable INP_11B resolves to or (Admit lt Date) or&lt;BR /&gt;(Admit gt "30Nov2017"d)&lt;BR /&gt;SYMBOLGEN: Some characters in the above value which were subject to macro quoting have&lt;BR /&gt;been unquoted for printing.&lt;BR /&gt;NOTE: Line generated by the macro variable "INP_11B".&lt;BR /&gt;1 " or (Admit lt Date) or (Admit gt "30Jun2007"d)&lt;BR /&gt;---------------------------------------------------------&lt;BR /&gt;49&lt;BR /&gt;WARNING: The TITLE statement is ambiguous due to invalid options or unquoted text.&lt;BR /&gt;MPRINT(CREATEINP): title3 " or (Admit lt Date) or (Admit gt&lt;BR /&gt;"30Jun2007"d)";&lt;BR /&gt;MPRINT(CREATEINP): run;&lt;BR /&gt;NOTE: No observations in data set WORK.INP11.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable KK resolves to 11&lt;BR /&gt;MPRINT(CREATEINP): proc format CNTLOUT=fmt11;&lt;BR /&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future&lt;BR /&gt;SAS release. Inserting white space between a quoted string and the&lt;BR /&gt;succeeding identifier is recommended.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable KK resolves to 11&lt;BR /&gt;SYMBOLGEN: Macro variable KK resolves to 11&lt;BR /&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;BR /&gt;SYMBOLGEN: Unable to resolve the macro variable reference &amp;amp;inp_&lt;BR /&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;BR /&gt;SYMBOLGEN: Macro variable KK resolves to 11&lt;BR /&gt;SYMBOLGEN: Macro variable INP_11A resolves to ICU = 1 and (Admit ne&lt;BR /&gt;'01JAN8888'd) and (Day=. or Admit=.)&lt;BR /&gt;SYMBOLGEN: Some characters in the above value which were subject to macro quoting have&lt;BR /&gt;been unquoted for printing.&lt;BR /&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;BR /&gt;SYMBOLGEN: Macro variable KK resolves to 11&lt;BR /&gt;SYMBOLGEN: Macro variable INP_11B resolves to or (Admit lt Date) or&lt;BR /&gt;(Admit gt "30June2007"d)&lt;BR /&gt;SYMBOLGEN: Some characters in the above value which were subject to macro quoting have&lt;BR /&gt;been unquoted for printing.&lt;BR /&gt;NOTE: Line generated by the macro variable "INP_11B".&lt;BR /&gt;1 "11:ICU = 1 and (Admit ne '01JAN8888'd) and (Day=. or&lt;BR /&gt;-------------------------------------------------------------------------&lt;BR /&gt;49&lt;BR /&gt;1 ! Admit=.) or (Admit lt Date) or (Admit gt "30Jun2007"d)&lt;BR /&gt;MPRINT(CREATEINP): value INP 11="11:ICU = 1 and (Admit ne '01JAN8888'd) and&lt;BR /&gt;(Day=. or Admit=.) or (Admit lt Date) or (Admit gt "30Jun2007"d)";&lt;BR /&gt;NOTE: Format INP is already on the library WORK.FORMATS.&lt;BR /&gt;NOTE: Format INP has been output.&lt;BR /&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future&lt;BR /&gt;SAS release. Inserting white space between a quoted string and the&lt;BR /&gt;succeeding identifier is recommended.&lt;/P&gt;
&lt;P&gt;MPRINT(CREATEINP): run;&lt;BR /&gt;NOTE: PROCEDURE FORMAT used (Total process time):&lt;BR /&gt;real time 0.13 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;/P&gt;
&lt;P&gt;NOTE: The data set WORK.FMT11 has 6 observations and 6 variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 20:12:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575046#M162584</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2019-07-19T20:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages in output text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575048#M162585</link>
      <description>&lt;P&gt;should this&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string" style="box-sizing: inherit; color: maroon; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;"Check &amp;amp;KK:&amp;amp;&amp;amp;&amp;amp;inp_&amp;amp;KK.a"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string" style="box-sizing: inherit; color: maroon; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;be this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string" style="box-sizing: inherit; color: maroon; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;"Check &amp;amp;KK.:&amp;amp;&amp;amp;&amp;amp;inp._&amp;amp;KK.a"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 20:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575048#M162585</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-07-19T20:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages in output text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575050#M162586</link>
      <description>&lt;P&gt;I feel like something wrong in the text inside&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;ICU &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; and &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Admit &lt;SPAN class="token operator"&gt;ne&lt;/SPAN&gt; &lt;SPAN class="token datetime number"&gt;'01JAN8888'd&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; and &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Days&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt; or Admit&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;or &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Admit &lt;SPAN class="token operator"&gt;lt&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; or &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;Admit &lt;SPAN class="token operator"&gt;gt&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"&amp;amp;enddate"&lt;/SPAN&gt;d&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 20:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575050#M162586</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2019-07-19T20:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages in output text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575054#M162587</link>
      <description>&lt;P&gt;You did not show the code that is generating the TITLE statement.&lt;/P&gt;
&lt;P&gt;But from the LOG it looks like you are just putting quotes around the value of one or more macro variables that might themselves already have quotes in them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One easy fix is to use the QUOTE() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let mvar1=Has no quotes;
%let mvar2=Has "some" quotes;
title3 %sysfunc(quote(&amp;amp;mvar1 or &amp;amp;mvar2));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2019 20:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575054#M162587</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-19T20:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Warning messages in output text?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575056#M162588</link>
      <description>&lt;P&gt;Your code does not show a title statement anywhere that I can see. You really should show the entire definition of the macro code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 20:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-messages-in-output-text/m-p/575056#M162588</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-19T20:38:33Z</dc:date>
    </item>
  </channel>
</rss>

