<?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 import a CSV file into the SAS library in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674824#M23576</link>
    <description>&lt;A href="https://video.sas.com/detail/video/4664358166001/using-the-import-data-utility-in-sas-studio" target="_blank"&gt;https://video.sas.com/detail/video/4664358166001/using-the-import-data-utility-in-sas-studio&lt;/A&gt;</description>
    <pubDate>Wed, 05 Aug 2020 19:00:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-08-05T19:00:50Z</dc:date>
    <item>
      <title>How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674803#M23572</link>
      <description>&lt;P&gt;How do I import a csv file into the library or is it possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 18:00:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674803#M23572</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T18:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674804#M23573</link>
      <description>&lt;P&gt;My end goal is to create a frequency table..it lets me enter the source of the data but the data set is not showing up in the library&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 18:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674804#M23573</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T18:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674816#M23574</link>
      <description>Yes it's possible. Use an Import Data task is likely your best bet if you're unfamiliar with SAS. &lt;BR /&gt;Or use PROC IMPORT. That creates a SAS data set that can then be worked with in SAS.</description>
      <pubDate>Wed, 05 Aug 2020 18:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674816#M23574</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-05T18:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674819#M23575</link>
      <description>&lt;P&gt;You can use either proc import:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import file="Path_and_FileName.csv"
            out=test dbms=csv 
            replace;
     getnames=yes;  /* assume first line contains variable names */
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Try it and if any issue post the full log showing your code and messages.&lt;/P&gt;
&lt;P&gt;Depending on data types you may have issues especially getting the wrong type.&lt;/P&gt;
&lt;P&gt;If possible post also a sample lines from the csv file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 18:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674819#M23575</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-08-05T18:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674824#M23576</link>
      <description>&lt;A href="https://video.sas.com/detail/video/4664358166001/using-the-import-data-utility-in-sas-studio" target="_blank"&gt;https://video.sas.com/detail/video/4664358166001/using-the-import-data-utility-in-sas-studio&lt;/A&gt;</description>
      <pubDate>Wed, 05 Aug 2020 19:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674824#M23576</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-05T19:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674825#M23577</link>
      <description>&lt;P&gt;I have it now. I need a frequency table for an age group (18-50) along with gender&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc freq data=WORK.SYPHILIS;
	tables genderC genderB age / plots=(freqplot cumfreqplot);
run;

How do I write the code for an age group of 18-50

&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 19:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674825#M23577</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T19:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674827#M23578</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 19:03:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674827#M23578</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T19:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674833#M23579</link>
      <description>You add a WHERE statement to filter out/in the groups you want. &lt;BR /&gt;&lt;BR /&gt;WHERE age_group = '18 to 50';</description>
      <pubDate>Wed, 05 Aug 2020 19:27:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674833#M23579</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-05T19:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674835#M23580</link>
      <description>&lt;PRE&gt;proc freq data=WORK.SYPHILIS;
	tables age sex_o genderC genderB / plots=(freqplot cumfreqplot);
	where age_group= '18 to 50';
run;

Log: 

1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         /*
 74          *
 75          * Task code generated by SAS Studio 3.8
 76          *
 77          * Generated on '8/5/20, 12:06 PM'
 78          * Generated by 'u49152646'
 79          * Generated on server 'ODAWS02-USW2.ODA.SAS.COM'
 80          * Generated on SAS platform 'Linux LIN X64 3.10.0-1062.9.1.el7.x86_64'
 81          * Generated on SAS version '9.04.01M6P11072018'
 82          * Generated on browser 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
 82       ! Chrome/84.0.4147.105 Safari/537.36'
 83          * Generated on web client
 83       ! 'https://odamid-usw2.oda.sas.com/SASStudio/main?locale=en_US&amp;amp;zone=GMT-07%253A00&amp;amp;ticket=ST-58631-NKEgz3Gaqesii60Jleii-cas'
 84          *
 85          */
 86         
 87         proc freq data=WORK.SYPHILIS;
 88         tables age sex_o genderC genderB / plots=(freqplot cumfreqplot);
 89         where age_group= '18 to 50';
 ERROR: Variable age_group is not on file WORK.SYPHILIS.
 90         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE FREQ used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              1375.50k
       OS Memory           38572.00k
       Timestamp           08/05/2020 07:33:34 PM
       Step Count                        265  Switch Count  0
       Page Faults                       0
       Page Reclaims                     242
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 91         
 92         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 104        &lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 19:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674835#M23580</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T19:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674836#M23581</link>
      <description>&lt;P&gt;It says that the age_group is not on the work.syphilis file. Where did I go wrong?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 19:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674836#M23581</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T19:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674839#M23582</link>
      <description>&lt;P&gt;This is what it says:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc freq data=WORK.SYPHILIS;
	tables age sex_o genderC genderB / plots=(freqplot cumfreqplot);
	where age_group= '18 to 50';
