<?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 can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419836#M280529</link>
    <description>&lt;P&gt;You could add a where= dataset option to the dataset in the proc import statement.&lt;/P&gt;
&lt;P&gt;Or you could save to a csv file from Excel and take care of unnecessary data in the data step that reads the csv. Which is the preferred way.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Dec 2017 18:33:18 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-12-09T18:33:18Z</dc:date>
    <item>
      <title>How can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419834#M280528</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first question is how can I get rid of unnecessary rows when I import an xlsx file to a temporary sas version 9 dataset? Here is my xlsx file and here is what sas produces from that file in a screenshot. The other question is can I create a&lt;STRONG&gt;&lt;I&gt;&amp;nbsp; &lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;permanent dataset when I import an xlsx file or do I have to create a procedure to do that?&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;25 years and over&lt;/TD&gt;&lt;TD&gt;55,270&lt;/TD&gt;&lt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t;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 18:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419834#M280528</guid>
      <dc:creator>dseals23</dc:creator>
      <dc:date>2017-12-09T18:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419836#M280529</link>
      <description>&lt;P&gt;You could add a where= dataset option to the dataset in the proc import statement.&lt;/P&gt;
&lt;P&gt;Or you could save to a csv file from Excel and take care of unnecessary data in the data step that reads the csv. Which is the preferred way.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 18:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419836#M280529</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-09T18:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419861#M280530</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;, I have two different data excel files named EthnicitySexInfo and SexAgeInfo as excel files but I saved them as csv files currently. I didn't have to use the snippet tool feature to import csv files; however, I just put them directly into the sasuniversity folder which then would automatically get transferred to the 68380_ example folder that I want. To make a long story short, the files are both csv files now. But then I went to import one of the files using this code, it says the file could not be found. I am just testing it out to see if it would output any data in that csv file.I understand what the error message means but there is a file inside of that directory. So that doesn't make sense to me. Here is import file code for the SexAgeInfo csv file:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another comment that I wanted to make is if I put all these files inside of 68380_example folder using the file explorer path that leads to the 68380_example folder,&amp;nbsp; it does successfully transfer those same files to the SAS Studio environment which also has all the same directories.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/** FOR CSV Files uploaded from Windows **/
FILENAME CSV "myfolders/folders/68380_example/SexAgeInfo.csv" TERMSTR=CRLF;

