<?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: SAS help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627908#M185449</link>
    <description>&lt;P&gt;You're mixing up PROC IMPORT with a Data step. PROC IMPORT is done as my previous example above. What you've done here is closer to a DATALINES step except your missing that key syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is what you need to do (keep in mind this isn't 100% working due to missing data).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*naming our dataset */
data have; 
/* Setting input to declare our variables (column headers) */
input Mouse Day3 Day6 Day9 Day12 Day15 Day18 Day21;
/* calling datalines which allows us to put in the values */
datalines;
 1 0.109 0.388 0.621 0.823 1.078 1.132 1.191
 2 0.218 0.393 0.568 0.729 0.839 0.852 1.004
 3 0.394 0.549 0.700 0.783 0.870 0.925	    
 4 0.209 0.419 0.645 0.850 1.001 1.026 1.069
 5 0.193 0.362 0.520 0.530 0.641 0.640 0.751
 6 0.201 0.361 0.502 0.530 0.641 0.640 0.751
 7 0.202 0.370 0.498 0.650 0.795 0.858 0.910
 8 0.190 0.350 0.666 0.819 0.879 0.929      
 9 0.219 0.399 0.578 0.699 0.709 0.822 0.953
10 0.255 0.400 0.545 0.690 0.796 0.825 0.836
11 0.224 0.381 0.577 0.756 0.869 0.929 0.999
12 0.187 0.329 0.441 0.525 0.621 0.796	 	
13 0.278 0.471 0.606 0.770 0.888 1.001 1.105
;
RUN&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When you look over the above and run it you should notice that your data doesn't line up starting at Mouse 4. Given Day3-Day21 are all numeric values you need to identify the blanks as missing. To do that you need to place a period for those areas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*naming our dataset */&lt;BR /&gt;data have; &lt;BR /&gt;/* Setting input to declare our variables (column headers) */&lt;BR /&gt;input Mouse Day3 Day6 Day9 Day12 Day15 Day18 Day21;&lt;BR /&gt;/* calling datalines which allows us to put in the values */&lt;BR /&gt;datalines;&lt;BR /&gt;1 0.109 0.388 0.621 0.823 1.078 1.132 1.191&lt;BR /&gt;2 0.218 0.393 0.568 0.729 0.839 0.852 1.004&lt;BR /&gt;3 0.394 0.549 0.700 0.783 0.870 0.925 . &lt;BR /&gt;4 0.209 0.419 0.645 0.850 1.001 1.026 1.069&lt;BR /&gt;5 0.193 0.362 0.520 0.530 0.641 0.640 0.751&lt;BR /&gt;6 0.201 0.361 0.502 0.530 0.641 0.640 0.751&lt;BR /&gt;7 0.202 0.370 0.498 0.650 0.795 0.858 0.910&lt;BR /&gt;8 0.190 0.350 0.666 0.819 0.879 0.929 . &lt;BR /&gt;9 0.219 0.399 0.578 0.699 0.709 0.822 0.953&lt;BR /&gt;10 0.255 0.400 0.545 0.690 0.796 0.825 0.836&lt;BR /&gt;11 0.224 0.381 0.577 0.756 0.869 0.929 0.999&lt;BR /&gt;12 0.187 0.329 0.441 0.525 0.621 0.796 . &lt;BR /&gt;13 0.278 0.471 0.606 0.770 0.888 1.001 1.105&lt;BR /&gt;;&lt;BR /&gt;RUN/*naming our dataset */
data have; 
/* Setting input to declare our variables (column headers) */
input Mouse Day3 Day6 Day9 Day12 Day15 Day18 Day21;
/* calling datalines which allows us to put in the values */
datalines;
 1 0.109 0.388 0.621 0.823 1.078 1.132 1.191
 2 0.218 0.393 0.568 0.729 0.839 0.852 1.004
 3 0.394 0.549 0.700 0.783 0.870 0.925	    .
 4 0.209 0.419 0.645 0.850 1.001 1.026 1.069
 5 0.193 0.362 0.520 0.530 0.641 0.640 0.751
 6 0.201 0.361 0.502 0.530 0.641 0.640 0.751
 7 0.202 0.370 0.498 0.650 0.795 0.858 0.910
 8 0.190 0.350 0.666 0.819 0.879 0.929    .  
 9 0.219 0.399 0.578 0.699 0.709 0.822 0.953
10 0.255 0.400 0.545 0.690 0.796 0.825 0.836
11 0.224 0.381 0.577 0.756 0.869 0.929 0.999
12 0.187 0.329 0.441 0.525 0.621 0.796    .	 
13 0.278 0.471 0.606 0.770 0.888 1.001 1.105
;
RUN&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 14:09:20 GMT</pubDate>
    <dc:creator>Krueger</dc:creator>
    <dc:date>2020-02-27T14:09:20Z</dc:date>
    <item>
      <title>SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627677#M185333</link>
      <description>&lt;P&gt;Using an organized version of the Mouse Weights data set from HW 2, complete the&lt;/P&gt;&lt;P&gt;following.&lt;/P&gt;&lt;P&gt;a) Import the organized data set to SAS. Calculate the difference between the Day 21&lt;/P&gt;&lt;P&gt;weight and the Day 3 weight for each mouse. Present it as a new column in SAS and&lt;/P&gt;&lt;P&gt;print only the mouse number and the weight difference.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627677#M185333</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-26T21:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627679#M185335</link>
      <description>&lt;P&gt;What exactly is your question?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627679#M185335</guid>
      <dc:creator>Krueger</dc:creator>
      <dc:date>2020-02-26T21:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627680#M185336</link>
      <description>&lt;P&gt;I need help working through this question&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627680#M185336</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-26T21:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627685#M185339</link>
      <description>&lt;P&gt;How do I input this data set into SAS?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627685#M185339</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-26T21:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627686#M185340</link>
      <description>&lt;P&gt;1. Import the data you want.&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n18jyszn33umngn14czw2qfw7thc.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n18jyszn33umngn14czw2qfw7thc.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Add new column with your calculation. (There are many examples of how to do this on google)&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-calculated-column-in-an-existing-dataset/td-p/438296" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/How-do-I-create-a-calculated-column-in-an-existing-dataset/td-p/438296&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you run into errors with the above ask away.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: As I feel it's important to mention, google is your friend with learning anything. When it comes to programming you can generally either find an example of someone doing what you are attempting or at the very least find documentation. The sooner you get used to this the easier it's going to be.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627686#M185340</guid>
      <dc:creator>Krueger</dc:creator>
      <dc:date>2020-02-26T21:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627689#M185342</link>
      <description>&lt;P&gt;This is the code I used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Proc Import data mice;&lt;/DIV&gt;&lt;DIV&gt;input&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;cards;&lt;/DIV&gt;&lt;DIV&gt;;&lt;/DIV&gt;&lt;DIV&gt;Mouse Day3 Day6 Day9&lt;/DIV&gt;&lt;DIV&gt;Day12 Day15 Day18 Day21&lt;/DIV&gt;&lt;DIV&gt;1 0.109 0.388 0.621&lt;/DIV&gt;&lt;DIV&gt;0.823 1.078 1.132 1.191&lt;/DIV&gt;&lt;DIV&gt;2 0.218 0.393 0.568&lt;/DIV&gt;&lt;DIV&gt;0.729 0.839 0.852 1.004&lt;/DIV&gt;&lt;DIV&gt;3 0.394 0.549&lt;/DIV&gt;&lt;DIV&gt;0.700 0.783 0.870 0.925&lt;/DIV&gt;&lt;DIV&gt;4 0.209 0.419 0.645&lt;/DIV&gt;&lt;DIV&gt;0.850 1.001 1.026 1.069&lt;/DIV&gt;&lt;DIV&gt;5 0.193 0.362 0.520&lt;/DIV&gt;&lt;DIV&gt;0.530 0.641 0.640 0.751&lt;/DIV&gt;&lt;DIV&gt;6 0.201 0.361 0.502&lt;/DIV&gt;&lt;DIV&gt;0.530 0.641 0.640 0.751&lt;/DIV&gt;&lt;DIV&gt;7 0.202 0.370 0.498&lt;/DIV&gt;&lt;DIV&gt;0.650 0.795 0.858 0.910&lt;/DIV&gt;&lt;DIV&gt;80.1900.350&lt;/DIV&gt;&lt;DIV&gt;0.666 0.819 0.879 0.929&lt;/DIV&gt;&lt;DIV&gt;9 0.219 0.399 0.578&lt;/DIV&gt;&lt;DIV&gt;0.699 0.709 0.822 0.953&lt;/DIV&gt;&lt;DIV&gt;10 0.255 0.400 0.545&lt;/DIV&gt;&lt;DIV&gt;0.690 0.796 0.825 0.836&lt;/DIV&gt;&lt;DIV&gt;11 0.224 0.381 0.577&lt;/DIV&gt;&lt;DIV&gt;0.756 0.869 0.929 0.999&lt;/DIV&gt;&lt;DIV&gt;12 0.187 0.329 0.441&lt;/DIV&gt;&lt;DIV&gt;0.525 0.621 0.796&lt;/DIV&gt;&lt;DIV&gt;13 0.278 0.471 0.606&lt;/DIV&gt;&lt;DIV&gt;0.770 0.888 1.001 1.105&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is my output.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;1 Proc Import data mice;&lt;BR /&gt;----&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, DATAFILE, DATATABLE, DBMS, DEBUG,&lt;BR /&gt;FILE, OUT, REPLACE, TABLE, _DEBUG_.&lt;/P&gt;&lt;P&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;2 input&lt;BR /&gt;3 cards;&lt;BR /&gt;4 ;&lt;BR /&gt;5 Mouse Day3 Day6 Day9&lt;BR /&gt;6 Day12 Day15 Day18 Day21&lt;BR /&gt;7 1 0.109 0.388 0.621&lt;BR /&gt;8 0.823 1.078 1.132 1.191&lt;BR /&gt;9 2 0.218 0.393 0.568&lt;BR /&gt;10 0.729 0.839 0.852 1.004&lt;BR /&gt;11 3 0.394 0.549&lt;BR /&gt;12 0.700 0.783 0.870 0.925&lt;BR /&gt;13 4 0.209 0.419 0.645&lt;BR /&gt;14 0.850 1.001 1.026 1.069&lt;BR /&gt;15 5 0.193 0.362 0.520&lt;BR /&gt;16 0.530 0.641 0.640 0.751&lt;BR /&gt;17 6 0.201 0.361 0.502&lt;BR /&gt;18 0.530 0.641 0.640 0.751&lt;BR /&gt;19 7 0.202 0.370 0.498&lt;BR /&gt;20 0.650 0.795 0.858 0.910&lt;BR /&gt;21 8 0.190 0.350&lt;BR /&gt;22 0.666 0.819 0.879 0.929&lt;BR /&gt;23 9 0.219 0.399 0.578&lt;BR /&gt;24 0.699 0.709 0.822 0.953&lt;BR /&gt;25 10 0.255 0.400 0.545&lt;BR /&gt;26 0.690 0.796 0.825 0.836&lt;BR /&gt;27 11 0.224 0.381 0.577&lt;BR /&gt;28 0.756 0.869 0.929 0.999&lt;BR /&gt;29 12 0.187 0.329 0.441&lt;BR /&gt;30 0.525 0.621 0.796&lt;BR /&gt;31 13 0.278 0.471 0.606&lt;BR /&gt;32 0.770 0.888 1.001 1.105&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627689#M185342</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-26T21:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627693#M185343</link>
      <description>&lt;P&gt;In SAS there two types of steps. DATA steps and PROC steps.&amp;nbsp; You seem to have mixed the syntax of the two into one step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the text in your original attachment and the copy you pasted into this code as in-line data lines you do NOT want to try to run PROC IMPORT on this data. It does not know how to read data that spans lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So try writing a data step to read the file.&amp;nbsp; Hint: You do not want to read only one variable, and you don't want to name that variable CARDS.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627693#M185343</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-26T21:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627694#M185344</link>
      <description>&lt;P&gt;Like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;data mice;&lt;/DIV&gt;&lt;DIV&gt;input&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;;&lt;/DIV&gt;&lt;DIV&gt;Mouse Day3 Day6 Day9&lt;/DIV&gt;&lt;DIV&gt;Day12 Day15 Day18 Day21&lt;/DIV&gt;&lt;DIV&gt;1 0.109 0.388 0.621&lt;/DIV&gt;&lt;DIV&gt;0.823 1.078 1.132 1.191&lt;/DIV&gt;&lt;DIV&gt;2 0.218 0.393 0.568&lt;/DIV&gt;&lt;DIV&gt;0.729 0.839 0.852 1.004&lt;/DIV&gt;&lt;DIV&gt;3 0.394 0.549&lt;/DIV&gt;&lt;DIV&gt;0.700 0.783 0.870 0.925&lt;/DIV&gt;&lt;DIV&gt;4 0.209 0.419 0.645&lt;/DIV&gt;&lt;DIV&gt;0.850 1.001 1.026 1.069&lt;/DIV&gt;&lt;DIV&gt;5 0.193 0.362 0.520&lt;/DIV&gt;&lt;DIV&gt;0.530 0.641 0.640 0.751&lt;/DIV&gt;&lt;DIV&gt;6 0.201 0.361 0.502&lt;/DIV&gt;&lt;DIV&gt;0.530 0.641 0.640 0.751&lt;/DIV&gt;&lt;DIV&gt;7 0.202 0.370 0.498&lt;/DIV&gt;&lt;DIV&gt;0.650 0.795 0.858 0.910&lt;/DIV&gt;&lt;DIV&gt;80.1900.350&lt;/DIV&gt;&lt;DIV&gt;0.666 0.819 0.879 0.929&lt;/DIV&gt;&lt;DIV&gt;9 0.219 0.399 0.578&lt;/DIV&gt;&lt;DIV&gt;0.699 0.709 0.822 0.953&lt;/DIV&gt;&lt;DIV&gt;10 0.255 0.400 0.545&lt;/DIV&gt;&lt;DIV&gt;0.690 0.796 0.825 0.836&lt;/DIV&gt;&lt;DIV&gt;11 0.224 0.381 0.577&lt;/DIV&gt;&lt;DIV&gt;0.756 0.869 0.929 0.999&lt;/DIV&gt;&lt;DIV&gt;12 0.187 0.329 0.441&lt;/DIV&gt;&lt;DIV&gt;0.525 0.621 0.796&lt;/DIV&gt;&lt;DIV&gt;13 0.278 0.471 0.606&lt;/DIV&gt;&lt;DIV&gt;0.770 0.888 1.001 1.105&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627694#M185344</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-26T21:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627695#M185345</link>
      <description>&lt;P&gt;So the article I sent previously provides examples (&lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1w1xy48wd290bn1mqalitn7wy13.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1w1xy48wd290bn1mqalitn7wy13"&gt;https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=n1w1xy48wd290bn1mqalitn7wy13.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1w1xy48wd290bn1mqalitn7wy13&lt;/A&gt;) on how to do this. Your data in the text file needed to be reformatted (Just line everything up so all the variables are separated with your TAB button and all columns are on top) correctly but once done you can use the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc import datafile='C:\MiceWeight.txt' /* Your path goes here directly to the .txt file */
            out=have
            dbms=dlm
            replace;
			delimiter='09'x;
run;

data want;
	set have;
	weightdiff = day21-day3;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd recommend you try following through with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;as well and his solution which is a different approach from this but will probably make more sense to you once you actually learn it. Best of luck!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627695#M185345</guid>
      <dc:creator>Krueger</dc:creator>
      <dc:date>2020-02-26T21:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627697#M185346</link>
      <description>&lt;P&gt;So now your INPUT statement is not reading any variables and all. That is actually a valid statement, but not what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also there is nothing to tell the data step that the lines starting with MOUSE are not statements.&amp;nbsp; But they don't look like SAS statements do they?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 21:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627697#M185346</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-26T21:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627698#M185347</link>
      <description>&lt;P&gt;PROC IMPORT data;&lt;BR /&gt;Mouse Day3 Day6 Day9 Day12 Day15 Day18 Day21&lt;BR /&gt;1 0.109 0.388 0.621 0.823 1.078 1.132 1.191&lt;BR /&gt;2 0.218 0.393 0.568 0.729 0.839 0.852 1.004&lt;BR /&gt;3 0.394 0.549 0.700 0.783 0.870 0.925&lt;BR /&gt;4 0.209 0.419 0.645 0.850 1.001 1.026 1.069&lt;BR /&gt;5 0.193 0.362 0.520 0.530 0.641 0.640 0.751&lt;BR /&gt;6 0.201 0.361 0.502 0.530 0.641 0.640 0.751&lt;BR /&gt;7 0.202 0.370 0.498 0.650 0.795 0.858 0.910&lt;BR /&gt;8 0.190 0.350 0.666 0.819 0.879 0.929&lt;BR /&gt;9 0.219 0.399 0.578 0.699 0.709 0.822 0.953&lt;BR /&gt;10 0.255 0.400 0.545 0.690 0.796 0.825 0.836&lt;BR /&gt;11 0.224 0.381 0.577 0.756 0.869 0.929 0.999&lt;BR /&gt;12 0.187 0.329 0.441 0.525 0.621 0.796&lt;BR /&gt;13 0.278 0.471 0.606 0.770 0.888 1.001 1.105&lt;BR /&gt;;&lt;BR /&gt;RUN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did this as my code but still getting errors. What am I doing wrong? Sorry I am very new to this&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 22:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627698#M185347</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-26T22:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627705#M185350</link>
      <description>&lt;P&gt;So what is wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 23:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627705#M185350</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-26T23:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627738#M185370</link>
      <description>&lt;P&gt;Did you get any instructions on how to make a data step? How to use the INPUT statement?&lt;/P&gt;
&lt;P&gt;Here is an article about it:&amp;nbsp;&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi29/253-29.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi29/253-29.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is the first example in that article:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA LIST;
 INPUT X Y A $ Z;
DATALINES;
1 2 HELLO 3
4 5 GOODBYE 6
;
PROC PRINT DATA=LIST;
 TITLE 'LIST INPUT';
RUN; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Notice how there is a list of names on the INPUT statement?&amp;nbsp; Notice the DATALINES statement&amp;nbsp; that marks the start of the in-line data?&amp;nbsp; (your original code was attempting to use CARDS statement, which is the older alias for the same thing.).&amp;nbsp; Notice how each statement ends with a semi-colon?&amp;nbsp; Notice how the end of the in-line data is marked by a line that only has a semi-colon?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 03:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627738#M185370</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-27T03:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627782#M185391</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/295821"&gt;@Krueger&lt;/a&gt; posted a working version of proc import reading the file. Have your tried it? The only thing you need to do, is changing the path to the location where you have saved the txt-file.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 06:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627782#M185391</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-02-27T06:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627908#M185449</link>
      <description>&lt;P&gt;You're mixing up PROC IMPORT with a Data step. PROC IMPORT is done as my previous example above. What you've done here is closer to a DATALINES step except your missing that key syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is what you need to do (keep in mind this isn't 100% working due to missing data).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*naming our dataset */
data have; 
/* Setting input to declare our variables (column headers) */
input Mouse Day3 Day6 Day9 Day12 Day15 Day18 Day21;
/* calling datalines which allows us to put in the values */
datalines;
 1 0.109 0.388 0.621 0.823 1.078 1.132 1.191
 2 0.218 0.393 0.568 0.729 0.839 0.852 1.004
 3 0.394 0.549 0.700 0.783 0.870 0.925	    
 4 0.209 0.419 0.645 0.850 1.001 1.026 1.069
 5 0.193 0.362 0.520 0.530 0.641 0.640 0.751
 6 0.201 0.361 0.502 0.530 0.641 0.640 0.751
 7 0.202 0.370 0.498 0.650 0.795 0.858 0.910
 8 0.190 0.350 0.666 0.819 0.879 0.929      
 9 0.219 0.399 0.578 0.699 0.709 0.822 0.953
10 0.255 0.400 0.545 0.690 0.796 0.825 0.836
11 0.224 0.381 0.577 0.756 0.869 0.929 0.999
12 0.187 0.329 0.441 0.525 0.621 0.796	 	
13 0.278 0.471 0.606 0.770 0.888 1.001 1.105
;
RUN&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When you look over the above and run it you should notice that your data doesn't line up starting at Mouse 4. Given Day3-Day21 are all numeric values you need to identify the blanks as missing. To do that you need to place a period for those areas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*naming our dataset */&lt;BR /&gt;data have; &lt;BR /&gt;/* Setting input to declare our variables (column headers) */&lt;BR /&gt;input Mouse Day3 Day6 Day9 Day12 Day15 Day18 Day21;&lt;BR /&gt;/* calling datalines which allows us to put in the values */&lt;BR /&gt;datalines;&lt;BR /&gt;1 0.109 0.388 0.621 0.823 1.078 1.132 1.191&lt;BR /&gt;2 0.218 0.393 0.568 0.729 0.839 0.852 1.004&lt;BR /&gt;3 0.394 0.549 0.700 0.783 0.870 0.925 . &lt;BR /&gt;4 0.209 0.419 0.645 0.850 1.001 1.026 1.069&lt;BR /&gt;5 0.193 0.362 0.520 0.530 0.641 0.640 0.751&lt;BR /&gt;6 0.201 0.361 0.502 0.530 0.641 0.640 0.751&lt;BR /&gt;7 0.202 0.370 0.498 0.650 0.795 0.858 0.910&lt;BR /&gt;8 0.190 0.350 0.666 0.819 0.879 0.929 . &lt;BR /&gt;9 0.219 0.399 0.578 0.699 0.709 0.822 0.953&lt;BR /&gt;10 0.255 0.400 0.545 0.690 0.796 0.825 0.836&lt;BR /&gt;11 0.224 0.381 0.577 0.756 0.869 0.929 0.999&lt;BR /&gt;12 0.187 0.329 0.441 0.525 0.621 0.796 . &lt;BR /&gt;13 0.278 0.471 0.606 0.770 0.888 1.001 1.105&lt;BR /&gt;;&lt;BR /&gt;RUN/*naming our dataset */
data have; 
/* Setting input to declare our variables (column headers) */
input Mouse Day3 Day6 Day9 Day12 Day15 Day18 Day21;
/* calling datalines which allows us to put in the values */
datalines;
 1 0.109 0.388 0.621 0.823 1.078 1.132 1.191
 2 0.218 0.393 0.568 0.729 0.839 0.852 1.004
 3 0.394 0.549 0.700 0.783 0.870 0.925	    .
 4 0.209 0.419 0.645 0.850 1.001 1.026 1.069
 5 0.193 0.362 0.520 0.530 0.641 0.640 0.751
 6 0.201 0.361 0.502 0.530 0.641 0.640 0.751
 7 0.202 0.370 0.498 0.650 0.795 0.858 0.910
 8 0.190 0.350 0.666 0.819 0.879 0.929    .  
 9 0.219 0.399 0.578 0.699 0.709 0.822 0.953
10 0.255 0.400 0.545 0.690 0.796 0.825 0.836
11 0.224 0.381 0.577 0.756 0.869 0.929 0.999
12 0.187 0.329 0.441 0.525 0.621 0.796    .	 
13 0.278 0.471 0.606 0.770 0.888 1.001 1.105
;
RUN&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 14:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-help/m-p/627908#M185449</guid>
      <dc:creator>Krueger</dc:creator>
      <dc:date>2020-02-27T14:09:20Z</dc:date>
    </item>
  </channel>
</rss>

