<?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 Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64512#M14029</link>
    <description>Yes Patrick ,my bad&lt;BR /&gt;
Soo the query dictionary.macros will do job......</description>
    <pubDate>Thu, 04 Dec 2008 10:11:20 GMT</pubDate>
    <dc:creator>yonib</dc:creator>
    <dc:date>2008-12-04T10:11:20Z</dc:date>
    <item>
      <title>Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64507#M14024</link>
      <description>hi i have one query&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 09:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64507#M14024</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-04T09:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64508#M14025</link>
      <description>If you have only 3 macro parameters you can do :&lt;BR /&gt;
&lt;BR /&gt;
options symbolgen;&lt;BR /&gt;
%let a=23;&lt;BR /&gt;
%let b=45;&lt;BR /&gt;
%let C=89;&lt;BR /&gt;
data a;&lt;BR /&gt;
x=&amp;amp;a;&lt;BR /&gt;
output;&lt;BR /&gt;
x=&amp;amp;b;&lt;BR /&gt;
output;&lt;BR /&gt;
x=&amp;amp;c;&lt;BR /&gt;
output;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 04 Dec 2008 09:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64508#M14025</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2008-12-04T09:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64509#M14026</link>
      <description>Not sure what you're after but you can always query dictionary.macros (or sashelp.vmacro).&lt;BR /&gt;
&lt;A href="http://www.codecraftersinc.com/pdf/DictionaryTablesRefCard.pdf" target="_blank"&gt;http://www.codecraftersinc.com/pdf/DictionaryTablesRefCard.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Thu, 04 Dec 2008 09:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64509#M14026</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-12-04T09:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64510#M14027</link>
      <description>Hi yonib&lt;BR /&gt;
As I understand it sas@kumar asked for the names of the macro vars and not their values.&lt;BR /&gt;
Cheers, Patrick</description>
      <pubDate>Thu, 04 Dec 2008 09:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64510#M14027</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-12-04T09:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64511#M14028</link>
      <description>hi ............i dont require the values of that variables ..........i need the variable names itself</description>
      <pubDate>Thu, 04 Dec 2008 09:45:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64511#M14028</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-04T09:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64512#M14029</link>
      <description>Yes Patrick ,my bad&lt;BR /&gt;
Soo the query dictionary.macros will do job......</description>
      <pubDate>Thu, 04 Dec 2008 10:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64512#M14029</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2008-12-04T10:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64513#M14030</link>
      <description>yes patrick............u r right.........can u help me with example?</description>
      <pubDate>Thu, 04 Dec 2008 10:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64513#M14030</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-04T10:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64514#M14031</link>
      <description>proc sql;&lt;BR /&gt;
select *&lt;BR /&gt;
from dictionary.macros;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
OR:&lt;BR /&gt;
proc print data=sashelp.vsmacro;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
And to get what you asked for:&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table MyTable as&lt;BR /&gt;
select name as x&lt;BR /&gt;
from dictionary.macros;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
OR:&lt;BR /&gt;
data MyTable;&lt;BR /&gt;
set sashelp.vsmacro(keep=name);&lt;BR /&gt;
rename name=x;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Have a look at the link I've sent already: There you see the names and description of the fields in the dictionary table. sashelp.vsmacro is a view on dictionary.macros. Using PC SAS or SAS EG you can also browse sashelp.vsmacro&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Thu, 04 Dec 2008 10:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64514#M14031</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-12-04T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64515#M14032</link>
      <description>hi patrick,&lt;BR /&gt;
&lt;BR /&gt;
data test1;&lt;BR /&gt;
input id y x1 x2 x3;&lt;BR /&gt;
cards;&lt;BR /&gt;
01 1 13 14 15&lt;BR /&gt;
02 1 33 44 55&lt;BR /&gt;
03 0 44 55 66&lt;BR /&gt;
04 1 55 66 77&lt;BR /&gt;
05 0 66 77 88&lt;BR /&gt;
06 0 77 88 99&lt;BR /&gt;
07 1 88 99 11&lt;BR /&gt;
08 1 22 33 44&lt;BR /&gt;
09 0 32 43 54&lt;BR /&gt;
10 0 22 33 44&lt;BR /&gt;
11 1 32 43 54&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
this is my data set, now my output should be in the form of data set shown below:&lt;BR /&gt;
&lt;BR /&gt;
    x&lt;BR /&gt;
-----------&lt;BR /&gt;
    y&lt;BR /&gt;
    x1&lt;BR /&gt;
    x2&lt;BR /&gt;
   x3&lt;BR /&gt;
&lt;BR /&gt;
so what is the syntax?&lt;BR /&gt;
&lt;BR /&gt;
thanks]&lt;BR /&gt;
&lt;BR /&gt;
kumar</description>
      <pubDate>Thu, 04 Dec 2008 11:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64515#M14032</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-04T11:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Required output for macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64516#M14033</link>
      <description>Do you want to putput the name of your columns?&lt;BR /&gt;
PROC CONTENTS or PROC DATASETS may be used for that.&lt;BR /&gt;
&lt;BR /&gt;
I also suggest that take a couple of training classes, since most of your questions concern basic programming concepts in SAS.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
      <pubDate>Thu, 04 Dec 2008 14:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Required-output-for-macro/m-p/64516#M14033</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-12-04T14:22:06Z</dc:date>
    </item>
  </channel>
</rss>

