<?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 Extracting data from a single cell to store and use in a macro in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594507#M76066</link>
    <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a piece of a process that will use the numerical values of two variables.&amp;nbsp; I want to use these two values as information for a larger process that will occur in a macro.&amp;nbsp; Each of the variables needs to be by themselves.&amp;nbsp; Working through an example will help. Take the following data: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;DATA ex3;&lt;BR /&gt;&amp;nbsp;INPUT variable1 variable2;&lt;BR /&gt;CARDS;&lt;BR /&gt;5 7&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;The value of variable1 is 5 and the value of variable2 is 7. I want to be able to have SAS extract 5 and have it represented as "c" then extract 7 and have it represented as "d".&amp;nbsp; This way I can use the "c" and "d" as values in my macro as follows:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;%macro call_bunch;&lt;BR /&gt;%local c d ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;model &amp;amp;c &amp;amp;d,&amp;nbsp; ****** the model command is part of a different macro process ********;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%call_bunch&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Any suggestions on how I do this?&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2019 17:21:45 GMT</pubDate>
    <dc:creator>George3</dc:creator>
    <dc:date>2019-10-07T17:21:45Z</dc:date>
    <item>
      <title>Extracting data from a single cell to store and use in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594507#M76066</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a piece of a process that will use the numerical values of two variables.&amp;nbsp; I want to use these two values as information for a larger process that will occur in a macro.&amp;nbsp; Each of the variables needs to be by themselves.&amp;nbsp; Working through an example will help. Take the following data: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;DATA ex3;&lt;BR /&gt;&amp;nbsp;INPUT variable1 variable2;&lt;BR /&gt;CARDS;&lt;BR /&gt;5 7&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;The value of variable1 is 5 and the value of variable2 is 7. I want to be able to have SAS extract 5 and have it represented as "c" then extract 7 and have it represented as "d".&amp;nbsp; This way I can use the "c" and "d" as values in my macro as follows:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;%macro call_bunch;&lt;BR /&gt;%local c d ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;model &amp;amp;c &amp;amp;d,&amp;nbsp; ****** the model command is part of a different macro process ********;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%call_bunch&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Any suggestions on how I do this?&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 17:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594507#M76066</guid>
      <dc:creator>George3</dc:creator>
      <dc:date>2019-10-07T17:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from a single cell to store and use in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594508#M76067</link>
      <description>&lt;P&gt;You can use CALL SYMPUTX() function to store the value into macro variables.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set ex3;
  call symputx('c',variable1);
  call symputx('d',variable2);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that since you made C and D local macro variables to the macro CALL_BUNCH you would need to run this step while CALL_BUNCH is running.&amp;nbsp; So either as part of the macro or in a macro that is called by CALL_BUNCH.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 17:28:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594508#M76067</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-07T17:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from a single cell to store and use in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594509#M76068</link>
      <description>&lt;P&gt;Tom,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks great, but your note about this needs to be part of the macro or in a macro that is called has me a bit puzzled, not by its logic but by its structure.&amp;nbsp; I am puzzled because the data for the larger macro "bunch" will obviously be different from the data for c and d. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you meaning the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;%macro call_bunch;&lt;BR /&gt;%local c d&amp;nbsp; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN class="token procnames" style="box-sizing: inherit; color: navy; 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: bold; 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;data&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt; _null_&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; 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;;&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="token keyword" style="background-attachment: scroll; background-clip: border-box; background-color: #ffffff; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; box-sizing: inherit; color: blue; 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;set&lt;/SPAN&gt; &lt;SPAN class="token number" style="box-sizing: inherit; color: #008080; 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: bold; 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;ex&lt;/SPAN&gt;&lt;SPAN class="token number" style="box-sizing: inherit; color: #008080; 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: bold; 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;3&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; 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;;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;call &lt;/SPAN&gt;&lt;SPAN class="token function" style="box-sizing: inherit; color: blue; 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;symputx&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; 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;(&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;'c&lt;/SPAN&gt;&lt;SPAN class="token datetime number" style="box-sizing: inherit; color: #008080; 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: bold; 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;',variable1);&lt;BR /&gt;&amp;nbsp; call symputx('d&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;'&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; 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;,&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;variable2&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; 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;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; 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;;&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token procnames" style="box-sizing: inherit; color: navy; 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: bold; 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;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; 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;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; 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;model &amp;amp;c &amp;amp;d, &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; 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;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%call_bunch;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; 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;Is this what are meaning? If this is the case, wouldn't the system stop because it wouldn't know which data to use. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 17:42:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594509#M76068</guid>
      <dc:creator>George3</dc:creator>
      <dc:date>2019-10-07T17:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from a single cell to store and use in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594512#M76069</link>
      <description>&lt;P&gt;Your macro as currently constructed doesn't make any sense. It generates a DATA step and then a free-floating MODEL statement. You cannot have that statement outside of a PROC step. Put you couldn't call the macro in the middle of PROC step since the start of the DAT step would end the definition of the PROC step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure why you have the macro at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set ex3;
  call symputx('c',variable1);
  call symputx('d',variable2);
run;

proc glm data=xxx ;
  model &amp;amp;c &amp;amp;d, 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need to explain what your real problem is to get a real solution.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 17:50:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594512#M76069</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-07T17:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from a single cell to store and use in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594513#M76070</link>
      <description>&lt;P&gt;This does help.&amp;nbsp; The macro is designed to perform the analysis and it is essential to this.&amp;nbsp; I will try this and see what happens.&amp;nbsp; Thank you for the help. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 17:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594513#M76070</guid>
      <dc:creator>George3</dc:creator>
      <dc:date>2019-10-07T17:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting data from a single cell to store and use in a macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594517#M76071</link>
      <description>&lt;P&gt;Tom,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked beautifully.&amp;nbsp; I get it now!&amp;nbsp; Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 18:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extracting-data-from-a-single-cell-to-store-and-use-in-a-macro/m-p/594517#M76071</guid>
      <dc:creator>George3</dc:creator>
      <dc:date>2019-10-07T18:02:16Z</dc:date>
    </item>
  </channel>
</rss>

