<?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: Does anyone know what this part is asking? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696762#M212876</link>
    <description>data barley;&lt;BR /&gt;infile "/folders/myfolders/DATASETS/barley.txt" dlm='09'x firstobs=15 expandtabs;&lt;BR /&gt;input obs y1980 y1982 y1986;&lt;BR /&gt;Y=y1; group=1; output;&lt;BR /&gt;Y=y2; group=2; output;&lt;BR /&gt;Y=y3; group=3; output;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I did this so far. Does this look like the right track?</description>
    <pubDate>Thu, 05 Nov 2020 03:52:24 GMT</pubDate>
    <dc:creator>Curious4</dc:creator>
    <dc:date>2020-11-05T03:52:24Z</dc:date>
    <item>
      <title>Does anyone know what this part is asking?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696484#M212751</link>
      <description>&lt;P&gt;I am trying to figure out wha this part of this question is asking "&lt;SPAN class="textLayer--absolute"&gt;Then use statements &lt;/SPAN&gt;&lt;SPAN class="textLayer--absolute"&gt;a data set with variables year and yield. Specify the year; set yield equal to the variable then &lt;/SPAN&gt;&lt;SPAN class="textLayer--absolute"&gt;use an output statement to put the variable on a single line. Also get rid of most of the missing &lt;/SPAN&gt;&lt;SPAN class="textLayer--absolute"&gt;values by using an if statement with the output (for ex: if y1980 ne . then output;)&lt;/SPAN&gt;&lt;SPAN class="textLayer--absolute"&gt;c. use the following code to summarize the data"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="textLayer--absolute"&gt;so far I have&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;data barley;
infile "/folders/myfolders/DATASETS/barley.txt" dlm='09'x firstobs=15 expandtabs;
input obs y1980 y1982 y1986;&lt;/PRE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;A href="https://imgur.com/a/KQeeHj3" target="_self"&gt;Question I am referring to&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 12:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696484#M212751</guid>
      <dc:creator>Curious4</dc:creator>
      <dc:date>2020-11-04T12:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know what this part is asking?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696516#M212763</link>
      <description>&lt;P&gt;It's worded awkwardly, but it is essentially saying to take each observation with three values (yields for 1980, 1982, and 1986)&amp;nbsp; and convert to three observations with two variables:&amp;nbsp; year and yield.&amp;nbsp; YEAR would only have the values 1980, 1982, and 1986.&amp;nbsp; The resulting dataset would have 3 times the number of observations as the starting dataset&amp;nbsp; (excluding missing values, if you so choose).&amp;nbsp; &amp;nbsp;You then could use the YEAR variable as a classification variable, or as an easy way to look at subsets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 14:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696516#M212763</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-11-04T14:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know what this part is asking?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696760#M212874</link>
      <description>&lt;P&gt;I still am confused about what this means.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 03:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696760#M212874</guid>
      <dc:creator>Curious4</dc:creator>
      <dc:date>2020-11-05T03:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know what this part is asking?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696761#M212875</link>
      <description>&lt;P&gt;It means to take this data set (have1), which you already know how to make.&amp;nbsp; (I use a sample of only the first 3 observations from your data):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have1;
  input OBS y1980 y1982 y986;
datalines;
1 211 192 149
2 221 179 132
3 225 134 206
run;
proc&amp;nbsp;print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And make it to look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have2;
  input OBS @;
  do year=1980,1982,1986 ;
    input yield @;
	output;
  end;
datalines;
1 211 192 149
2 221 179 132
3 225 134 206
run;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Take a look at the results of the proc prints.&amp;nbsp; The second one has nine lines, one for each obs/year combination.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But instead of making have2 from the original raw data, as I have done above, they want you to make have2 from have1, in a data step program.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 03:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696761#M212875</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-11-05T03:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know what this part is asking?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696762#M212876</link>
      <description>data barley;&lt;BR /&gt;infile "/folders/myfolders/DATASETS/barley.txt" dlm='09'x firstobs=15 expandtabs;&lt;BR /&gt;input obs y1980 y1982 y1986;&lt;BR /&gt;Y=y1; group=1; output;&lt;BR /&gt;Y=y2; group=2; output;&lt;BR /&gt;Y=y3; group=3; output;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I did this so far. Does this look like the right track?</description>
      <pubDate>Thu, 05 Nov 2020 03:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696762#M212876</guid>
      <dc:creator>Curious4</dc:creator>
      <dc:date>2020-11-05T03:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know what this part is asking?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696764#M212877</link>
      <description>&lt;P&gt;Instead of asking me - what does your output look like?&amp;nbsp; Does it match what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem you linked to says "specify year, set yield equal to the variable then use an output statement".&amp;nbsp; While it's true you have three output statements, you don't specify the year value.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 04:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696764#M212877</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-11-05T04:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know what this part is asking?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696888#M212950</link>
      <description>okay, thanks.&lt;BR /&gt;&lt;BR /&gt;I think i figured it out.</description>
      <pubDate>Thu, 05 Nov 2020 14:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-know-what-this-part-is-asking/m-p/696888#M212950</guid>
      <dc:creator>Curious4</dc:creator>
      <dc:date>2020-11-05T14:40:54Z</dc:date>
    </item>
  </channel>
</rss>

