<?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: How do I implement this question into my code. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771047#M244744</link>
    <description>&lt;P&gt;No sorry I haven't. This class has been moving way too fast for me. I've never done programming before and it seems I must look through hours of notes to just find the right symbol.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Sep 2021 23:06:28 GMT</pubDate>
    <dc:creator>Godzilla_Hat</dc:creator>
    <dc:date>2021-09-28T23:06:28Z</dc:date>
    <item>
      <title>How do I set up this dataset using these programs ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771032#M244613</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="This what I'm supposed to do to the code" style="width: 643px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64212iF8F9FD94F85DCE23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Assignmet 2 problem .png" alt="This what I'm supposed to do to the code" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;This what I'm supposed to do to the code&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="This is the dataset" style="width: 520px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64213iB62F4430D43FF156/image-size/large?v=v2&amp;amp;px=999" role="button" title="Assignment 2 code .png" alt="This is the dataset" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;This is the dataset&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data snl;
input 
	name $ 
	hosts 
	firstdate  
	lastdate  
; 
datalines;
Ben Affleck         5       2/19/2000      18-May-13
Alec Baldwin       16       4/21/1990      10-Dec-94
Drew Barrymore      6      11/20/1982      03-Feb-07
Candice Bergen      5      11/8/1975       19-May-90
Chevy Chase         8       2/18/1978      06-Dec-86
Danny DeVito        6       5/15/1982      09-Jan-93
John Goodman       13      12/2/1989       07-May-94
Elliott Gould       6       1/10/1976      16-Feb-80
Tom Hanks           8      12/14/1985      08-Dec-90
Buck Henry         10       1/17/1976      19-Nov-77
Steve Martin       15      10/23/1976      22-Apr-78
Bill Murray         5       3/7/1981       20-Feb-99
Justin Timberlake   5      10/11/2003      09-Mar-13
Christopher Walken  7       1/20/1990      19-May-01
;
run;

proc print data=snl;
&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;^^^This is what I've gotten done. I'm unsure of how I'm suppose to implement the steps into the code.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 22:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771032#M244613</guid>
      <dc:creator>Godzilla_Hat</dc:creator>
      <dc:date>2021-09-28T22:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up this dataset using these programs ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771033#M244614</link>
      <description>&lt;P&gt;As this is a homework assignment, please show us what you have tried. We'll be happy to help improve your code.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 22:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771033#M244614</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-28T22:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up this dataset using these programs ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771035#M244615</link>
      <description>&lt;P&gt;Hint: Read dates with a date-type informat. Then you can assign a format in Proc Print to display values as desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sort requirement looks like it want to use the variable you called "hosts".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354&lt;/A&gt; has a PDF with much information about dates.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 22:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771035#M244615</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-28T22:22:16Z</dc:date>
    </item>
    <item>
      <title>How do I implement this question into my code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771038#M244741</link>
      <description>&lt;P&gt;I can't seem put first and last name into one variable and change the dates into a specfic format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Part 1 .png" style="width: 627px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64214i71D6F78F6E6F9F53/image-size/large?v=v2&amp;amp;px=999" role="button" title="Part 1 .png" alt="Part 1 .png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is what I have typed out and I'm unsure of which statements to use and where to put them. I'm unsure of what lenth I should set my variables at.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data snl;
input 
	name $ 3-5
	hosts 13-14
	firstdate  
	lastdate  
; 
datalines;
Ben Affleck         5       2/19/2000      18-May-13
Alec Baldwin       16       4/21/1990      10-Dec-94
Drew Barrymore      6      11/20/1982      03-Feb-07
Candice Bergen      5      11/8/1975       19-May-90
Chevy Chase         8       2/18/1978      06-Dec-86
Danny DeVito        6       5/15/1982      09-Jan-93
John Goodman       13      12/2/1989       07-May-94
Elliott Gould       6       1/10/1976      16-Feb-80
Tom Hanks           8      12/14/1985      08-Dec-90
Buck Henry         10       1/17/1976      19-Nov-77
Steve Martin       15      10/23/1976      22-Apr-78
Bill Murray         5       3/7/1981       20-Feb-99
Justin Timberlake   5      10/11/2003      09-Mar-13
Christopher Walken  7       1/20/1990      19-May-01
;
run;

proc print data=snl;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Sep 2021 22:37:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771038#M244741</guid>
      <dc:creator>Godzilla_Hat</dc:creator>
      <dc:date>2021-09-28T22:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I implement this question into my code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771039#M244742</link>
      <description>Did you learn the INPUT statement? Specifically the &amp;amp; or &amp;amp;&amp;amp; symbols? The use of double spaces?&lt;BR /&gt;Since you're creating the datalines you could also add delimiters besides just spaces? That's usually the easiest method.</description>
      <pubDate>Tue, 28 Sep 2021 22:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771039#M244742</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-28T22:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I implement this question into my code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771042#M244743</link>
      <description>&lt;P&gt;Have you looked at the result of your data step? What values do you see for "name"? That is clue on how to modify the input to read the name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint: what does the 3 - 5 after the Name mean? Look at the values and they will show you.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 22:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771042#M244743</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-28T22:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I implement this question into my code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771047#M244744</link>
      <description>&lt;P&gt;No sorry I haven't. This class has been moving way too fast for me. I've never done programming before and it seems I must look through hours of notes to just find the right symbol.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 23:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771047#M244744</guid>
      <dc:creator>Godzilla_Hat</dc:creator>
      <dc:date>2021-09-28T23:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I implement this question into my code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771058#M244745</link>
      <description>&lt;P&gt;This exersize leads you to next subjects:&lt;/P&gt;
&lt;P&gt;1) The INPUT statement - geting data into sas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Search documentation google &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n0oaql83drile0n141pdacojq97s.htm" target="_self"&gt;"sas documentation input statement".&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2) Converting dates from display mode to sas dates and vice versa by using&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;INFORMAT and FORMAT statements by category - (on same page link as above).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to implement what you understood and test it.&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 03:11:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771058#M244745</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-09-29T03:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I implement this question into my code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771181#M244746</link>
      <description>&lt;P&gt;Where did you copy this data from?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 17:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771181#M244746</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-09-29T17:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I implement this question into my code.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771195#M244747</link>
      <description>&lt;P&gt;Once you get it working you should tell the instructor that displaying dates with only two digits for year should be anathema to programmers.&amp;nbsp; &lt;A href="https://www.google.com/search?q=y2k+problem" target="_self"&gt;Google Y2K problem&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same for displaying date in either month,day,year or day,month,year order.&amp;nbsp; Whichever of those two you pick will confuse half of your audience.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 18:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771195#M244747</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-29T18:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set up this dataset using these programs ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771334#M244755</link>
      <description>&lt;P&gt;I merged your questions dealing with the same homework.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given that you want to read fixed-width data, you have to use positional input and the proper informats.&lt;/P&gt;
&lt;P&gt;Use&amp;nbsp;@x (x being the position within a line, starting at 1) before the variable in question.&lt;/P&gt;
&lt;P&gt;Use a $w. (w being the width) to read the name, so that the blank(s) in the names don't interfere.&lt;/P&gt;
&lt;P&gt;Use MMDDYYw. and DATEw. informats for the dates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 10:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-set-up-this-dataset-using-these-programs/m-p/771334#M244755</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-09-30T10:15:55Z</dc:date>
    </item>
  </channel>
</rss>

