<?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: Why my macro cannot run after the first macro was called? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663250#M197935</link>
    <description>&lt;P&gt;Please provide more details. What didn't run? Did you get an error? Did you run the macro code with the debugging options and if you did, what did you get?&lt;BR /&gt;&lt;BR /&gt;If not, run your macro with the debugging options and see what errors are generated. Post the code and full log back and someone can help you debug it.&lt;BR /&gt;&lt;BR /&gt;Macro debugging options:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/334360"&gt;@gx2144&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;%macro ques(n,o);&lt;BR /&gt;proc freq data = quad.category1 order = freq;&lt;BR /&gt;label Q&amp;amp;n = &amp;amp;o;&lt;BR /&gt;tables Q&amp;amp;n/ missing nocum ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%mend ques;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%ques(13,'Compared to before COVID-19, your alcohol intake has')&lt;BR /&gt;%ques(15,'Before COVID-19, how often did you eat out (at a restaurant) ?' ）&lt;BR /&gt;%ques(16,'Before COVID-19, how often did you order take-out/delivery?' ）;&lt;BR /&gt;%ques(17,'Before COVID-19, how often did you cook at home?' ）;&lt;BR /&gt;%ques(18,'In the past week, how often have you eaten out?' );&lt;BR /&gt;%ques(19,'In the past week, how often have you ordered take-out/delivery' );&lt;BR /&gt;%ques(20,'In the past week, how often have you cooked at home?');&lt;BR /&gt;%ques(21,'In the past week, how has stress impacted your appetite?' );&lt;BR /&gt;%ques(27,'Has there been a change in your anxiety levels compared to before COVID-19?' );&lt;BR /&gt;%ques(28,'In the past week, you have felt joyful, cheerful, or optimistic' );&lt;BR /&gt;%ques(29,'In the past week, you have felt anxious, irritable, or tense' );&lt;BR /&gt;%ques(30,'In the past week, you have felt depressed, hopeless, or trapped' );&lt;BR /&gt;%ques(33,'Are you worried you will get sick with Coronavirus?' );&lt;BR /&gt;%ques(36,'Are you worried that a loved one will get sick with the Coronavirus?' );&lt;BR /&gt;%ques(39,'What is your sex?' );&lt;BR /&gt;%ques(46,'What is your age?' );&lt;BR /&gt;%ques(47,'In what type of community did you live before COVID-19?' );&lt;BR /&gt;%ques(48,'In what type of community do you live right now, during COVID-19?' );&lt;BR /&gt;%ques(49,'What is your total household income?' );&lt;BR /&gt;%ques(50,'What country do you reside in now?' );&lt;BR /&gt;%ques(52,'What state do you reside in right now?' );&lt;BR /&gt;%ques(54,'How long have these measures (shelter/stay in place, quarantine/isolation, curfew, social distancing) been in place?' );&lt;BR /&gt;%ques(55,'Are you following these measures?' );&lt;BR /&gt;%ques(57,'Which of the following best describes your living situation before COVID-19?' );&lt;BR /&gt;%ques(58,'Which of the following best describes your living situation right now, during COVID-19?' );&lt;BR /&gt;%ques(59,'How many individuals currently (and temporarily) live in your current place of residence, including yourself?' );&lt;BR /&gt;%ques(60,'How many children under the age of 18 live in your current place of residence?' );&lt;BR /&gt;%ques(61,'How many people over the age of 65 live in your current place of residence?' );&lt;BR /&gt;%ques(62,'Which of the following best describes your current relationship status?' );&lt;BR /&gt;%ques(63,'Which of the following categories best describes your employment status right now?' );&lt;BR /&gt;%ques(65,'Are you working remotely?' );&lt;BR /&gt;%ques(66,'How often have you gone outside in the past week?' );&lt;BR /&gt;%ques(67,'Before COVID-19, I exercised?' );&lt;BR /&gt;%ques(68,'During the COVID-19 pandemic, I exercise' );&lt;BR /&gt;%ques(69,'Compared to before COVID-19, I have?' );&lt;BR /&gt;%ques(70,'What is the highest level of education you have completed?' );&lt;BR /&gt;%ques(109,'What is the highest level of education you have completed?' );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only the first&amp;nbsp;%ques(13,'Compared to before COVID-19, your alcohol intake has') could run; The rest of the calls could not run. Can anybody help me out?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jun 2020 18:09:11 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-06-18T18:09:11Z</dc:date>
    <item>
      <title>Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663245#M197933</link>
      <description>&lt;P&gt;%macro ques(n,o);&lt;BR /&gt;proc freq data = quad.category1 order = freq;&lt;BR /&gt;label Q&amp;amp;n = &amp;amp;o;&lt;BR /&gt;tables Q&amp;amp;n/ missing nocum ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend ques;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%ques(13,'Compared to before COVID-19, your alcohol intake has')&lt;BR /&gt;%ques(15,'Before COVID-19, how often did you eat out (at a restaurant) ?' ）&lt;BR /&gt;%ques(16,'Before COVID-19, how often did you order take-out/delivery?' ）;&lt;BR /&gt;%ques(17,'Before COVID-19, how often did you cook at home?' ）;&lt;BR /&gt;%ques(18,'In the past week, how often have you eaten out?' );&lt;BR /&gt;%ques(19,'In the past week, how often have you ordered take-out/delivery' );&lt;BR /&gt;%ques(20,'In the past week, how often have you cooked at home?');&lt;BR /&gt;%ques(21,'In the past week, how has stress impacted your appetite?' );&lt;BR /&gt;%ques(27,'Has there been a change in your anxiety levels compared to before COVID-19?' );&lt;BR /&gt;%ques(28,'In the past week, you have felt joyful, cheerful, or optimistic' );&lt;BR /&gt;%ques(29,'In the past week, you have felt anxious, irritable, or tense' );&lt;BR /&gt;%ques(30,'In the past week, you have felt depressed, hopeless, or trapped' );&lt;BR /&gt;%ques(33,'Are you worried you will get sick with Coronavirus?' );&lt;BR /&gt;%ques(36,'Are you worried that a loved one will get sick with the Coronavirus?' );&lt;BR /&gt;%ques(39,'What is your sex?' );&lt;BR /&gt;%ques(46,'What is your age?' );&lt;BR /&gt;%ques(47,'In what type of community did you live before COVID-19?' );&lt;BR /&gt;%ques(48,'In what type of community do you live right now, during COVID-19?' );&lt;BR /&gt;%ques(49,'What is your total household income?' );&lt;BR /&gt;%ques(50,'What country do you reside in now?' );&lt;BR /&gt;%ques(52,'What state do you reside in right now?' );&lt;BR /&gt;%ques(54,'How long have these measures (shelter/stay in place, quarantine/isolation, curfew, social distancing) been in place?' );&lt;BR /&gt;%ques(55,'Are you following these measures?' );&lt;BR /&gt;%ques(57,'Which of the following best describes your living situation before COVID-19?' );&lt;BR /&gt;%ques(58,'Which of the following best describes your living situation right now, during COVID-19?' );&lt;BR /&gt;%ques(59,'How many individuals currently (and temporarily) live in your current place of residence, including yourself?' );&lt;BR /&gt;%ques(60,'How many children under the age of 18 live in your current place of residence?' );&lt;BR /&gt;%ques(61,'How many people over the age of 65 live in your current place of residence?' );&lt;BR /&gt;%ques(62,'Which of the following best describes your current relationship status?' );&lt;BR /&gt;%ques(63,'Which of the following categories best describes your employment status right now?' );&lt;BR /&gt;%ques(65,'Are you working remotely?' );&lt;BR /&gt;%ques(66,'How often have you gone outside in the past week?' );&lt;BR /&gt;%ques(67,'Before COVID-19, I exercised?' );&lt;BR /&gt;%ques(68,'During the COVID-19 pandemic, I exercise' );&lt;BR /&gt;%ques(69,'Compared to before COVID-19, I have?' );&lt;BR /&gt;%ques(70,'What is the highest level of education you have completed?' );&lt;BR /&gt;%ques(109,'What is the highest level of education you have completed?' );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only the first&amp;nbsp;%ques(13,'Compared to before COVID-19, your alcohol intake has') could run; The rest of the calls could not run. Can anybody help me out?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 17:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663245#M197933</guid>
      <dc:creator>gx2144</dc:creator>
      <dc:date>2020-06-18T17:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663248#M197934</link>
      <description>&lt;P&gt;Does proc freq really have a label (&lt;SPAN&gt;label Q&amp;amp;n = &amp;amp;o) statement?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am learning something new&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663248#M197934</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-06-18T18:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663250#M197935</link>
      <description>&lt;P&gt;Please provide more details. What didn't run? Did you get an error? Did you run the macro code with the debugging options and if you did, what did you get?&lt;BR /&gt;&lt;BR /&gt;If not, run your macro with the debugging options and see what errors are generated. Post the code and full log back and someone can help you debug it.&lt;BR /&gt;&lt;BR /&gt;Macro debugging options:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/334360"&gt;@gx2144&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;%macro ques(n,o);&lt;BR /&gt;proc freq data = quad.category1 order = freq;&lt;BR /&gt;label Q&amp;amp;n = &amp;amp;o;&lt;BR /&gt;tables Q&amp;amp;n/ missing nocum ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%mend ques;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%ques(13,'Compared to before COVID-19, your alcohol intake has')&lt;BR /&gt;%ques(15,'Before COVID-19, how often did you eat out (at a restaurant) ?' ）&lt;BR /&gt;%ques(16,'Before COVID-19, how often did you order take-out/delivery?' ）;&lt;BR /&gt;%ques(17,'Before COVID-19, how often did you cook at home?' ）;&lt;BR /&gt;%ques(18,'In the past week, how often have you eaten out?' );&lt;BR /&gt;%ques(19,'In the past week, how often have you ordered take-out/delivery' );&lt;BR /&gt;%ques(20,'In the past week, how often have you cooked at home?');&lt;BR /&gt;%ques(21,'In the past week, how has stress impacted your appetite?' );&lt;BR /&gt;%ques(27,'Has there been a change in your anxiety levels compared to before COVID-19?' );&lt;BR /&gt;%ques(28,'In the past week, you have felt joyful, cheerful, or optimistic' );&lt;BR /&gt;%ques(29,'In the past week, you have felt anxious, irritable, or tense' );&lt;BR /&gt;%ques(30,'In the past week, you have felt depressed, hopeless, or trapped' );&lt;BR /&gt;%ques(33,'Are you worried you will get sick with Coronavirus?' );&lt;BR /&gt;%ques(36,'Are you worried that a loved one will get sick with the Coronavirus?' );&lt;BR /&gt;%ques(39,'What is your sex?' );&lt;BR /&gt;%ques(46,'What is your age?' );&lt;BR /&gt;%ques(47,'In what type of community did you live before COVID-19?' );&lt;BR /&gt;%ques(48,'In what type of community do you live right now, during COVID-19?' );&lt;BR /&gt;%ques(49,'What is your total household income?' );&lt;BR /&gt;%ques(50,'What country do you reside in now?' );&lt;BR /&gt;%ques(52,'What state do you reside in right now?' );&lt;BR /&gt;%ques(54,'How long have these measures (shelter/stay in place, quarantine/isolation, curfew, social distancing) been in place?' );&lt;BR /&gt;%ques(55,'Are you following these measures?' );&lt;BR /&gt;%ques(57,'Which of the following best describes your living situation before COVID-19?' );&lt;BR /&gt;%ques(58,'Which of the following best describes your living situation right now, during COVID-19?' );&lt;BR /&gt;%ques(59,'How many individuals currently (and temporarily) live in your current place of residence, including yourself?' );&lt;BR /&gt;%ques(60,'How many children under the age of 18 live in your current place of residence?' );&lt;BR /&gt;%ques(61,'How many people over the age of 65 live in your current place of residence?' );&lt;BR /&gt;%ques(62,'Which of the following best describes your current relationship status?' );&lt;BR /&gt;%ques(63,'Which of the following categories best describes your employment status right now?' );&lt;BR /&gt;%ques(65,'Are you working remotely?' );&lt;BR /&gt;%ques(66,'How often have you gone outside in the past week?' );&lt;BR /&gt;%ques(67,'Before COVID-19, I exercised?' );&lt;BR /&gt;%ques(68,'During the COVID-19 pandemic, I exercise' );&lt;BR /&gt;%ques(69,'Compared to before COVID-19, I have?' );&lt;BR /&gt;%ques(70,'What is the highest level of education you have completed?' );&lt;BR /&gt;%ques(109,'What is the highest level of education you have completed?' );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only the first&amp;nbsp;%ques(13,'Compared to before COVID-19, your alcohol intake has') could run; The rest of the calls could not run. Can anybody help me out?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663250#M197935</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-18T18:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663251#M197936</link>
      <description>&lt;P&gt;can you provide the log please. My hunch is around the line&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;label Q&amp;amp;n = &amp;amp;o;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;change it to&amp;nbsp;label Q&amp;amp;n = "&amp;amp;o";&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663251#M197936</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-06-18T18:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663252#M197937</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Does proc freq really have a label (&lt;SPAN&gt;label Q&amp;amp;n = &amp;amp;o) statement?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am learning something new&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The label statement can be used in any proc or data step that uses datasets.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663252#M197937</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-06-18T18:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663253#M197938</link>
      <description>Also, why the multiple calls, you can call them all at once and should ideally apply your labels to your main data set rather than each one manually. Then they exist for any proc to use and you do not need a macro at all.&lt;BR /&gt;&lt;BR /&gt;proc freq data = ....;&lt;BR /&gt;table q13 q15-q21 q27-q30 .... / missing nocum;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 18 Jun 2020 18:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663253#M197938</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-18T18:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663254#M197939</link>
      <description>&lt;P&gt;Ah I see. Thank you Sir&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663254#M197939</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-06-18T18:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663255#M197940</link>
      <description>&lt;P&gt;Yes it does have label statement.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663255#M197940</guid>
      <dc:creator>gx2144</dc:creator>
      <dc:date>2020-06-18T18:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663257#M197941</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214340"&gt;@smantha&lt;/a&gt;&amp;nbsp; Shouldn't be the issue as they're passing the strings in as quoted. Unless the string has an extra quote somewhere, which isn't shown in the code posted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663257#M197941</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-18T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663258#M197942</link>
      <description>&lt;P&gt;&lt;BR /&gt;341&lt;BR /&gt;342 /*frequency table for fategorical data*/&lt;BR /&gt;343 options mprint symbolgen;&lt;BR /&gt;344 %macro ques(n,o);&lt;BR /&gt;345 proc freq data = quad.category1 order = freq;&lt;BR /&gt;346 label Q&amp;amp;n = &amp;amp;o;&lt;BR /&gt;347 tables Q&amp;amp;n/ missing nocum ;&lt;BR /&gt;348 run;&lt;BR /&gt;349&lt;BR /&gt;350 %mend ques;&lt;BR /&gt;351&lt;BR /&gt;352 %ques(13,'Compared to before COVID-19, your alcohol intake has')&lt;BR /&gt;MPRINT(QUES): proc freq data = quad.category1 order = freq;&lt;BR /&gt;SYMBOLGEN: Macro variable N resolves to 13&lt;BR /&gt;SYMBOLGEN: Macro variable O resolves to 'Compared to before COVID-19, your alcohol intake has'&lt;BR /&gt;MPRINT(QUES): label Q13 = 'Compared to before COVID-19, your alcohol intake has';&lt;BR /&gt;SYMBOLGEN: Macro variable N resolves to 13&lt;BR /&gt;MPRINT(QUES): tables Q13/ missing nocum ;&lt;BR /&gt;MPRINT(QUES): run;&lt;/P&gt;&lt;P&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;BR /&gt;NOTE: There were 588 observations read from the data set QUAD.CATEGORY1.&lt;BR /&gt;NOTE: PROCEDURE FREQ used (Total process time):&lt;BR /&gt;real time 0.13 seconds&lt;BR /&gt;cpu time 0.10 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;353 %ques(15,'Before COVID-19, how often did you eat out (at a restaurant) ?' 乯&lt;BR /&gt;354 %ques(16,'Before COVID-19, how often did you order take-out/delivery?' 乯;&lt;BR /&gt;SYMBOLGEN: Macro variable N resolves to 18&lt;BR /&gt;355 %ques(17,'Before COVID-19, how often did you cook at home?' 乯;&lt;BR /&gt;SYMBOLGEN: Macro variable O resolves to 'In the past week, how often have you eaten out?'&lt;BR /&gt;SYMBOLGEN: Macro variable N resolves to 18&lt;BR /&gt;356 %ques(18,'In the past week, how often have you eaten out?' );&lt;BR /&gt;SYMBOLGEN: Macro variable N resolves to 19&lt;BR /&gt;SYMBOLGEN: Macro variable O resolves to 'In the past week, how often have you ordered take-out/delivery'&lt;BR /&gt;SYMBOLGEN: Macro variable N resolves to 19&lt;BR /&gt;357 %ques(19,'In the past week, how often have you ordered take-out/delivery' );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the log.Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663258#M197942</guid>
      <dc:creator>gx2144</dc:creator>
      <dc:date>2020-06-18T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663259#M197943</link>
      <description>&lt;P&gt;I do not think that is the problem because I have used the same macro before in another program and that worked very well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But thanks anyway.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663259#M197943</guid>
      <dc:creator>gx2144</dc:creator>
      <dc:date>2020-06-18T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663260#M197944</link>
      <description>&lt;P&gt;I think I can try without the macro.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663260#M197944</guid>
      <dc:creator>gx2144</dc:creator>
      <dc:date>2020-06-18T18:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663261#M197945</link>
      <description>Restart your system and run it again and see if you have issues. And add semicolons to the end of each macro code. You're using another language and I've seen the Chinese keyboard setting cause issues in SAS programs before...unfortunately.</description>
      <pubDate>Thu, 18 Jun 2020 18:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663261#M197945</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-18T18:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663262#M197946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/334360"&gt;@gx2144&lt;/a&gt;&amp;nbsp; Can you plz try macro quoting the second parameter with %bquote and execute?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%ques(15,%bquote('Before COVID-19, how often did you eat out (at a restaurant) ?') ）&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663262#M197946</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-06-18T18:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663263#M197947</link>
      <description>&lt;P&gt;I am wondering why you think you need a macro in the first place.&lt;/P&gt;
&lt;P&gt;You would likely be much better of by making the labels permanent in the data or providing one label statement in the proc freq code.&lt;/P&gt;
&lt;P&gt;One of the unfortunate things with working with macro code is that some types of logic errors can cause problems such as making following code not run because something is unstable and if you likely have to restart your SAS session to do almost anything. Save code before closing down though.&lt;/P&gt;
&lt;P&gt;Variable lists make calling multiple variables in a tables statement easy.&lt;/P&gt;
&lt;P&gt;When code misbehaves it is a good idea to copy the code submitted along with all notes, warnings and errors for the bit that misbehaves and show us that in a code box opened on the forum with the &amp;lt;/&amp;gt; icon to preserve formatting of any diagnostics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc freq data = quad.category1 order = freq;
tables q13 q15-q21 q27-q30 q33 q36
   q39 q46-q50 q52 q54 q55 q57-q63 
   q65-q70 q109;
/ missing nocum ;
label
q13='Compared to before COVID-19= your alcohol intake has'
q15='Before COVID-19= how often did you eat out (at a restaurant ?'
q16='Before COVID-19= how often did you order take-out/delivery?'
q17='Before COVID-19= how often did you cook at home?' 
q18='In the past week= how often have you eaten out?' 
q19='In the past week= how often have you ordered take-out/delivery' 
q20='In the past week= how often have you cooked at home?'
q21='In the past week= how has stress impacted your appetite?' 
q27='Has there been a change in your anxiety levels compared to before COVID-19?' 
q28='In the past week= you have felt joyful= cheerful= or optimistic' 
q29='In the past week= you have felt anxious= irritable= or tense' 
q30='In the past week= you have felt depressed= hopeless= or trapped' 
q33='Are you worried you will get sick with Coronavirus?' 
q36='Are you worried that a loved one will get sick with the Coronavirus?' 
q39='What is your sex?' 
q46='What is your age?' 
q47='In what type of community did you live before COVID-19?' 
q48='In what type of community do you live right now= during COVID-19?' 
q49='What is your total household income?' 
q50='What country do you reside in now?' 
q52='What state do you reside in right now?' 
q54='How long have these measures (shelter/stay in place= quarantine/isolation= curfew= social distancing been in place?' 
q55='Are you following these measures?' 
q57='Which of the following best describes your living situation before COVID-19?' 
q58='Which of the following best describes your living situation right now= during COVID-19?' 
q59='How many individuals currently (and temporarily live in your current place of residence= including yourself?' 
q60='How many children under the age of 18 live in your current place of residence?' 
q61='How many people over the age of 65 live in your current place of residence?' 
q62='Which of the following best describes your current relationship status?' 
q63='Which of the following categories best describes your employment status right now?' 
q65='Are you working remotely?' 
q66='How often have you gone outside in the past week?' 
q67='Before COVID-19= I exercised?' 
q68='During the COVID-19 pandemic= I exercise' 
q69='Compared to before COVID-19= I have?' 
q70='What is the highest level of education you have completed?' 
q109='What is the highest level of education you have completed?' 
;&lt;/PRE&gt;
&lt;P&gt;Loading the same data set multiple times like this is very inefficient.&lt;/P&gt;
&lt;P&gt;And are you sure the labels for Q70 and Q109 are correct?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663263#M197947</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-18T18:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663265#M197948</link>
      <description>&lt;P&gt;Do you know why there are special characters in your log? one of the quoting functions as suggested by novinosrin might help. If you are just getting counts and description you can use a format and proc means or proc summary to get all the information in a single go.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 18:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663265#M197948</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-06-18T18:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663271#M197951</link>
      <description>That does not work.</description>
      <pubDate>Thu, 18 Jun 2020 18:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663271#M197951</guid>
      <dc:creator>gx2144</dc:creator>
      <dc:date>2020-06-18T18:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why my macro cannot run after the first macro was called?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663273#M197953</link>
      <description>You are right. There is no need to use the macro here.</description>
      <pubDate>Thu, 18 Jun 2020 18:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-my-macro-cannot-run-after-the-first-macro-was-called/m-p/663273#M197953</guid>
      <dc:creator>gx2144</dc:creator>
      <dc:date>2020-06-18T18:49:58Z</dc:date>
    </item>
  </channel>
</rss>

