<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627711#M185355</link>
    <description>&lt;P&gt;How do I upload a text file so the formatting is not off? This is the file.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 00:24:28 GMT</pubDate>
    <dc:creator>harveysarah0</dc:creator>
    <dc:date>2020-02-27T00:24:28Z</dc:date>
    <item>
      <title>SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627708#M185352</link>
      <description>&lt;DIV&gt;My code is:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;PROC IMPORT datafile=mouse;&lt;/DIV&gt;&lt;DIV&gt;Mouse; Day3; Day6; &amp;nbsp; Day9; &amp;nbsp; Day12; &amp;nbsp; Day15; Day18; Day21;&lt;/DIV&gt;&lt;DIV&gt;1 0.109 0.388 &amp;nbsp;0.621 &amp;nbsp; &amp;nbsp;0.823 1.078 1.132 1.191&lt;/DIV&gt;&lt;DIV&gt;2 0.218 0.393 &amp;nbsp;0.568 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.729 0.839 0.852 1.004&lt;/DIV&gt;&lt;DIV&gt;3 0.394 0.549 &amp;nbsp; &amp;nbsp; 0.700 &amp;nbsp;0.783 &amp;nbsp; 0.870 0.925&lt;/DIV&gt;&lt;DIV&gt;4 0.209 0.419 0.645 &amp;nbsp; &amp;nbsp; 0.850 1.001 1.026 1.069&lt;/DIV&gt;&lt;DIV&gt;5 0.193 0.362 0.520 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.530 0.641 0.640 0.751&lt;/DIV&gt;&lt;DIV&gt;6 0.201 0.361 0.502 &amp;nbsp; &amp;nbsp; &amp;nbsp;0.530 0.641 0.640 0.751&lt;/DIV&gt;&lt;DIV&gt;7 0.202 0.370 0.498 &amp;nbsp; &amp;nbsp;0.650 0.795 0.858 0.910&lt;/DIV&gt;&lt;DIV&gt;8 0.190 0.350 0.666 0.819 0.879 0.929&lt;/DIV&gt;&lt;DIV&gt;9 0.219 0.399 0.578 &amp;nbsp;0.699 0.709 0.822 0.953&lt;/DIV&gt;&lt;DIV&gt;10 0.255 0.400 0.545 &amp;nbsp;0.690 0.796 0.825 0.836&lt;/DIV&gt;&lt;DIV&gt;11 0.224 0.381 0.577 &amp;nbsp;0.756 0.869 0.929 0.999&lt;/DIV&gt;&lt;DIV&gt;12 0.187 0.329 0.441 0.525 0.621 0.796&lt;/DIV&gt;&lt;DIV&gt;13 0.278 0.471 0.606 0.770 0.888 1.001 1.105&lt;/DIV&gt;&lt;DIV&gt;;&lt;/DIV&gt;&lt;DIV&gt;RUN&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My output is:&lt;P&gt;&lt;BR /&gt;262 PROC IMPORT datafile=mouse;&lt;BR /&gt;ERROR: Output SAS data set must be provided.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;263 Mouse; Day3; Day6; Day9; Day12; Day15; Day18; Day21;&lt;BR /&gt;264 1 0.109 0.388 0.621 0.823 1.078 1.132 1.191&lt;BR /&gt;265 2 0.218 0.393 0.568 0.729 0.839 0.852 1.004&lt;BR /&gt;266 3 0.394 0.549 0.700 0.783 0.870 0.925&lt;BR /&gt;267 4 0.209 0.419 0.645 0.850 1.001 1.026 1.069&lt;BR /&gt;268 5 0.193 0.362 0.520 0.530 0.641 0.640 0.751&lt;BR /&gt;269 6 0.201 0.361 0.502 0.530 0.641 0.640 0.751&lt;BR /&gt;270 7 0.202 0.370 0.498 0.650 0.795 0.858 0.910&lt;BR /&gt;271 8 0.190 0.350 0.666 0.819 0.879 0.929&lt;BR /&gt;272 9 0.219 0.399 0.578 0.699 0.709 0.822 0.953&lt;BR /&gt;273 10 0.255 0.400 0.545 0.690 0.796 0.825 0.836&lt;BR /&gt;274 11 0.224 0.381 0.577 0.756 0.869 0.929 0.999&lt;BR /&gt;275 12 0.187 0.329 0.441 0.525 0.621 0.796&lt;BR /&gt;276 13 0.278 0.471 0.606 0.770 0.888 1.001 1.105&lt;BR /&gt;277 ;&lt;BR /&gt;278 RUN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a new dataset.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Feb 2020 23:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627708#M185352</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-26T23:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627710#M185354</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mouse;
