<?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: Proc import reading numeric values as char in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818866#M323249</link>
    <description>&lt;P&gt;sorry missing ; was just a typo while pasting the code here. Actual code has ; after input statement and yes I printed 10 lines and they have comma separated values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2022 16:39:25 GMT</pubDate>
    <dc:creator>kajal_30</dc:creator>
    <dc:date>2022-06-17T16:39:25Z</dc:date>
    <item>
      <title>Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818697#M323157</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset and few columns have numeric values but when I reading that excel using the proc import SAS is reading them as character. Is there a way if I can retain the type while proc importing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;for eg : sd_id has values as 3,4,5,6,7,8 similarly I have other few columns causing the same issue but sas is reading it as char. so currently we can see the specific columns showing this behavior but when it goes to production environment we are not even sure if other numeric columns are start getting read as char. Is there a way we can handle this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kajal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 20:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818697#M323157</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2022-06-16T20:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818701#M323160</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset and few columns have numeric values but when I reading that&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt; excel&lt;/STRONG&gt; &lt;/FONT&gt;using the proc import SAS is reading them as character. Is there a way if I can retain the type while proc importing?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for eg : sd_id has values as 3,4,5,6,7,8 similarly I have other few columns causing the same issue but sas is reading it as char. so currently we can see the specific columns showing this behavior but when it goes to production environment we are not even sure if other numeric columns are start getting read as char. Is there a way we can handle this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Kajal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since EXCEL does not actually have the concept of a variable there is no TYPE involved at all.&lt;/P&gt;
&lt;P&gt;Proc Import expects simple data layouts such as at maximum one row of column headings that might be treated as variable names. I see way too many Excel workbooks with multiple rows of header information. So the second (and or 3rd/4th/etc rows) are not actually numeric and the column gets treated as character because there are character values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a production environment you really don't want to use import. Not just because of this issue but variable lengths can change because SAS makes the decision for such separately for each file read. If you data source is sloppy you may also have issues with variable names changing as well as type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most reliable way to get specific properties for "columns" is to 1) save the file to a text format such as CSV and 2) use a data step to read that resulting file with a data step. One of the options in the INFILE used for reading with a data step allows you to specify which is the first line of actual data.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 20:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818701#M323160</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-16T20:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818702#M323161</link>
      <description>&lt;P&gt;"Production" and "Excel" are mutually exclusive. Excel files are simply useless as a medium for data transfer.&lt;/P&gt;
&lt;P&gt;Save your data as text files (e.g. csv), which you can read with a custom written data step, so you have full control and get consistent results.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 20:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818702#M323161</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-16T20:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818704#M323163</link>
      <description>&lt;P&gt;There are two situations that can happen.&lt;/P&gt;