/** Import the CSV file. **/
PROC IMPORT DATAFILE=CSV
OUT=WORK.SexAgeInfo
DBMS=CSV
REPLACE;
RUN;
/** Print the results. **/
PROC PRINT DATA=WORK.SexAgeInfo; RUN;
/** Unassign the file reference. **/
FILENAME CSV;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Dec 2017 21:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419861#M280530</guid>
      <dc:creator>dseals23</dc:creator>
      <dc:date>2017-12-09T21:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419865#M280531</link>
      <description>&lt;P&gt;You could also try doing a row delete below your data lines in Excel. Sometimes rows aren't actually "empty" even though they look blank.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 22:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419865#M280531</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-12-09T22:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419892#M280532</link>
      <description>&lt;P&gt;&lt;EM&gt;Always&lt;/EM&gt; start your file paths with a slash, so the system starts to look from the root directory up. Without the leading slash the system starts to look up from the&amp;nbsp;&lt;EM&gt;current working directory&lt;/EM&gt; of the SAS process, and ends up in a nowhere. You can see this in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once your import from csv works, you will find data step code created by proc import in the log; copy that, and add your selection logic to it.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 07:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419892#M280532</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-10T07:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419974#M280533</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;Okay, when I import both of my excel files as csv files and press the run on both of the code files, it does output all the information with commas and all. But now when I create a permanent dataset for the SexAgeInfo, it doesn't output the exact format as my original data in the csv files. How can I fix this?&amp;nbsp; Should I use format keyword when creating a permanent data? Also, how will I solve the problem of getting the men and women into my dataset for each year so a user can know which gender is associated with the&amp;nbsp; age ranges in my SexAgeInfo dataset? Here is my generated output for each dataset named EthnicitySexInfo and SexAgeInfo:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More Info: You can take a look back at the original dataset before I split up it between the two datasets now (this is so you know how it originally looks -if you want to&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Is-SAS-dataset-Okay-to-work-with/m-p/413753#M101305" target="_self"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Is-SAS-dataset-Okay-to-work-with/m-p/413753#M101305&lt;/A&gt;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EthnicitySexInfo datset&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obs Characteristic VAR2 VAR3 VAR4 VAR5&lt;BR /&gt;1 Men 48,746 49,310 920 942&lt;BR /&gt;2 Women 36,698 37,163 743 766&lt;BR /&gt;3 Men 6,445 6,728 680 718&lt;BR /&gt;4 Women 7,142 7,235 615 641&lt;BR /&gt;5 Men 3,684 3,888 1,129 1,151&lt;BR /&gt;6 Women 2,954 3,142 877 902&lt;BR /&gt;7 Men 11,142 11,666 631 663&lt;BR /&gt;8 Women 7,168 7,284 566 586&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SexAgeInfo dataset:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Obs Characteristic VAR2 VAR3 VAR4 VAR5&lt;BR /&gt;1 16 to 24 years&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5,476 5,646 510 512&lt;BR /&gt;2 25 years and over 55,270 56,284 947 969&lt;BR /&gt;3 16 to 24 years&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4,314&amp;nbsp; &amp;nbsp;4,430&amp;nbsp; &amp;nbsp; 450 486&lt;BR /&gt;4 25 years and over 44,020 44,731 761 784&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 21:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419974#M280533</guid>
      <dc:creator>dseals23</dc:creator>
      <dc:date>2017-12-10T21:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419977#M280534</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;Never mind about the part of how to get male and female into the SexAgeInfo dataset. I just added another column into the csv file and that works, but I am still stuck on how to get all the number to be with a comma and most of all these numbers are still not showing up in the sas permanent dataset.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 22:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/419977#M280534</guid>
      <dc:creator>dseals23</dc:creator>
      <dc:date>2017-12-10T22:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/420029#M280535</link>
      <description>&lt;P&gt;This is just a very simple data step where you assign proper informats and display formats, and check for content:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sexageinfo;
infile "$HOME/sascommunity/SexAgeInfo.csv" dsd dlm=',' truncover;
length
  characteristic $20
  var2-var5 8
;
informat var2-var5 comma10.;
format var2-var5 comma10.;
input
  characteristic
  var2
  var3
  var4
  var5
;
if not missing(characteristic);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Dec 2017 08:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/420029#M280535</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-11T08:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/420222#M280536</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/172234"&gt;@dseals23&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;Never mind about the part of how to get male and female into the SexAgeInfo dataset. I just added another column into the csv file and that works, but I am still stuck on how to get all the number to be with a comma and most of all these numbers are still not showing up in the sas permanent dataset.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It may help to post the generated SAS data step that you are modifying. Indicate which variables should be numeric.&lt;/P&gt;
&lt;P&gt;INFORMAT statements tell SAS how to read a value. If the value is desired to be numeric and has commas in the value then use an&amp;nbsp; comma. informat. If you want to see the commas in a numeric value then you associate a format that uses commas to display numeric. That would be set with a Format statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SAS is reading a value that is supposed&amp;nbsp; to be read with a numeric format such as BEST4. or similar then values with comma's are treated as character. You would see messages in the log about invalid values for variable VAR in that case.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 18:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/420222#M280536</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-11T18:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get rid of unnecessary rows when I import an xlsx file to a temporary sas dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/719469#M280537</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You definitely saved my date, I am wondering why some of my countries importing from Excel and the first observation after sorting is blank. After applying your approach, it works well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 20:13:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-get-rid-of-unnecessary-rows-when-I-import-an-xlsx-file/m-p/719469#M280537</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-15T20:13:53Z</dc:date>
    </item>
  </channel>
</rss>

