<?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: Macro Output not getting generated in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244382#M45541</link>
    <description>&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;&amp;nbsp;meant is turn on the debug options. &amp;nbsp;These print the values of macro variables, what the macro code evaluates to. &amp;nbsp;From what you have posted there is no way we can provide any answers. &amp;nbsp;There are various other macro calls within that code, and other macro variables. &amp;nbsp;We do not know what these do, represent, or contain. &amp;nbsp;This comes under the heading of obfuscation. &amp;nbsp;Why do you need to have a macro, which all it does it proc means, and lists the output? &amp;nbsp;Use base SAS code, everyone will understand it then.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2016 09:32:54 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-01-19T09:32:54Z</dc:date>
    <item>
      <title>Macro Output not getting generated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244367#M45534</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using a SAS code which have macros within a macro. When I execute this, the output is not getting transferref to the .lst file(which contains the output of the print proc). All I get is an empty .lst file.&lt;/P&gt;
&lt;P&gt;Please refer the code below:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto print="&amp;amp;protpath/outlist/program_d.lst"
              log  ="&amp;amp;protpath/outlog/program_d.log"   new;
run;
%macro program_d(callid=);
 
%put ;
%put -----------------------------------------------------------------------------;
%put --- Start of %upcase(&amp;amp;sysmacroname) macro                                    ;
%put ---   callid=&amp;amp;callid                                                         ;
%put -----------------------------------------------------------------------------;
%put ;
 
%local  report_name;
%let    report_name=&amp;amp;sysmacroname;
 
%*** Bring in global report macro parameters and perform other global functions. ****;
%infrastructure2(report=&amp;amp;report_name,callid=&amp;amp;callid);
%if &amp;amp;_err_flag=Y %then
%goto exit;
 


data class1; 
  set sashelp.class; 
run;

%macro meann(datain=);
	proc means data=&amp;amp;datain median min max ;
	  by sex;
	  var Age Height Weight ;
	run;

	proc print data=&amp;amp;datain;
	title "Is datain in the list file";
	run;
	
%mend meann;

%meann(datain=class1);
 
%rtfsymbl(groups=_ALL_);
%exit:
%if "&amp;amp;debug"="N" %then %wrapup;
%put;
%put ---End of %upcase(&amp;amp;sysmacroname) macro;
%put;
%mend program_d;
%program_d(callid=001);
proc printto;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jan 2016 07:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244367#M45534</guid>
      <dc:creator>Aditi24</dc:creator>
      <dc:date>2016-01-19T07:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Output not getting generated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244370#M45535</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options source source2 mprint mlogic symbolgen;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jan 2016 08:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244370#M45535</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-01-19T08:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Output not getting generated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244373#M45536</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;:&amp;nbsp;Could you please explain that?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 08:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244373#M45536</guid>
      <dc:creator>Aditi24</dc:creator>
      <dc:date>2016-01-19T08:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Output not getting generated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244382#M45541</link>
      <description>&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;&amp;nbsp;meant is turn on the debug options. &amp;nbsp;These print the values of macro variables, what the macro code evaluates to. &amp;nbsp;From what you have posted there is no way we can provide any answers. &amp;nbsp;There are various other macro calls within that code, and other macro variables. &amp;nbsp;We do not know what these do, represent, or contain. &amp;nbsp;This comes under the heading of obfuscation. &amp;nbsp;Why do you need to have a macro, which all it does it proc means, and lists the output? &amp;nbsp;Use base SAS code, everyone will understand it then.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 09:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244382#M45541</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-19T09:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Output not getting generated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244393#M45544</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;: Yeah I'll do that. Thanks for making the point clear.</description>
      <pubDate>Tue, 19 Jan 2016 10:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Output-not-getting-generated/m-p/244393#M45544</guid>
      <dc:creator>Aditi24</dc:creator>
      <dc:date>2016-01-19T10:49:14Z</dc:date>
    </item>
  </channel>
</rss>