&lt;P&gt;1) There is some non numeric cell in that column.&lt;/P&gt;
&lt;P&gt;2) All of the cells are empty.&amp;nbsp; In that case PROC IMPORT will create the variable as character of length 1 since that will take 7 bytes less storage in the SAS dataset than a numeric variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In either case you have choices.&lt;/P&gt;
&lt;P&gt;1) Fix the Excel file so the column only contains numeric values and at least one of them is not empty.&lt;/P&gt;
&lt;P&gt;2) Save the data from the Excel into a different format.&amp;nbsp; Either one that enforces variable types, like a DBF file.&amp;nbsp; Or a text file that you can read with a data step.&lt;/P&gt;
&lt;P&gt;3) Post process the SAS dataset to try to convert the character values to a numeric variable.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 20:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818704#M323163</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-16T20:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818706#M323165</link>
      <description>&lt;P&gt;We will have no control over the excel file as it will be directly be provided by business to the process. so no manual intervention will be allowed.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 21:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818706#M323165</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2022-06-16T21:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818707#M323166</link>
      <description>I'd just add on if this is a 'production' level job I would add a check to ensure that all column types in the data set were correct, not just that one field. Can save you hours of debugging if the job fails at loading the data because types have been modified for some reason. PROC IMPORT doesn't guarantee that types are the same between files especially for Excel files. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jun 2022 21:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818707#M323166</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-16T21:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818710#M323168</link>
      <description>Hi Reeza,&lt;BR /&gt;&lt;BR /&gt;So it can be different each time we are reading the excel file? is it better for me to convert this file into csv format and then read that file using data step and assign lengths and formats as per the final target dataset to be appended to?&lt;BR /&gt;Thanks&lt;BR /&gt;Kajal</description>
      <pubDate>Thu, 16 Jun 2022 21:05:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818710#M323168</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2022-06-16T21:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818711#M323169</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;We will have no control over the excel file as it will be directly be provided by business to the process. so no manual intervention will be allowed.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can convert the useless Excel files to csv in batch, e.g. with LibreOffice. The Excel files stay as they are, and the csv files allow consistent reading into SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 21:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818711#M323169</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-16T21:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818712#M323170</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi Reeza,&lt;BR /&gt;&lt;BR /&gt;So it can be different each time we are reading the excel file? is it better for me to convert this file into csv format and then read that file using data step and assign lengths and formats as per the final target dataset to be appended to?&lt;BR /&gt;Thanks&lt;BR /&gt;Kajal&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;A-B-S-O-L-U-T-E-L-Y&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;It is not just the better, it is the &lt;U&gt;only&lt;/U&gt; way to go for a production process, IMHO.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 21:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818712#M323170</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-16T21:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818713#M323171</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; actually we only base sas available. do we have a base sas code for playing the same role as libre office?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 21:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818713#M323171</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2022-06-16T21:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818715#M323172</link>
      <description>&lt;P&gt;You can make the check/fix step as complex as you need.&lt;/P&gt;
&lt;P&gt;Here is a simple way, but it might still have trouble with somethings, like DATE fields.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Import the Excel sheet into a dataset.&lt;/P&gt;
&lt;P&gt;Write the data from that dataset into a text file.&lt;/P&gt;
&lt;P&gt;Read the text file into a dataset with the expected format.&amp;nbsp; If you have an existing file that has the variables defined the way you want and in the same order as the columns in the XLSX file it is very simple.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='myfile.xlsx' dbms=xlsx out=step1 replace;
run;
filename csv temp;
data _null_;
  set step1;
  file csv dsd ;
  put (_all_) (+0);
run;
data want;
  if 0 then set template ;
  infile csv dsd truncover;
  input (_all_) (+0);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jun 2022 21:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818715#M323172</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-16T21:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818719#M323175</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; actually we only base sas available. do we have a base sas code for playing the same role as libre office?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not really. XLSX files are ZIP archives of XML files, so they would be quite complex to read. You may find utilities for batch MS Office conversion on the internet.&lt;/P&gt;
&lt;P&gt;So if you don't want to (or can't) install the necessary software, request data in a reasonable format in the first place. I am quite appalled that a "professional" shop uses Excel files as a transport medium.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 21:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818719#M323175</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-16T21:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818722#M323176</link>
      <description>Hi Tom, where do we have this dataset template coming from ?</description>
      <pubDate>Thu, 16 Jun 2022 21:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818722#M323176</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2022-06-16T21:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818725#M323178</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AS I am reimporting the csv to a dataset I can see 0 variables . Is there a way we can retain column names while importing from a csv file ? refraining from using input statement as in future business might change the sequence of the columns in the sheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kajal&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 21:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818725#M323178</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2022-06-16T21:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818726#M323179</link>
      <description>&lt;P&gt;If we're talking about &lt;U&gt;production&lt;/U&gt;, a change in file structure must be documented before it is implemented, so your codes can be adapted. So the INPUT statement is a non-issue.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 22:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818726#M323179</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-16T22:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818728#M323181</link>
      <description>&lt;P&gt;Here's a VBS routine, SAS generated/called that converts an XLSX file to CSV.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/878e585102c14e01581f55dbe972d27e" target="_blank"&gt;https://gist.github.com/statgeek/878e585102c14e01581f55dbe972d27e&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 22:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818728#M323181</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-16T22:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818729#M323182</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AS I am reimporting the csv to a dataset I can see 0 variables . Is there a way we can retain column names while importing from a csv file ? refraining from using input statement as in future business might change the sequence of the columns in the sheet&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Kajal&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you ran the code I posted that means the TEMPLATE dataset you created did not have any variables.&amp;nbsp; Instead of a TEMPLATE dataset you can just add the code for defining the variables and reading them into the data step.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  length var1 8 var2 $20 .... varlast 8 ;
  informat var1 date.;
  format var1 date9.;
  infile csv dsd truncover;
  input var1 -- varlast ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If your XSLX files CHANGE then you need a more sophisticated process.&lt;/P&gt;