run;

Log: 

 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         /*
 74          *
 75          * Task code generated by SAS Studio 3.8
 76          *
 77          * Generated on '8/5/20, 12:06 PM'
 78          * Generated by 'u49152646'
 79          * Generated on server 'ODAWS02-USW2.ODA.SAS.COM'
 80          * Generated on SAS platform 'Linux LIN X64 3.10.0-1062.9.1.el7.x86_64'
 81          * Generated on SAS version '9.04.01M6P11072018'
 82          * Generated on browser 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
 82       ! Chrome/84.0.4147.105 Safari/537.36'
 83          * Generated on web client
 83       ! 'https://odamid-usw2.oda.sas.com/SASStudio/main?locale=en_US&amp;amp;zone=GMT-07%253A00&amp;amp;ticket=ST-58631-NKEgz3Gaqesii60Jleii-cas'
 84          *
 85          */
 86         
 87         proc freq data=WORK.SYPHILIS;
 88         tables age sex_o genderC genderB / plots=(freqplot cumfreqplot);
 89         where age_group= '18 to 50';
 ERROR: Variable age_group is not on file WORK.SYPHILIS.
 90         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE FREQ used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              1375.50k
       OS Memory           38572.00k
       Timestamp           08/05/2020 07:33:34 PM
       Step Count                        265  Switch Count  0
       Page Faults                       0
       Page Reclaims                     242
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 91         
 92         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 104        &lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 19:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674839#M23582</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T19:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674844#M23583</link>
      <description>&lt;P&gt;I figured it out..I did where age between 19 and 50;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 19:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674844#M23583</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T19:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674846#M23584</link>
      <description>&lt;P&gt;Your variable is named age. What kind of values does it contain?&lt;/P&gt;
&lt;P&gt;The WHERE statement may be either&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;where age is between 18 and 50&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;where age is "18 to 50"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;depending on age variable&amp;nbsp; - is it an age of a person or&lt;/P&gt;
&lt;P&gt;is it a group age/&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 19:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674846#M23584</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-08-05T19:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674847#M23585</link>
      <description>&lt;P&gt;It is a group age...(Age of people between the age of 18 and 50)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got a frequency table from age 18-50....but I didn't use the word "is"..Does it matter&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;proc freq data=WORK.SYPHILIS;
	tables age sex_o genderC genderB RACE / plots=(freqplot cumfreqplot);
	where age between 18 and 50;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 20:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674847#M23585</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T20:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674851#M23586</link>
      <description>We don't have your data so can only guess at what you're asking...if you need specific help you need to provide sample data.</description>
      <pubDate>Wed, 05 Aug 2020 20:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674851#M23586</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-05T20:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674857#M23587</link>
      <description>&lt;P&gt;Attached is my data. Again, my where statement was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where age between 18 and 50&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 20:33:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674857#M23587</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-05T20:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I import a CSV file into the SAS library</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674860#M23588</link>
      <description>&lt;P&gt;1) If the AGE is a group given as "18-50" then use&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;where age = "18-50";&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&amp;nbsp; If AGE is a number like 25 then you can use&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;where age between 18 and 50;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) The title of your post is "&lt;SPAN&gt;How do I import a CSV file into the SAS library".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You got the solution to your question.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; The new post dealing how to subset your date according to age group&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; should be posted as a new query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 20:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-import-a-CSV-file-into-the-SAS-library/m-p/674860#M23588</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-08-05T20:35:53Z</dc:date>
    </item>
  </channel>
</rss>