infile datalines truncover;
input Mouse  Day3  Day6    Day9    Day12    Day15  Day18  Day21;
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;You have some lines that do not have values for all of the variables - e.g. Mouse 3 .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code assumes that it is the last variable (Day 21)&amp;nbsp; that is missing -&amp;nbsp;I can't tell from your formatting if this is a valid assumption .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 00:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627710#M185354</guid>
      <dc:creator>fdsaaaa</dc:creator>
      <dc:date>2020-02-27T00:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627711#M185355</link>
      <description>&lt;P&gt;How do I upload a text file so the formatting is not off? This is the file.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 00:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627711#M185355</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-27T00:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627714#M185357</link>
      <description>&lt;P&gt;I still receive this error after fixing my formatting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: Attachments for -3 reestablished for new parent.&lt;BR /&gt;NOTE: Import Cancelled.&lt;BR /&gt;315 PROC IMPORT datafile=mouse;&lt;BR /&gt;ERROR: Output SAS data set must be provided.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;new code:&lt;/P&gt;&lt;P&gt;PROC IMPORT datafile=mouse;&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;/P&gt;&lt;P&gt;;&lt;BR /&gt;RUN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 00:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627714#M185357</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-27T00:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627716#M185359</link>
      <description>&lt;P&gt;It does not look properly formatted here but I lined everything up in SAS.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 00:51:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627716#M185359</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-27T00:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627725#M185364</link>
      <description>&lt;P&gt;you initially said this was your code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT datafile=mouse;
Mouse; Day3; Day6;   Day9;   Day12;   Day15; Day18; Day21;
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;that would be the incorrect way to create a dataset , because you don't use proc import and then type in the values.&lt;/P&gt;
&lt;P&gt;Are you saying your data is actually in an external file?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 02:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627725#M185364</guid>
      <dc:creator>fdsaaaa</dc:creator>
      <dc:date>2020-02-27T02:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627826#M185417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313820"&gt;@harveysarah0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is one approach using datelines (you write the values in the code). The&amp;nbsp;&lt;SPAN&gt;The double trailing @@ is useful to indicate that a record needs to be reread on the next iteration of the DATA step.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DLM="09"x indicates&amp;nbsp;that values are separated by a tabulation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; DSD indicates that there can be missing values (two delimiters are not interpreted as a single one).&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mouse;
	infile datalines dlm="09"x dsd;
	input Mouse	Day3 Day6 Day9 Day12 Day15 Day18 Day21 @@;
	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;You can also directly import the txt file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="/path/MiceWeight.txt" /*update the physical path*/
	        out=mouse
	        dbms=tab
	        replace;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2020 09:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/627826#M185417</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-27T09:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/628051#M185510</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313820"&gt;@harveysarah0&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How do I upload a text file so the formatting is not off? This is the file.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the top of the message window is a row of icons. If you click on the one that looks like {I} then you will get a code box that treats pasted text as is and will not reformat. The result will look something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;This is my plain text
1   2    3
5   6    999&lt;/PRE&gt;
&lt;P&gt;Or the "running man" icon, which will provide syntax highlighting for SAS code.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 21:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS/m-p/628051#M185510</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-27T21:24:35Z</dc:date>
    </item>
  </channel>
</rss>

