<?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: Required output for macro in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64138#M18222</link>
    <description>I don't understand your situation here.&lt;BR /&gt;
Where are your values stored initially?&lt;BR /&gt;
How/where would you like them to be "outputted"? In a report, another table, or in the LOG? What functionality are you aiming for?&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
    <pubDate>Wed, 03 Dec 2008 14:10:53 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2008-12-03T14:10:53Z</dc:date>
    <item>
      <title>Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64135#M18219</link>
      <description>%let a=23;&lt;BR /&gt;
%let b=45;&lt;BR /&gt;
%let C=89;&lt;BR /&gt;
&lt;BR /&gt;
by using %put statement the output should be in the form mentioned below.&lt;BR /&gt;
what is the syntax for getting this output?&lt;BR /&gt;
&lt;BR /&gt;
ex: 23&lt;BR /&gt;
     45&lt;BR /&gt;
     89</description>
      <pubDate>Wed, 03 Dec 2008 11:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64135#M18219</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-03T11:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64136#M18220</link>
      <description>%put &amp;amp;A; etc.&lt;BR /&gt;
&lt;BR /&gt;
See on-line doc for macro processing.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Wed, 03 Dec 2008 11:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64136#M18220</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-12-03T11:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64137#M18221</link>
      <description>%let a=23;&lt;BR /&gt;
%let b=45;&lt;BR /&gt;
%let C=89;&lt;BR /&gt;
&lt;BR /&gt;
by using %put statement the output should be in the form mentioned below.&lt;BR /&gt;
what is the syntax for getting this output?&lt;BR /&gt;
&lt;BR /&gt;
ex: 23&lt;BR /&gt;
45&lt;BR /&gt;
89 &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
and this values should store in separate data set...........and that should be done by % put statement.........so is it possible</description>
      <pubDate>Wed, 03 Dec 2008 12:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64137#M18221</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-03T12:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64138#M18222</link>
      <description>I don't understand your situation here.&lt;BR /&gt;
Where are your values stored initially?&lt;BR /&gt;
How/where would you like them to be "outputted"? In a report, another table, or in the LOG? What functionality are you aiming for?&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Wed, 03 Dec 2008 14:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64138#M18222</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-12-03T14:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64139#M18223</link>
      <description>Hi:&lt;BR /&gt;
  Although I do not understand what you want to do, one part of your question is easy to answer. &lt;B&gt; %PUT only writes to the SAS log.&lt;/B&gt; It does not function like the DATA step PUT statement where you can write to a fileref.&lt;BR /&gt;
 &lt;BR /&gt;
As for the rest of your question, you say that you want the values of &amp;amp;A, &amp;amp;B and &amp;amp;C stored in a data set? Where are they coming from in the first place? Are they constants? Why do you need macro variables? &lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
Consider the following program:&lt;BR /&gt;
 &lt;BR /&gt;
[pre]&lt;BR /&gt;
 data examp1;&lt;BR /&gt;
    a=23;&lt;BR /&gt;
    b=45;&lt;BR /&gt;
    c=89;&lt;BR /&gt;
    d = a + b + c;&lt;BR /&gt;
    method = "Direct";&lt;BR /&gt;
run;&lt;BR /&gt;
         &lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc print data=examp1;&lt;BR /&gt;
  title 'Examp 1 -- Using Constants';&lt;BR /&gt;
run;&lt;BR /&gt;
            &lt;BR /&gt;
%let a = 23;&lt;BR /&gt;
%let b = 45;&lt;BR /&gt;
%let c = 89;&lt;BR /&gt;
%let method = Macro;&lt;BR /&gt;
           &lt;BR /&gt;
 data examp2;&lt;BR /&gt;
    fred = &amp;amp;a;&lt;BR /&gt;
    ethel = &amp;amp;b;&lt;BR /&gt;
    ricky = &amp;amp;c;&lt;BR /&gt;
    lucy = %eval(&amp;amp;a + &amp;amp;b + &amp;amp;c);&lt;BR /&gt;
    method = "&amp;amp;method";&lt;BR /&gt;
run;&lt;BR /&gt;
         &lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc print data=examp2;&lt;BR /&gt;
  title2 'Examp2 -- Using Macro Variables to Substitute for Constants';&lt;BR /&gt;
run;[/pre]</description>
      <pubDate>Wed, 03 Dec 2008 14:53:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64139#M18223</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-12-03T14:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64140#M18224</link>
      <description>hi i will make u clear now&lt;BR /&gt;
%let a=23;&lt;BR /&gt;
%let b=45;&lt;BR /&gt;
%let C=89;&lt;BR /&gt;
&lt;BR /&gt;
so now i need the output &lt;BR /&gt;
     x&lt;BR /&gt;
-------------&lt;BR /&gt;
     a&lt;BR /&gt;
     b &lt;BR /&gt;
     c&lt;BR /&gt;
&lt;BR /&gt;
where x is the variable..&lt;BR /&gt;
&lt;BR /&gt;
abd a, b and c variable names should present in single column as shown above</description>
      <pubDate>Thu, 04 Dec 2008 08:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64140#M18224</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-04T08:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64141#M18225</link>
      <description>Hi sas@kumar&lt;BR /&gt;
please keep your posts in one forum only. It's a bit annoying to answer a question only to see later on that there was already quite a discussion going on in another forum.&lt;BR /&gt;
Cheers, Patrick</description>
      <pubDate>Thu, 04 Dec 2008 09:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Required-output-for-macro/m-p/64141#M18225</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-12-04T09:47:01Z</dc:date>
    </item>
  </channel>
</rss>

