<?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 include sas code in results ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/include-sas-code-in-results/m-p/254783#M48621</link>
    <description>&lt;P&gt;I am trying to locate a way to export my sas code into my results.&amp;nbsp;&amp;nbsp; The purpose: create study notes in a SAS course I am taking, so that I can end up with the assigned task in the comments, the code I used, and the results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of what I need to do - I would like all of the below to appear in my results - the comment, the code, plus the results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**************************************************************************************************&lt;/P&gt;&lt;P&gt;Question 1: Figure out the mean and median weight from the data sashelp.bweight.&amp;nbsp;&lt;/P&gt;&lt;P&gt;**************************************************************************************************/&lt;/P&gt;&lt;P&gt;proc means data=sashelp.bweight Mean Median;&lt;/P&gt;&lt;P&gt;var weight;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;The SAS System&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The MEANS Procedure&lt;/P&gt;&lt;CENTER&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="4"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center"&gt;&lt;STRONG&gt;Analysis Variable : weight &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center"&gt;&lt;STRONG&gt;Mean&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center"&gt;&lt;STRONG&gt;Median&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;3370.76&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3402.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/CENTER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Mar 2016 00:55:06 GMT</pubDate>
    <dc:creator>CarolynNorman</dc:creator>
    <dc:date>2016-03-06T00:55:06Z</dc:date>
    <item>
      <title>include sas code in results ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-sas-code-in-results/m-p/254783#M48621</link>
      <description>&lt;P&gt;I am trying to locate a way to export my sas code into my results.&amp;nbsp;&amp;nbsp; The purpose: create study notes in a SAS course I am taking, so that I can end up with the assigned task in the comments, the code I used, and the results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of what I need to do - I would like all of the below to appear in my results - the comment, the code, plus the results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**************************************************************************************************&lt;/P&gt;&lt;P&gt;Question 1: Figure out the mean and median weight from the data sashelp.bweight.&amp;nbsp;&lt;/P&gt;&lt;P&gt;**************************************************************************************************/&lt;/P&gt;&lt;P&gt;proc means data=sashelp.bweight Mean Median;&lt;/P&gt;&lt;P&gt;var weight;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;The SAS System&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The MEANS Procedure&lt;/P&gt;&lt;CENTER&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="4"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center"&gt;&lt;STRONG&gt;Analysis Variable : weight &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="center"&gt;&lt;STRONG&gt;Mean&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="center"&gt;&lt;STRONG&gt;Median&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;3370.76&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3402.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/CENTER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2016 00:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-sas-code-in-results/m-p/254783#M48621</guid>
      <dc:creator>CarolynNorman</dc:creator>
      <dc:date>2016-03-06T00:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: include sas code in results ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-sas-code-in-results/m-p/254809#M48635</link>
      <description>&lt;P&gt;Assuming program.sas is the code you are running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename x '/folders/myfolders/program.sas';&lt;BR /&gt;data x;&lt;BR /&gt; infile x length=len;&lt;BR /&gt; input x $varying256. len;&lt;BR /&gt;run;&lt;BR /&gt;proc report data=x nowd noheader style={ rules=none frame=void asis=on};&lt;BR /&gt;run;&lt;BR /&gt;%include x / source2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2016 05:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-sas-code-in-results/m-p/254809#M48635</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-06T05:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: include sas code in results ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-sas-code-in-results/m-p/254902#M48655</link>
      <description>&lt;P&gt;To me it sounds like your doing things the wrong way round. &amp;nbsp;First come the specifications, then the coding. &amp;nbsp;To put it another way, 90% of programming activites is documentation - specifcations, testing logs, help documentations etc. &amp;nbsp;The actual putting some code down is a very small part of it. &amp;nbsp;Your doing the reverse, your trying to create documentation from what you have coded. &amp;nbsp;This will not work on at least two fronts. &amp;nbsp;First you can't test the code, as you only know what it does, not what it should do. &amp;nbsp;Secondly change management, changes will never be captured as the documentation always shows what has run, no comparisons.&lt;/P&gt;
&lt;P&gt;To be honest, if your metadata (specifcations) is robust enough, you don't even need to program, just generate the code directly.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 09:52:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-sas-code-in-results/m-p/254902#M48655</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-07T09:52:43Z</dc:date>
    </item>
  </channel>
</rss>

