<?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: Quote is macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140241#M28279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What's your intended use?&amp;nbsp; Personally I tend to avoid long macro variables in favour of storing in datasets.&amp;nbsp; So say for instance I want to produce a print separately for each of those areas I could do:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set testcheck;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('proc print data=some_data (where=(area="'||strip(area)||'")); run;');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would generate a proc print for each observation in testcheck with the restriction. &lt;/P&gt;&lt;P&gt;You could also do your macro call with the area:&lt;BR /&gt;%macro your_macro (a=);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... do something;&lt;/P&gt;&lt;P&gt;%mend your_macro;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set testcheck;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute(%nstr('%your_macro(a='||strip(area)||');');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 09:28:39 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-07-29T09:28:39Z</dc:date>
    <item>
      <title>Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140240#M28278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset &lt;STRONG&gt;(attached)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a macro variable combine all area separated by "|". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I used :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;select count(*), area into :ct_all, :all_list&amp;nbsp; separated by "|" from aj.testcheck ;&lt;/P&gt;&lt;P&gt;select count(*), area into :ct_st, :st_list&amp;nbsp; separated by "|" from aj.testcheck where length(area)=2;&lt;/P&gt;&lt;P&gt;select count(*), area into :ct_msa, :msa_list&amp;nbsp; separated by "|" from aj.testcheck where length(area) ne 2; &lt;STRONG&gt;Problem here: length crossed the limit of 252.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro fetch();&lt;/P&gt;&lt;P&gt;%do i=1 %to &amp;amp;ctst;&lt;/P&gt;&lt;P&gt;%let st=%scan(%quote(&amp;amp;st_list), &amp;amp;i , %str(|));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %do j=1 %to &amp;amp;allnum;&lt;/P&gt;&lt;P&gt;%let area=%scan(%bquote(&amp;amp;all_list), &amp;amp;j , %str(|)); &lt;STRONG&gt;problem if i use quote then error comes "very few paramter for function scan" and if i use bquote then it stopped by one of area "Coeur d'Alene, ID".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest me . Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 09:12:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140240#M28278</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-07-29T09:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140241#M28279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What's your intended use?&amp;nbsp; Personally I tend to avoid long macro variables in favour of storing in datasets.&amp;nbsp; So say for instance I want to produce a print separately for each of those areas I could do:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set testcheck;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('proc print data=some_data (where=(area="'||strip(area)||'")); run;');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would generate a proc print for each observation in testcheck with the restriction. &lt;/P&gt;&lt;P&gt;You could also do your macro call with the area:&lt;BR /&gt;%macro your_macro (a=);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... do something;&lt;/P&gt;&lt;P&gt;%mend your_macro;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set testcheck;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute(%nstr('%your_macro(a='||strip(area)||');');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 09:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140241#M28279</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-29T09:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140242#M28280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to fetch names to create separate files for each area.&lt;/P&gt;&lt;P&gt;attached dataset is been created from large dataset where 10 years sales record for each area,&lt;/P&gt;&lt;P&gt;can i handle that problem which i mentioned in my origional post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 09:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140242#M28280</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-07-29T09:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140243#M28281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its just a matter of slightly altering your original code:&lt;/P&gt;&lt;P&gt;%macro fetch (area=);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data some_new_dataset_&amp;amp;area.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set xyz;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;%mend fetch;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set aj.testcheck;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute(%nstr('%fetch(area=('||strip(area)||');');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the way you were doing it your going to run in to various problems as your data has commas and quotes in and hence you are trying to force it by quoting/unquoting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 10:03:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140243#M28281</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-29T10:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140244#M28282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry , its not working .&lt;/P&gt;&lt;P&gt;:asking for one more "("&lt;/P&gt;&lt;P&gt;: "The function NSTR is unknown, or cannot be accessed."&lt;/P&gt;&lt;P&gt;if i changed&amp;nbsp; to NRSTR then : ERROR: Macro parameter contains syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 10:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140244#M28282</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-07-29T10:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140245#M28283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, sorry, typo there:&lt;/P&gt;&lt;P&gt;%macro fetch (area=);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data some_new_dataset_&amp;amp;area.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.cars;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;%mend fetch;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; area="AJ";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute(%nrstr('%fetch(area='||strip(area)||');'));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 10:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140245#M28283</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-29T10:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140246#M28284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way is to have SAS put normal quotes around the values using QUOTE() and then take them off later using DEQUOTE().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;noprint&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; quote(cats(area))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; :all_list separated &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'|'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; aj.testcheck &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ct_all=&amp;amp;sqlobs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; quote(cats(area))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; :st_list separated &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'|'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; aj.testcheck&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; length(area)=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ct_st=&amp;amp;sqlobs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; quote(cats(area))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; :msa_list&amp;nbsp; separated &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'|'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; aj.testcheck&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; length(area) ne &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ct_maa=&amp;amp;sqlobs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; fetch();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; i=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%to&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &amp;amp;ct_st;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; st=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%qsysfunc&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(dequote(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%scan&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;st_list,&amp;amp;i,|)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; j=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%to&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &amp;amp;ct_all;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; area=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%qsysfunc&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(dequote(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%scan&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(&amp;amp;all_list,&amp;amp;j,|)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 12:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140246#M28284</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-29T12:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140247#M28285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need the values as part of filenames then wouldn't you need to get rid of invalid characters for such filenames like quotes and the like? If so then things could become quite simple as you wouldn't have to deal with "special" characters and unbalanced quotation marks anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you say "files": Will these be SAS data sets (limit is a length or 32 characters) or some external files?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 12:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140247#M28285</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-07-29T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140248#M28286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no that will not be in use as a file name. It will use as a sheet name. but i neet to first fetch that and use in condition to filter the&amp;nbsp; data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and apart that , i need your help for one more addition task , &lt;/P&gt;&lt;P&gt;i am creating a excel through &lt;/P&gt;&lt;P&gt;ODS listing close;&lt;/P&gt;&lt;P&gt;ods&amp;nbsp; html body="I:\anuj\temp folder\tmp.xls";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i create these excel with multiple sheet, as excel for north with sheets x ,y, z(related states).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please donot suggest ods tagsets.excelxp , its not working perfectly at my end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 14:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140248#M28286</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-07-29T14:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140249#M28287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, why is ods tagsets.excelxp not working?&amp;nbsp; I would personally strongly recommend that over the html as you have far more control over Excel options.&amp;nbsp; Also, html doesn't have the concept of sheets as Excel does, so you will struggle to get that to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 14:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140249#M28287</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-29T14:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140250#M28288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i m facing many challanges with tagsets.&lt;/P&gt;&lt;P&gt;few are:&lt;/P&gt;&lt;P&gt;its prompting to save file.&lt;/P&gt;&lt;P&gt;its not giving desired output file.&lt;/P&gt;&lt;P&gt;it not proving suporting version of excel file&lt;/P&gt;&lt;P&gt;and main issue is , its doing strange behaviour. providing missing missing value of computed variable for particular record for date 01jan2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the same place rest else output giving complete values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest, i m looking for fix format for my all sheets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140250#M28288</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-07-29T15:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140251#M28289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, that's a lot of separate questions there:&lt;/P&gt;&lt;P&gt;1) its prompting to save file.&lt;/P&gt;&lt;P&gt;This is likely due to the ods outputting results.&amp;nbsp; Turn this off by adding the statement before your tagset one:&lt;/P&gt;&lt;P&gt;ods noresults;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) its not giving desired output file.&lt;/P&gt;&lt;P&gt;Sorry, you will have to clarify here.&amp;nbsp; The purpose of tagsets are to create markedup output, the Excel one uses XML which is a flat text file which Excel can parse and display.&amp;nbsp; This is similar to the latest versions of Office which use compressed folders with XML files within.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) it not proving suporting version of excel file&lt;/P&gt;&lt;P&gt;What version of Excel are we talking about?&amp;nbsp; Most versions should be able to to parse XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) and main issue is , its doing strange behaviour. providing missing missing value of computed variable for particular record for date 01jan2014.&lt;/P&gt;&lt;P&gt;Please provide specific test data/example output of what is happening.&amp;nbsp; Excel does a great job of hiding most things behind the scenes, so it could be A) you options missing is setup wrong, B) Excel reads a value it doesn't like and changes it, C) the displayed data doesn't fit with general format hence its hidden etc.&lt;/P&gt;&lt;P&gt;It may be as simple as setting the style to set the excel format for that cell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140251#M28289</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-29T15:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140252#M28290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with &lt;A __default_attr="814511" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; : If you could provide some representative sample data (a data step creating such data) and then tell/show us how the desired result should look like then we would be in a much better situation to provide support.&lt;/P&gt;&lt;P&gt;Also: Which version of SAS (under which OS) and version of Excel are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 23:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140252#M28290</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-07-29T23:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140253#M28291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;please help. I m tired doing experiment to get my desired output. please suggest, below is my code&lt;/P&gt;&lt;P&gt;and also column values are not coming at center as i m trying make it in center but its happening,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS noresults;&lt;/P&gt;&lt;P&gt;ODS listing close;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="I:\anuj\temp folder\tmp.xls";&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp options(sheet_name="FIRST SHEET");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc report data= tblsocc6_MSA nowd headline split="#"&lt;/P&gt;&lt;P&gt;style(report)=[cellspacing=2 borderwidth=1 bordercolor=blue]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;style(header)=[color=black&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontsize =1.5 textalign=center fontfamily = arial]&lt;/P&gt;&lt;P&gt;style(column)=[color=black&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontfamily=helvetica fontsize=1 cellheight=11 pt ]&lt;/P&gt;&lt;P&gt;/*style(lines)=[color=white backgroundcolor=black&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontstyle=italic fontweight=bold fontsize=5]*/&lt;/P&gt;&lt;P&gt;style(summary)=[color=cx3e3d73 backgroundcolor=cxaeadd9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontfamily=helvetica fontsize=3 textalign=r];&lt;/P&gt;&lt;P&gt;column ("(*ESC*)S={ textalign= left Font_weight=bold}&amp;nbsp;&amp;nbsp; xyz (*ESC*)S={}" &lt;/P&gt;&lt;P&gt;areaname&lt;/P&gt;&lt;P&gt;("Management and Business/Financial"&amp;nbsp; (occ_tot_undup1 occ_mean_wage1))&lt;/P&gt;&lt;P&gt;("" (blank1))&lt;/P&gt;&lt;P&gt;("Professional &amp;amp; Related" (occ_tot_undup2 occ_mean_wage2))&lt;/P&gt;&lt;P&gt;("" (blank))&lt;/P&gt;&lt;P&gt;("Service" (occ_tot_undup3 occ_mean_wage3))) ;&lt;/P&gt;&lt;P&gt;define areaname/ display "Location" style(Header)=[just=center cellwidth=1.7 in] style(column)=[just=left];&lt;/P&gt;&lt;P&gt;define occ_tot_undup1/display "Total Ads # &amp;amp;currmon" format=comma10. style(Header)=[just=center cellwidth=.8 in] style(column)=[just=center];&lt;/P&gt;&lt;P&gt;define occ_tot_undup2/display "Total Ads # &amp;amp;currmon" format=comma10. style(Header)=[just=center cellwidth=.8 in] style(column)=[just=center];&lt;/P&gt;&lt;P&gt;define occ_tot_undup3/display "Total Ads # &amp;amp;currmon" format=comma10. style(Header)=[just=center cellwidth=.8 in] style(column)=[just=center];&lt;/P&gt;&lt;P&gt;define occ_mean_wage1/display "Average Hourly # Wage ~{super 2*}" format=dollar6.2 style(Header)=[just=center cellwidth=.8 in] style(column)=[just=center];&lt;/P&gt;&lt;P&gt;define occ_mean_wage2/display "Average Hourly # Wage ~{super 2*}" format=dollar6.2 style(Header)=[just=center cellwidth=.8 in] style(column)=[just=center];&lt;/P&gt;&lt;P&gt;define occ_mean_wage3/display "Average Hourly # Wage ~{super 2*}" format=dollar6.2 style(Header)=[just=center cellwidth=.8 in] style(column)=[just=center];&lt;/P&gt;&lt;P&gt;define blank1/ computed "" format= nodot. style(column)=[just=center cellwidth=.2 in] ;&lt;/P&gt;&lt;P&gt;define blank/ computed "" format= nodot. style(column)=[just=center cellwidth=.2 in] ;&lt;/P&gt;&lt;P&gt;compute blank1;&lt;/P&gt;&lt;P&gt;blank1=. ;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;compute blank;&lt;/P&gt;&lt;P&gt;blank=. ;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute areaname;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Areaname = "United States" and _break_=' ' then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_row_, "style",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "style=[backgroundcolor=cxaeadd9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontfamily=helvetica&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontweight=bold]");&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute after ;&lt;/P&gt;&lt;P&gt;line "(*ESC*)S={ textalign= left Font_weight=bold} (*ESC*)S={}";&lt;/P&gt;&lt;P&gt;line "(*ESC*)S={indent=1in }1. any strings&amp;nbsp;&amp;nbsp;&amp;nbsp; (*ESC*)S={}";&lt;/P&gt;&lt;P&gt;line "(*ESC*)S={indent=1in }2.any string [it can be 2 or 3 lines]&amp;nbsp; (*ESC*)S={}";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;P&gt;ODS listing;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 10:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140253#M28291</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-07-30T10:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140254#M28292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attached sample data and code , where i getting missing values for particular date july 14,&lt;/P&gt;&lt;P&gt;at same time when i use HTML body, its not giving any missing values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 10:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140254#M28292</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-07-30T10:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140255#M28293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Well, have tried running your programs with the data, however they do not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: In Event: style_over_ride, Invalid Expression:&amp;nbsp; eval $style_list[$cell_class ] $style_list[$cell_class ] +1&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: WHERE clause operator requires numeric variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would suggest you do is investigate the Excel output.&amp;nbsp; If as you say the HTML output has the values, and outrept=...; (i.e. save the output dataset) and check the output dataset looks correct, then It would appear to be an excel format issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 11:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140255#M28293</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-30T11:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140256#M28294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am worried that why error coming , i havent use where clause in my code anywhere, &lt;/P&gt;&lt;P&gt;please recheck my code. &lt;/P&gt;&lt;P&gt;and about out output i have checked in many place rtf, pdf, and html body where i m getting value but problem is i will not be able to get file with multiple sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;about second code i m failed to get my desired output format as i have attached, please suggest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 11:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140256#M28294</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-07-30T11:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140257#M28295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you are sure the data is correct going out to whichever report format then try right clicking on the XLS file generated and open in Notepad.&amp;nbsp; You will see the marked up text file.&amp;nbsp; Find the value that you see as missing, if it is missing there, but not in other outputs then it may be that you need to put Excel type formats on the data, so something along the lines of: style(column)={tagattr='format:text'}; &lt;/P&gt;&lt;P&gt;Otherwise its probably best to pop a ticket in with the support desk as to why your data is not coming out the same across output formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to your output format its really a matter of fiddling about with it until you get it how you want, although remember there are limitations to any output and trying to be 100% accurate is sometimes not practical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 12:52:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140257#M28295</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-30T12:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Quote is macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140258#M28296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, Please let me know if i m missing any ods or goption?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quote-is-macro-variable/m-p/140258#M28296</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-07-30T15:16:21Z</dc:date>
    </item>
  </channel>
</rss>