&lt;P&gt;1) Import the XLSX file.&lt;/P&gt;
&lt;P&gt;2) Get the list of variables from the resulting dataset.&lt;/P&gt;
&lt;P&gt;3) Compare the list of variables to to acceptable list of variables.&lt;/P&gt;
&lt;P&gt;4) If the file is valid the fix it. Otherwise issue an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fixing it might mean using the CSV file intermediate like I posted before.&lt;/P&gt;
&lt;P&gt;Or it might just mean reading the imported dataset and apply changes such as changing the length of character variables converting numeric variables to character or the reverse.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 22:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818729#M323182</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-16T22:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818730#M323183</link>
      <description>&lt;P&gt;ok I can take it as a fair statement. So while we are doing the import from csv file the imported data without columns will follow the same sequence as we have in the file or it can be different.&lt;/P&gt;&lt;P&gt;for eg in csv file we have&amp;nbsp;&lt;/P&gt;&lt;P&gt;cust_no region&amp;nbsp;&lt;/P&gt;&lt;P&gt;100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; USA&lt;/P&gt;&lt;P&gt;so for imported dataset can I put&amp;nbsp;&lt;/P&gt;&lt;P&gt;input cust_no region should be ok ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Jagdeep&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 22:27:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818730#M323183</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2022-06-16T22:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818731#M323184</link>
      <description>&lt;P&gt;one more concern while creating the csv file from dataset I can see there are 2 empty lines after every record. but actual excel file doesn't have any empty lines.&lt;/P&gt;&lt;P&gt;- importing xlsx as dataset&lt;/P&gt;&lt;P&gt;- exporting dataset into a csv file&lt;/P&gt;&lt;P&gt;May I know why am I seeing these empty lines.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Kajal&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 22:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818731#M323184</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2022-06-16T22:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import reading numeric values as char</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818733#M323185</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;one more concern while creating the csv file from dataset I can see there are 2 empty lines after every record. but actual excel file doesn't have any empty lines.&lt;/P&gt;
&lt;P&gt;- importing xlsx as dataset&lt;/P&gt;
&lt;P&gt;- exporting dataset into a csv file&lt;/P&gt;
&lt;P&gt;May I know why am I seeing these empty lines.&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Kajal&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;One of the truly obnoxious elements, in terms of data exchange, is the stuff people can put in cells.&lt;/P&gt;
&lt;P&gt;One of them is entered using the Alt-Enter key combination. If done between visible text in cell it will force the cell to display the text with a vertical adjustment so the text after the first bit is displayed below it (may not be very obvious with long text in a narrow cell).&lt;/P&gt;
&lt;P&gt;However, those can be entered as characters and you will not "see" anything in the spreadsheet. The exported text will usually treat those cell contents as "new lines".&lt;/P&gt;
&lt;P&gt;There are other issues such as which operating system you are running and where/how you read the file. Conversion of files from UNIX to Windows (or vice versa) have well-known issues caused because the operating systems use different characters to tell applications that you have reached the end of a line. Windows uses two characters: Carriage Return and Line Feed (ancient names deriving from teletype), UNIX and derivatives the Line Feed (one character) . So conversion and movement can add extra characters that get treated as end-of-line.&lt;/P&gt;
&lt;P&gt;Sometimes use of options on the INFILE statement of a data step TERMSTR can be used to force behavior that is not native to your operating system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have to show 1) the code used to read that csv and 2) a couple lines of text.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 23:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-reading-numeric-values-as-char/m-p/818733#M323185</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-16T23:34:01Z</dc:date>
    </item>
  </channel>
</rss>

