<?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: CSV vs XLSX Import. How to reformat specific variables. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403347#M98011</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158881"&gt;@andrewfau&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile= 'c:\users\myname\documents\propertydata\csv\palmbeach\nal_2015_60palm beach_f' dbms=csv out=propcsv.palmbeach15;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the code I used.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then copy the data step code from the log and adapt it, as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;said.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2017 20:06:10 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-10-11T20:06:10Z</dc:date>
    <item>
      <title>CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403318#M98003</link>
      <description>&lt;P&gt;I imported these files first as CSVs and then had an issue with the formatting so I saved them all as XLSX and reimported but had different issues with formatting. I went back and reimported them all again as CSVs and have this issue with the formatting. I want to keep the CSV imports but need to fix the formatting issues in variables: QUAL_CD, SALE_PRC1, SALE_YR1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a screen shot of my SAS file from the CSV import:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/15795i03C88910BFD1B54C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="bigger (2).jpg" title="bigger (2).jpg" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a screen shot from the SAS file of my XLSX import:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/15797iB6D3429E3B201431/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="other (2).jpg" title="other (2).jpg" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CSV import has them all as Character and only keeps the first digit. The XLSX file has them as numeric and has the full value. All of them should be character except for sale_prc1. I am thinking all I need to do is some sort of format change, but am not quite sure how. I want to change the sale_prc1 to a numeric variable and accommodate for up to 10 digits. I want to keep those other variables at character but get all the digits to show.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 18:58:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403318#M98003</guid>
      <dc:creator>andrewfau</dc:creator>
      <dc:date>2017-10-11T18:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403320#M98004</link>
      <description>&lt;P&gt;When you imported the CSV, check the log. It has the code. Copy the code and edit as needed. Hold down ALT to select the code in the log without line numbers.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 19:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403320#M98004</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-11T19:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403338#M98009</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile= 'c:\users\myname\documents\propertydata\csv\palmbeach\nal_2015_60palm beach_f' dbms=csv out=propcsv.palmbeach15;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is the code I used.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 19:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403338#M98009</guid>
      <dc:creator>andrewfau</dc:creator>
      <dc:date>2017-10-11T19:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403347#M98011</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158881"&gt;@andrewfau&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile= 'c:\users\myname\documents\propertydata\csv\palmbeach\nal_2015_60palm beach_f' dbms=csv out=propcsv.palmbeach15;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the code I used.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then copy the data step code from the log and adapt it, as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;said.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 20:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403347#M98011</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-11T20:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403351#M98013</link>
      <description>&lt;P&gt;Sorry. Here is the code from the log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile=&lt;BR /&gt;'c:\users\avanvalin2017\documents\propertydata\csv\palmbeach\nal_2015_60palm beach_f.csv'&lt;BR /&gt;dbms=csv out=propcsv.palmbeach15;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/**********************************************************************&lt;BR /&gt;* PRODUCT: SAS&lt;BR /&gt;* VERSION: 9.4&lt;BR /&gt;* CREATOR: External File Interface&lt;BR /&gt;* DATE: 11OCT17&lt;BR /&gt;* DESC: Generated SAS Datastep Code&lt;BR /&gt;* TEMPLATE SOURCE: (None Specified.)&lt;BR /&gt;***********************************************************************/&lt;BR /&gt;data PROPCSV.PALMBEACH15 ;&lt;BR /&gt;%let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;BR /&gt;infile 'c:\users\avanvalin2017\documents\propertydata\csv\palmbeach\nal_2015_60palm&lt;BR /&gt;beach_f.csv' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2 ;&lt;BR /&gt;informat CO_NO best32. ;&lt;BR /&gt;informat PARCEL_ID $19. ;&lt;BR /&gt;informat FILE_T $3. ;&lt;BR /&gt;informat ASMNT_YR best32. ;&lt;BR /&gt;informat BAS_STRT $4. ;&lt;BR /&gt;informat ATV_STRT $3. ;&lt;BR /&gt;informat GRP_NO $3. ;&lt;BR /&gt;informat DOR_UC $5. ;&lt;BR /&gt;informat PA_UC $4. ;&lt;BR /&gt;informat SPASS_CD $1. ;&lt;BR /&gt;informat JV best32. ;&lt;BR /&gt;informat JV_CHNG $1. ;&lt;BR /&gt;informat JV_CHNG_CD $1. ;&lt;BR /&gt;informat AV_SD best32. ;&lt;BR /&gt;informat AV_NSD best32. ;&lt;BR /&gt;informat TV_SD best32. ;&lt;BR /&gt;informat TV_NSD best32. ;&lt;BR /&gt;informat JV_HMSTD $1. ;&lt;BR /&gt;informat AV_HMSTD $1. ;&lt;BR /&gt;informat JV_NON_HMSTD_RESD best32. ;&lt;BR /&gt;informat AV_NON_HMSTD_RESD best32. ;&lt;BR /&gt;informat JV_RESD_NON_RESD best32. ;&lt;BR /&gt;informat AV_RESD_NON_RESD best32. ;&lt;BR /&gt;informat JV_CLASS_USE best32. ;&lt;BR /&gt;informat AV_CLASS_USE best32. ;&lt;BR /&gt;informat JV_H2O_RECHRGE $1. ;&lt;BR /&gt;informat AV_H2O_RECHRGE $1. ;&lt;BR /&gt;informat JV_CONSRV_LND $1. ;&lt;BR /&gt;informat AV_CONSRV_LND $1. ;&lt;BR /&gt;informat JV_HIST_COM_PROP $1. ;&lt;BR /&gt;informat AV_HIST_COM_PROP $1. ;&lt;BR /&gt;informat JV_HIST_SIGNF $1. ;&lt;BR /&gt;informat AV_HIST_SIGNF $1. ;&lt;BR /&gt;informat JV_WRKNG_WTRFNT $1. ;&lt;BR /&gt;informat AV_WRKNG_WTRFNT $1. ;&lt;BR /&gt;informat NCONST_VAL best32. ;&lt;BR /&gt;informat DEL_VAL best32. ;&lt;BR /&gt;informat PAR_SPLT $1. ;&lt;BR /&gt;informat DISTR_CD $1. ;&lt;BR /&gt;informat DISTR_YR $1. ;&lt;BR /&gt;informat LND_VAL best32. ;&lt;BR /&gt;informat LND_UNTS_CD best32. ;&lt;BR /&gt;informat NO_LND_UNTS best32. ;&lt;BR /&gt;informat LND_SQFOOT best32. ;&lt;BR /&gt;informat DT_LAST_INSPT best32. ;&lt;BR /&gt;informat IMP_QUAL $3. ;&lt;BR /&gt;informat CONST_CLASS best32. ;&lt;BR /&gt;informat EFF_YR_BLT best32. ;&lt;BR /&gt;informat ACT_YR_BLT best32. ;&lt;BR /&gt;informat TOT_LVG_AREA best32. ;&lt;BR /&gt;informat NO_BULDNG best32. ;&lt;BR /&gt;informat NO_RES_UNTS best32. ;&lt;BR /&gt;informat SPEC_FEAT_VAL best32. ;&lt;BR /&gt;informat MULTI_PAR_SAL1 $1. ;&lt;BR /&gt;informat SALE_TYPE $1. ;&lt;BR /&gt;informat QUAL_CD1 $1. ;&lt;BR /&gt;informat VI_CD1 $1. ;&lt;BR /&gt;informat SALE_PRC1 $1. ;&lt;BR /&gt;informat SALE_YR1 $1. ;&lt;BR /&gt;informat SALE_MO1 $1. ;&lt;BR /&gt;informat OR_BOOK1 $1. ;&lt;BR /&gt;informat OR_PAGE1 $1. ;&lt;BR /&gt;informat CLERK_NO1 $1. ;&lt;BR /&gt;informat SAL_CHNG_CD1 $1. ;&lt;BR /&gt;informat MULTI_PAR_SAL2 $1. ;&lt;BR /&gt;informat SALE2_TYPE $1. ;&lt;BR /&gt;informat QUAL_CD2 $1. ;&lt;BR /&gt;informat VI_CD2 $1. ;&lt;BR /&gt;informat SALE_PRC2 $1. ;&lt;BR /&gt;informat SALE_YR2 $1. ;&lt;BR /&gt;informat SALE_MO2 $1. ;&lt;BR /&gt;informat OR_BOOK2 $1. ;&lt;BR /&gt;informat OR_PAGE2 $1. ;&lt;BR /&gt;informat CLERK_NO2 $1. ;&lt;BR /&gt;informat SAL_CHNG_CD2 $1. ;&lt;BR /&gt;informat OWN_NAME $32. ;&lt;BR /&gt;informat OWN_ADDR1 $23. ;&lt;BR /&gt;informat OWN_ADDR2 $1. ;&lt;BR /&gt;informat OWN_CITY $14. ;&lt;BR /&gt;informat OWN_STATE $4. ;&lt;BR /&gt;informat OWN_ZIPCD best32. ;&lt;BR /&gt;informat OWN_STATE_DOM $4. ;&lt;BR /&gt;informat FIDU_NAME $1. ;&lt;BR /&gt;informat FIDU_ADDR1 $1. ;&lt;BR /&gt;informat FIDU_ADDR2 $1. ;&lt;BR /&gt;informat FIDU_CITY $1. ;&lt;BR /&gt;informat FIDU_STATE $1. ;&lt;BR /&gt;informat FIDU_ZIPPCD $1. ;&lt;BR /&gt;informat FIDU_CD $1. ;&lt;BR /&gt;informat S_LEGAL $32. ;&lt;BR /&gt;informat APP_STAT $1. ;&lt;BR /&gt;informat CO_APP_STAT $1. ;&lt;BR /&gt;informat MKT_AR $4. ;&lt;BR /&gt;informat NBRHD_CD $10. ;&lt;BR /&gt;informat PUBLIC_LND $3. ;&lt;BR /&gt;informat TAX_AUTH_CD $6. ;&lt;BR /&gt;informat TWN $5. ;&lt;BR /&gt;informat RNG $5. ;&lt;BR /&gt;informat SEC best32. ;&lt;BR /&gt;informat CENSUS_BK $14. ;&lt;BR /&gt;informat PHY_ADDR1 $25. ;&lt;BR /&gt;informat PHY_ADDR2 $1. ;&lt;BR /&gt;informat PHY_CITY $22. ;&lt;BR /&gt;informat PHY_ZIPCD best32. ;&lt;BR /&gt;informat ASS_TRNSFR_FG $1. ;&lt;BR /&gt;informat PREV_HMSTD_OWN $1. ;&lt;BR /&gt;informat ASS_DIF_TRNS $1. ;&lt;BR /&gt;informat CONO_PRV_HM $1. ;&lt;BR /&gt;informat PARCEL_ID_PRV_HMSTD $1. ;&lt;BR /&gt;informat YR_VAL_TRNSF $1. ;&lt;BR /&gt;informat EXEMPTIONS $7. ;&lt;BR /&gt;informat EXEMPT_FLAG $1. ;&lt;BR /&gt;informat EXEMPT_OTHER $1. ;&lt;BR /&gt;informat HOMESTEAD $1. ;&lt;BR /&gt;informat WIDOW $1. ;&lt;BR /&gt;informat DISABLE $1. ;&lt;BR /&gt;informat RNWL_ENERGY $1. ;&lt;BR /&gt;informat SEQ_NO best32. ;&lt;BR /&gt;informat RS_ID $6. ;&lt;BR /&gt;informat MP_ID $10. ;&lt;BR /&gt;informat STATE_PARCEL_ID $20. ;&lt;BR /&gt;format CO_NO best12. ;&lt;BR /&gt;format PARCEL_ID $19. ;&lt;BR /&gt;format FILE_T $3. ;&lt;BR /&gt;format ASMNT_YR best12. ;&lt;BR /&gt;format BAS_STRT $4. ;&lt;BR /&gt;format ATV_STRT $3. ;&lt;BR /&gt;format GRP_NO $3. ;&lt;BR /&gt;format DOR_UC $5. ;&lt;BR /&gt;format PA_UC $4. ;&lt;BR /&gt;format SPASS_CD $1. ;&lt;BR /&gt;format JV best12. ;&lt;BR /&gt;format JV_CHNG $1. ;&lt;BR /&gt;format JV_CHNG_CD $1. ;&lt;BR /&gt;format AV_SD best12. ;&lt;BR /&gt;format AV_NSD best12. ;&lt;BR /&gt;format TV_SD best12. ;&lt;BR /&gt;format TV_NSD best12. ;&lt;BR /&gt;format JV_HMSTD $1. ;&lt;BR /&gt;format AV_HMSTD $1. ;&lt;BR /&gt;format JV_NON_HMSTD_RESD best12. ;&lt;BR /&gt;format AV_NON_HMSTD_RESD best12. ;&lt;BR /&gt;format JV_RESD_NON_RESD best12. ;&lt;BR /&gt;format AV_RESD_NON_RESD best12. ;&lt;BR /&gt;format JV_CLASS_USE best12. ;&lt;BR /&gt;format AV_CLASS_USE best12. ;&lt;BR /&gt;format JV_H2O_RECHRGE $1. ;&lt;BR /&gt;format AV_H2O_RECHRGE $1. ;&lt;BR /&gt;format JV_CONSRV_LND $1. ;&lt;BR /&gt;format AV_CONSRV_LND $1. ;&lt;BR /&gt;format JV_HIST_COM_PROP $1. ;&lt;BR /&gt;format AV_HIST_COM_PROP $1. ;&lt;BR /&gt;format JV_HIST_SIGNF $1. ;&lt;BR /&gt;format AV_HIST_SIGNF $1. ;&lt;BR /&gt;format JV_WRKNG_WTRFNT $1. ;&lt;BR /&gt;format AV_WRKNG_WTRFNT $1. ;&lt;BR /&gt;format NCONST_VAL best12. ;&lt;BR /&gt;format DEL_VAL best12. ;&lt;BR /&gt;format PAR_SPLT $1. ;&lt;BR /&gt;format DISTR_CD $1. ;&lt;BR /&gt;format DISTR_YR $1. ;&lt;BR /&gt;format LND_VAL best12. ;&lt;BR /&gt;format LND_UNTS_CD best12. ;&lt;BR /&gt;format NO_LND_UNTS best12. ;&lt;BR /&gt;format LND_SQFOOT best12. ;&lt;BR /&gt;format DT_LAST_INSPT best12. ;&lt;BR /&gt;format IMP_QUAL $3. ;&lt;BR /&gt;format CONST_CLASS best12. ;&lt;BR /&gt;format EFF_YR_BLT best12. ;&lt;BR /&gt;format ACT_YR_BLT best12. ;&lt;BR /&gt;format TOT_LVG_AREA best12. ;&lt;BR /&gt;format NO_BULDNG best12. ;&lt;BR /&gt;format NO_RES_UNTS best12. ;&lt;BR /&gt;format SPEC_FEAT_VAL best12. ;&lt;BR /&gt;format MULTI_PAR_SAL1 $1. ;&lt;BR /&gt;format SALE_TYPE $1. ;&lt;BR /&gt;format QUAL_CD1 $1. ;&lt;BR /&gt;format VI_CD1 $1. ;&lt;BR /&gt;format SALE_PRC1 $1. ;&lt;BR /&gt;format SALE_YR1 $1. ;&lt;BR /&gt;format SALE_MO1 $1. ;&lt;BR /&gt;format OR_BOOK1 $1. ;&lt;BR /&gt;format OR_PAGE1 $1. ;&lt;BR /&gt;format CLERK_NO1 $1. ;&lt;BR /&gt;format SAL_CHNG_CD1 $1. ;&lt;BR /&gt;format MULTI_PAR_SAL2 $1. ;&lt;BR /&gt;format SALE2_TYPE $1. ;&lt;BR /&gt;format QUAL_CD2 $1. ;&lt;BR /&gt;format VI_CD2 $1. ;&lt;BR /&gt;format SALE_PRC2 $1. ;&lt;BR /&gt;format SALE_YR2 $1. ;&lt;BR /&gt;format SALE_MO2 $1. ;&lt;BR /&gt;format OR_BOOK2 $1. ;&lt;BR /&gt;format OR_PAGE2 $1. ;&lt;BR /&gt;format CLERK_NO2 $1. ;&lt;BR /&gt;format SAL_CHNG_CD2 $1. ;&lt;BR /&gt;format OWN_NAME $32. ;&lt;BR /&gt;format OWN_ADDR1 $23. ;&lt;BR /&gt;format OWN_ADDR2 $1. ;&lt;BR /&gt;format OWN_CITY $14. ;&lt;BR /&gt;format OWN_STATE $4. ;&lt;BR /&gt;format OWN_ZIPCD best12. ;&lt;BR /&gt;format OWN_STATE_DOM $4. ;&lt;BR /&gt;format FIDU_NAME $1. ;&lt;BR /&gt;format FIDU_ADDR1 $1. ;&lt;BR /&gt;format FIDU_ADDR2 $1. ;&lt;BR /&gt;format FIDU_CITY $1. ;&lt;BR /&gt;format FIDU_STATE $1. ;&lt;BR /&gt;format FIDU_ZIPPCD $1. ;&lt;BR /&gt;format FIDU_CD $1. ;&lt;BR /&gt;format S_LEGAL $32. ;&lt;BR /&gt;format APP_STAT $1. ;&lt;BR /&gt;format CO_APP_STAT $1. ;&lt;BR /&gt;format MKT_AR $4. ;&lt;BR /&gt;format NBRHD_CD $10. ;&lt;BR /&gt;format PUBLIC_LND $3. ;&lt;BR /&gt;format TAX_AUTH_CD $6. ;&lt;BR /&gt;format TWN $5. ;&lt;BR /&gt;format RNG $5. ;&lt;BR /&gt;format SEC best12. ;&lt;BR /&gt;format CENSUS_BK $14. ;&lt;BR /&gt;format PHY_ADDR1 $25. ;&lt;BR /&gt;format PHY_ADDR2 $1. ;&lt;BR /&gt;format PHY_CITY $22. ;&lt;BR /&gt;format PHY_ZIPCD best12. ;&lt;BR /&gt;format ASS_TRNSFR_FG $1. ;&lt;BR /&gt;format PREV_HMSTD_OWN $1. ;&lt;BR /&gt;format ASS_DIF_TRNS $1. ;&lt;BR /&gt;format CONO_PRV_HM $1. ;&lt;BR /&gt;format PARCEL_ID_PRV_HMSTD $1. ;&lt;BR /&gt;format YR_VAL_TRNSF $1. ;&lt;BR /&gt;format EXEMPTIONS $7. ;&lt;BR /&gt;format EXEMPT_FLAG $1. ;&lt;BR /&gt;format EXEMPT_OTHER $1. ;&lt;BR /&gt;format HOMESTEAD $1. ;&lt;BR /&gt;format WIDOW $1. ;&lt;BR /&gt;format DISABLE $1. ;&lt;BR /&gt;format RNWL_ENERGY $1. ;&lt;BR /&gt;format SEQ_NO best12. ;&lt;BR /&gt;format RS_ID $6. ;&lt;BR /&gt;format MP_ID $10. ;&lt;BR /&gt;format STATE_PARCEL_ID $20. ;&lt;BR /&gt;input&lt;BR /&gt;CO_NO&lt;BR /&gt;PARCEL_ID $&lt;BR /&gt;FILE_T $&lt;BR /&gt;ASMNT_YR&lt;BR /&gt;BAS_STRT $&lt;BR /&gt;ATV_STRT $&lt;BR /&gt;GRP_NO $&lt;BR /&gt;DOR_UC $&lt;BR /&gt;PA_UC $&lt;BR /&gt;SPASS_CD $&lt;BR /&gt;JV&lt;BR /&gt;JV_CHNG $&lt;BR /&gt;JV_CHNG_CD $&lt;BR /&gt;AV_SD&lt;BR /&gt;AV_NSD&lt;BR /&gt;TV_SD&lt;BR /&gt;TV_NSD&lt;BR /&gt;JV_HMSTD $&lt;BR /&gt;AV_HMSTD $&lt;BR /&gt;JV_NON_HMSTD_RESD&lt;BR /&gt;AV_NON_HMSTD_RESD&lt;BR /&gt;JV_RESD_NON_RESD&lt;BR /&gt;AV_RESD_NON_RESD&lt;BR /&gt;JV_CLASS_USE&lt;BR /&gt;AV_CLASS_USE&lt;BR /&gt;JV_H2O_RECHRGE $&lt;BR /&gt;AV_H2O_RECHRGE $&lt;BR /&gt;JV_CONSRV_LND $&lt;BR /&gt;AV_CONSRV_LND $&lt;BR /&gt;JV_HIST_COM_PROP $&lt;BR /&gt;AV_HIST_COM_PROP $&lt;BR /&gt;JV_HIST_SIGNF $&lt;BR /&gt;AV_HIST_SIGNF $&lt;BR /&gt;JV_WRKNG_WTRFNT $&lt;BR /&gt;AV_WRKNG_WTRFNT $&lt;BR /&gt;NCONST_VAL&lt;BR /&gt;DEL_VAL&lt;BR /&gt;PAR_SPLT $&lt;BR /&gt;DISTR_CD $&lt;BR /&gt;DISTR_YR $&lt;BR /&gt;LND_VAL&lt;BR /&gt;LND_UNTS_CD&lt;BR /&gt;NO_LND_UNTS&lt;BR /&gt;LND_SQFOOT&lt;BR /&gt;DT_LAST_INSPT&lt;BR /&gt;IMP_QUAL $&lt;BR /&gt;CONST_CLASS&lt;BR /&gt;EFF_YR_BLT&lt;BR /&gt;ACT_YR_BLT&lt;BR /&gt;TOT_LVG_AREA&lt;BR /&gt;NO_BULDNG&lt;BR /&gt;NO_RES_UNTS&lt;BR /&gt;SPEC_FEAT_VAL&lt;BR /&gt;MULTI_PAR_SAL1 $&lt;BR /&gt;SALE_TYPE $&lt;BR /&gt;QUAL_CD1 $&lt;BR /&gt;VI_CD1 $&lt;BR /&gt;SALE_PRC1 $&lt;BR /&gt;SALE_YR1 $&lt;BR /&gt;SALE_MO1 $&lt;BR /&gt;OR_BOOK1 $&lt;BR /&gt;OR_PAGE1 $&lt;BR /&gt;CLERK_NO1 $&lt;BR /&gt;SAL_CHNG_CD1 $&lt;BR /&gt;MULTI_PAR_SAL2 $&lt;BR /&gt;SALE2_TYPE $&lt;BR /&gt;QUAL_CD2 $&lt;BR /&gt;VI_CD2 $&lt;BR /&gt;SALE_PRC2 $&lt;BR /&gt;SALE_YR2 $&lt;BR /&gt;SALE_MO2 $&lt;BR /&gt;OR_BOOK2 $&lt;BR /&gt;OR_PAGE2 $&lt;BR /&gt;CLERK_NO2 $&lt;BR /&gt;SAL_CHNG_CD2 $&lt;BR /&gt;OWN_NAME $&lt;BR /&gt;OWN_ADDR1 $&lt;BR /&gt;OWN_ADDR2 $&lt;BR /&gt;OWN_CITY $&lt;BR /&gt;OWN_STATE $&lt;BR /&gt;OWN_ZIPCD&lt;BR /&gt;OWN_STATE_DOM $&lt;BR /&gt;FIDU_NAME $&lt;BR /&gt;FIDU_ADDR1 $&lt;BR /&gt;FIDU_ADDR2 $&lt;BR /&gt;FIDU_CITY $&lt;BR /&gt;FIDU_STATE $&lt;BR /&gt;FIDU_ZIPPCD $&lt;BR /&gt;FIDU_CD $&lt;BR /&gt;S_LEGAL $&lt;BR /&gt;APP_STAT $&lt;BR /&gt;CO_APP_STAT $&lt;BR /&gt;MKT_AR $&lt;BR /&gt;NBRHD_CD $&lt;BR /&gt;PUBLIC_LND $&lt;BR /&gt;TAX_AUTH_CD $&lt;BR /&gt;TWN $&lt;BR /&gt;RNG $&lt;BR /&gt;SEC&lt;BR /&gt;CENSUS_BK $&lt;BR /&gt;PHY_ADDR1 $&lt;BR /&gt;PHY_ADDR2 $&lt;BR /&gt;PHY_CITY $&lt;BR /&gt;PHY_ZIPCD&lt;BR /&gt;ASS_TRNSFR_FG $&lt;BR /&gt;PREV_HMSTD_OWN $&lt;BR /&gt;ASS_DIF_TRNS $&lt;BR /&gt;CONO_PRV_HM $&lt;BR /&gt;PARCEL_ID_PRV_HMSTD $&lt;BR /&gt;YR_VAL_TRNSF $&lt;BR /&gt;EXEMPTIONS $&lt;BR /&gt;EXEMPT_FLAG $&lt;BR /&gt;EXEMPT_OTHER $&lt;BR /&gt;HOMESTEAD $&lt;BR /&gt;WIDOW $&lt;BR /&gt;DISABLE $&lt;BR /&gt;RNWL_ENERGY $&lt;BR /&gt;SEQ_NO&lt;BR /&gt;RS_ID $&lt;BR /&gt;MP_ID $&lt;BR /&gt;STATE_PARCEL_ID $&lt;BR /&gt;;&lt;BR /&gt;if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 20:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403351#M98013</guid>
      <dc:creator>andrewfau</dc:creator>
      <dc:date>2017-10-11T20:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403371#M98016</link>
      <description>&lt;P&gt;And what&amp;nbsp;specifically is "wrong" when you use that code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Does a variable need to be longer?&amp;nbsp;Change the number in the informat. Changing $16. to $25. will read upto 25 characters instead of 16.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Does the variable to be numeric but is coming in as character? Change the informat for the variable to a numeric such as Best16. or Best32.&lt;/P&gt;
