<?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: Data step output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Data-step-output/m-p/697945#M213395</link>
    <description>&lt;P&gt;You have to tell Proc print to use the label on the Proc statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=MIschools label;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 17:53:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-11-10T17:53:22Z</dc:date>
    <item>
      <title>Data step output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-output/m-p/697941#M213391</link>
      <description>&lt;P&gt;This is my current code which prints the tables I need and the output I need. However, I have 2 issues:&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, my labels just aren't showing up in anything. I cannot put them in the print step as my prompt calls for having the labels in the data step. I've tried moving them around and they just aren't sticking.&lt;/P&gt;&lt;P&gt;Second, I need to make it so rather than using a where statement (which I know is very inefficient I just wanted a placeholder to get my table) in my MIschools print and a where statement in my blowouts print, I need to do those in my data step. I cannot get my data step to give me proper output when I try doing these processes in the data step.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data rosebowl&lt;BR /&gt;(keep= year winteam winpts loseteam losepts mov)&lt;BR /&gt;MIschools&lt;BR /&gt;(keep= year winteam winpts loseteam losepts mov)&lt;BR /&gt;blowouts&lt;BR /&gt;(keep=year winteam mov);&lt;BR /&gt;set rose_raw;&lt;BR /&gt;Year = year(date);&lt;BR /&gt;MOV = WinPts-LosePts;&lt;BR /&gt;label WinPts='Winning Score'&lt;BR /&gt;LosePts='Losing Score'&lt;BR /&gt;WinTeam='Winning Team'&lt;BR /&gt;LoseTeam='Losing Team'&lt;BR /&gt;MOV='Margin of Victory';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=rosebowl;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=MIschools;&lt;BR /&gt;&lt;STRONG&gt;where winteam="Michigan" or loseteam="Michigan" &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;or winteam="Michigan State" or loseteam="Michigan State";&lt;/STRONG&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=blowouts;&lt;BR /&gt;&lt;STRONG&gt;where MOV &amp;gt;= 21;&lt;/STRONG&gt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 17:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-output/m-p/697941#M213391</guid>
      <dc:creator>mysasusername</dc:creator>
      <dc:date>2020-11-10T17:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data step output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-output/m-p/697944#M213394</link>
      <description>You need to add the LABELS option to your PROC PRINT statement to have the labels show. I'll also usually add NOOBS to suppress the row numbers. &lt;BR /&gt;&lt;BR /&gt;proc print data=blowouts labels noobs;&lt;BR /&gt;&lt;BR /&gt;I don't understand your second question, it would help if you showed your data as well as your code - fake data is perfectly fine. &lt;BR /&gt;Ideally you show what you have and what you want as the output.</description>
      <pubDate>Tue, 10 Nov 2020 17:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-output/m-p/697944#M213394</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-10T17:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data step output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Data-step-output/m-p/697945#M213395</link>
      <description>&lt;P&gt;You have to tell Proc print to use the label on the Proc statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=MIschools label;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 17:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Data-step-output/m-p/697945#M213395</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-10T17:53:22Z</dc:date>
    </item>
  </channel>
</rss>