&lt;P&gt;Is a variable coming in as numeric but should be character? Change the informat to a $.&lt;/P&gt;
&lt;P&gt;Either remove the format or change to match the informat to insure you can see the results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably needed to set guessing rows in this:&lt;/P&gt;
&lt;PRE&gt;proc import datafile= 'c:\users\myname\documents\propertydata\csv\palmbeach\nal_2015_60palm beach_f' &lt;BR /&gt;	dbms=csv out=propcsv.palmbeach15;
run;&lt;/PRE&gt;
&lt;P&gt;so that more than a few rows are examined. By default SAS determines variable characteristics using the first 20 rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add: Guessingrows=32000; to tell SAS to use information from 32000 rows to guess the lengths and variable types. Very large values for guessingrows may add some time to read the data during the scan but generally isn't too noticeable.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 21:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403371#M98016</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-11T21:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403376#M98018</link>
      <description>&lt;P&gt;I posted screen shots showing what is happening in the initial post. They are read in as character values which is fine for all but one. The sale price variable (sale_prc1) needs to be numerics and then all of the variables are only reading the first character. So 2014 is reading 2; 11 is reading 1; 53400 is reading 5, and so on. I need the years and month and price to read the full value and the price to be changed to numeric.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 21:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403376#M98018</guid>
      <dc:creator>andrewfau</dc:creator>
      <dc:date>2017-10-11T21:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403379#M98020</link>
      <description>It looks like guessingrows=32000 may be the solution. I will have to look a bit more closely and try it on others to see.</description>
      <pubDate>Wed, 11 Oct 2017 22:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403379#M98020</guid>
      <dc:creator>andrewfau</dc:creator>
      <dc:date>2017-10-11T22:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403385#M98025</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158881"&gt;@andrewfau&lt;/a&gt;&amp;nbsp;YOU need to fix your code. So find the name of the variable that is 'incorrect', change the FORMAT/INFORMAT as needed to what you need it to be.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 22:27:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403385#M98025</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-11T22:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403388#M98028</link>
      <description>&lt;P&gt;When asking about how to read a file then examples of the input file with difficult cases is important. For a CSV file that is simple: copy a few lines of the text and paste it into a code box opened using the forum {I} menu icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pictures are awkward and since you displayed something in the 21,000 row area it is hard to tell that the issue is likely to be many rows of blank values (which SAS will generally assign a 1 character format to) at the top of the file before encountering the rows with&amp;nbsp;actual values for some or many of the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data is all as sparse as shown you may want even larger values for the Guessingrows parameter.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 22:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403388#M98028</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-11T22:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403395#M98030</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158881"&gt;@andrewfau&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;EM&gt;The sale price variable (sale_prc1) needs to be numerics&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then either use GUESSINGROWS=MAX as already suggested so SAS analyzes many more source rows before defining the variables and importing the data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or... copy/paste the generated data step to a code window and amend the code as required and like already suggested by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I.e. for sal_prc1...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;what you have in the code:&lt;FONT face="courier new,courier"&gt;&amp;nbsp;informat SALE_PRC1 &lt;FONT color="#FF0000"&gt;$1.&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;change to:&amp;nbsp;&lt;FONT face="courier new,courier"&gt;informat SALE_PRC1 &lt;FONT color="#FF0000"&gt;best32.&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 23:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403395#M98030</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-10-11T23:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403645#M98087</link>
      <description>&lt;P&gt;I changed the informat of my sale_prc and the log is telling me "the format $BEST was not found or could not be loaded."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seemed to work when I changed the guessing rows, but I want to do the best option that is going to work best when doing descriptive statistics later on. Does it need to be numeric for that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry. I am very new to SAS and am learning it all in a trial by fire situation. Thanks everyone for your patience and help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403645#M98087</guid>
      <dc:creator>andrewfau</dc:creator>
      <dc:date>2017-10-12T18:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403646#M98088</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;So guessingrows is not something that I want to do? I changed the informat but it is saying "The format $BEST was not found or could not be loaded.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403646#M98088</guid>
      <dc:creator>andrewfau</dc:creator>
      <dc:date>2017-10-12T18:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403651#M98091</link>
      <description>&lt;P&gt;GuessingRows change is a great idea. Then if it still has issues, ie reading in something as character that you want as numeric, you need to change it in three locations, the FORMAT, INFORMAT and INPUT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format and Informats are pretty self explanatory. What you also want to do is delete the dollar ($) signs from the INPUT line. Then the type is derived based on the format/informat.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403651#M98091</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-12T18:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: CSV vs XLSX Import. How to reformat specific variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403652#M98092</link>
      <description>Thanks</description>
      <pubDate>Thu, 12 Oct 2017 19:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CSV-vs-XLSX-Import-How-to-reformat-specific-variables/m-p/403652#M98092</guid>
      <dc:creator>andrewfau</dc:creator>
      <dc:date>2017-10-12T19:01:15Z</dc:date>
    </item>
  </channel>
</rss>

