<?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: data input problem in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60573#M17185</link>
    <description>@sbb:  The problem is that the field gets read in with 8 significant digits, so the last 6 digits are not there at all when I do the conversion.</description>
    <pubDate>Thu, 05 Aug 2010 13:26:52 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-05T13:26:52Z</dc:date>
    <item>
      <title>data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60560#M17172</link>
      <description>I'm having a lot of difficulty reading a .csv file into SAS. The file is large (~900,000 observations) and has an ID column that is a 14 digit number. When I read it into SAS, it comes in as a number in scientific notation with length 8 (i.e., I lose the last part of the ID number). I tried using Excel to change the format of the column, but my version of SAS won't read a .xlsx file and .xls files are limited to 65K observations. I really don't know what to try next. Any suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 04 Aug 2010 14:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60560#M17172</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-04T14:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60561#M17173</link>
      <description>Even though ID is a number it is a good idea to read it in as a chacter, unless Im missing something else about your process.&lt;BR /&gt;
&lt;BR /&gt;
Good luck!</description>
      <pubDate>Wed, 04 Aug 2010 15:18:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60561#M17173</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-08-04T15:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60562#M17174</link>
      <description>I agree. My problem is that SAS automatically reads it in as a number. Not sure how to get around that.</description>
      <pubDate>Wed, 04 Aug 2010 15:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60562#M17174</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-04T15:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60563#M17175</link>
      <description>What is the code that you are using to read in the csv?  It is hard to give any other suggestions without it.</description>
      <pubDate>Wed, 04 Aug 2010 15:24:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60563#M17175</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-08-04T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60564#M17176</link>
      <description>I'm just using the Import Data function under the File menu. It uses the following code:&lt;BR /&gt;
&lt;BR /&gt;
PROC IMPORT OUT= WORK.temp &lt;BR /&gt;
            DATAFILE= "E:\f55.csv" &lt;BR /&gt;
            DBMS=CSV REPLACE;&lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     DATAROW=2; &lt;BR /&gt;
RUN;</description>
      <pubDate>Wed, 04 Aug 2010 15:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60564#M17176</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-04T15:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60565#M17177</link>
      <description>When you run proc import it should generate a data step in the log.  You could copy and paste this into your program and change the informat there.  Check the documentation for more info.</description>
      <pubDate>Wed, 04 Aug 2010 15:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60565#M17177</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-08-04T15:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60566#M17178</link>
      <description>I did that (trying several different informat lines), but each time I get an error saying I'm trying to read in a numeric field as a character field and then SAS overrules the command and reads it as an 8 digit number in scientific notation.</description>
      <pubDate>Wed, 04 Aug 2010 16:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60566#M17178</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-04T16:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60567#M17179</link>
      <description>Are you also adding $ to the input statement as well?  Also both the informat and format statements?</description>
      <pubDate>Wed, 04 Aug 2010 16:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60567#M17179</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-08-04T16:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60568#M17180</link>
      <description>Yes. Here are the relevant lines of the code as I modified them:&lt;BR /&gt;
&lt;BR /&gt;
         informat ID $14. ;&lt;BR /&gt;
         format ID $14. ;&lt;BR /&gt;
      input&lt;BR /&gt;
         ID $;&lt;BR /&gt;
&lt;BR /&gt;
Even with that, it reads in (for example)&lt;BR /&gt;
84037175123753&lt;BR /&gt;
as&lt;BR /&gt;
8.4037175E13</description>
      <pubDate>Wed, 04 Aug 2010 18:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60568#M17180</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-04T18:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60569#M17181</link>
      <description>What you are suggesting with the "relevant lines of the code as I modified them" doesn't make sense from the SAS processing perspective -- the key statements you have is with the INPUT and INFORMAT statement and how you have defined your variable -- which will be a CHARACTER type variable, not numeric.&lt;BR /&gt;
&lt;BR /&gt;
There's something you're not sharing here....Suggest you post a reply with the exact SAS-generated log for a more useful reply and guidance.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 04 Aug 2010 19:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60569#M17181</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-04T19:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60570#M17182</link>
      <description>I apologize for not being clear. I was trying to simplify things, which apparently had the opposite effect.&lt;BR /&gt;
&lt;BR /&gt;
I used the Import Data procedure from the File menu. That generated the log pasted at the end of this message. The problem variable is FILING_ID, which SAS reads in as a numeric field rather than a character field. I then created a program using the code embedded in the log. In doing so, I modified the three lines  dealing with FILING_ID (lines 853, 937, and 1022 below) to read as follows.&lt;BR /&gt;
&lt;BR /&gt;
informat FILING_ID $14. ;&lt;BR /&gt;
&lt;BR /&gt;
format FILING_ID $14. ;&lt;BR /&gt;
&lt;BR /&gt;
                  FILING_ID $&lt;BR /&gt;
&lt;BR /&gt;
I then ran that program to read in the data. The imported dataset looks fine except that FILING_ID was again read in as a numeric field.&lt;BR /&gt;
&lt;BR /&gt;
Here's the log:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
842   /**********************************************************************&lt;BR /&gt;
843   *   PRODUCT:   SAS&lt;BR /&gt;
844   *   VERSION:   9.1&lt;BR /&gt;
845   *   CREATOR:   External File Interface&lt;BR /&gt;
846   *   DATE:      04AUG10&lt;BR /&gt;
847   *   DESC:      Generated SAS Datastep Code&lt;BR /&gt;
848   *   TEMPLATE SOURCE:  (None Specified.)&lt;BR /&gt;
849   ***********************************************************************/&lt;BR /&gt;
850      data WORK.TEMP                                   ;&lt;BR /&gt;
851      %let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;BR /&gt;
852      infile 'E:\Pension\Full Data\f_5500_2003.csv' delimiter = ',' MISSOVER DSD lrecl=32767&lt;BR /&gt;
852! firstobs=2 ;&lt;BR /&gt;
853         informat FILING_ID best32. ;&lt;BR /&gt;
854         informat SPONS_DFE_EIN $11. ;&lt;BR /&gt;
855         informat SPONS_DFE_PN $5. ;&lt;BR /&gt;
856         informat FORM_PLAN_YEAR_BEGIN_DATE $10. ;&lt;BR /&gt;
857         informat FORM_TAX_PRD best32. ;&lt;BR /&gt;
858         informat TYPE_PLAN_ENTITY_IND $3. ;&lt;BR /&gt;
859         informat TYPE_DFE_PLAN_ENTITY $1. ;&lt;BR /&gt;
860         informat TYPE_PLAN_FILING_IND $5. ;&lt;BR /&gt;
861         informat COLLECTIVE_BARGAIN_IND $1. ;&lt;BR /&gt;
862         informat EXT_APPLICATION_FILED_IND $1. ;&lt;BR /&gt;
863         informat PLAN_NAME $80. ;&lt;BR /&gt;
864         informat PLAN_EFF_DATE $10. ;&lt;BR /&gt;
865         informat SPONSOR_DFE_NAME $48. ;&lt;BR /&gt;
866         informat SPONS_DFE_DBA_NAME $1. ;&lt;BR /&gt;
867         informat SPONS_DFE_CARE_OF_NAME $1. ;&lt;BR /&gt;
868         informat SPONS_DFE_MAIL_STR_ADDRESS $30. ;&lt;BR /&gt;
869         informat SPONS_DFE_LOC_ADDR $24. ;&lt;BR /&gt;
870         informat SPONS_DFE_FOREIGN_ROUTE_CD $1. ;&lt;BR /&gt;
871         informat SP_DFE_FGN_MAIL_CNTRY $1. ;&lt;BR /&gt;
872         informat SPONS_DFE_CITY $20. ;&lt;BR /&gt;
873         informat SPONS_DFE_STATE $4. ;&lt;BR /&gt;
874         informat SPONS_DFE_ZIP_CODE $11. ;&lt;BR /&gt;
875         informat SPONS_DFE_PHONE_NUM $12. ;&lt;BR /&gt;
876         informat BUSINESS_CODE $8. ;&lt;BR /&gt;
877         informat ADMIN_NAME $49. ;&lt;BR /&gt;
878         informat ADMIN_CARE_OF_NAME $1. ;&lt;BR /&gt;
879         informat ADMIN_STR_ADDRESS $42. ;&lt;BR /&gt;
880         informat ADMIN_FOREIGN_ROUTE_CD $1. ;&lt;BR /&gt;
881         informat ADMIN_FOREIGN_MAILING_CNTRY $1. ;&lt;BR /&gt;
882         informat ADMIN_CITY $12. ;&lt;BR /&gt;
883         informat ADMIN_STATE $5. ;&lt;BR /&gt;
884         informat ADMIN_ZIP_CODE $14. ;&lt;BR /&gt;
885         informat ADMIN_EIN $14. ;&lt;BR /&gt;
886         informat ADMIN_PHONE_NUM $16. ;&lt;BR /&gt;
887         informat LAST_RPT_SPONS_NAME $40. ;&lt;BR /&gt;
888         informat LAST_RPT_SPONS_EIN $14. ;&lt;BR /&gt;
889         informat LAST_RPT_PLAN_NUM $7. ;&lt;BR /&gt;
890         informat PREPARER_NAME $74. ;&lt;BR /&gt;
891         informat PREPARER_STR_ADDRESS $33. ;&lt;BR /&gt;
892         informat PREPARER_FOREIGN_ROUTE_CD $1. ;&lt;BR /&gt;
893         informat PREPARER_FRGN_MAILING_CNTRY $1. ;&lt;BR /&gt;
894         informat PREPARER_CITY $22. ;&lt;BR /&gt;
895         informat PREPARER_STATE $5. ;&lt;BR /&gt;
896         informat PREPARER_ZIP_CODE $9. ;&lt;BR /&gt;
897         informat PREPARER_EIN $14. ;&lt;BR /&gt;
898         informat PREPARER_PHONE_NUM $16. ;&lt;BR /&gt;
899         informat ADMIN_SIGNATURE_IND $3. ;&lt;BR /&gt;
900         informat ADMIN_SIGNED_DATE $10. ;&lt;BR /&gt;
901         informat ADMIN_SIGNED_NAME $39. ;&lt;BR /&gt;
902         informat SPONS_SIGNATURE_IND $3. ;&lt;BR /&gt;
903         informat SPONS_SIGNED_DATE $13. ;&lt;BR /&gt;
904         informat SPONS_SIGNED_NAME $43. ;&lt;BR /&gt;
905         informat TOT_PARTCP_BOY_CNT best32. ;&lt;BR /&gt;
906         informat TOT_ACTIVE_PARTCP_CNT best32. ;&lt;BR /&gt;
907         informat RTD_SEP_PARTCP_RCVG_CNT best32. ;&lt;BR /&gt;
908         informat RTD_SEP_PARTCP_FUT_CNT best32. ;&lt;BR /&gt;
909         informat SUBTL_ACT_RTD_SEP_CNT best32. ;&lt;BR /&gt;
910         informat BENEF_RCVG_BNFT_CNT best32. ;&lt;BR /&gt;
911         informat TOT_ACT_RTD_SEP_BENEF_CNT best32. ;&lt;BR /&gt;
912         informat PARTCP_ACCOUNT_BAL_CNT best32. ;&lt;BR /&gt;
913         informat SEP_PARTCP_PARTL_VSTD_CNT best32. ;&lt;BR /&gt;
914         informat SSA_FILER_PARTCP_CNT best32. ;&lt;BR /&gt;
915         informat PENSION_BENEFIT_PLAN_IND $3. ;&lt;BR /&gt;
916         informat TYPE_PENSION_BNFT_CODE $17. ;&lt;BR /&gt;
917         informat WELFARE_BENEFIT_PLAN_IND $4. ;&lt;BR /&gt;
918         informat TYPE_WELFARE_BNFT_CODE $5. ;&lt;BR /&gt;
919         informat FUNDING_ARRANGEMENT_CODE $5. ;&lt;BR /&gt;
920         informat BENEFIT_CODE $3. ;&lt;BR /&gt;
921         informat SCH_R_ATTACHED_IND $3. ;&lt;BR /&gt;
922         informat SCH_T_ATTACHED_IND $3. ;&lt;BR /&gt;
923         informat NUM_SCH_T_ATTACHED_CNT best32. ;&lt;BR /&gt;
924         informat SCH_T_PNDG_INFO_PRIOR_YR_DATE $1. ;&lt;BR /&gt;
925         informat SCH_B_ATTACHED_IND $1. ;&lt;BR /&gt;
926         informat SCH_E_ATTACHED_IND $1. ;&lt;BR /&gt;
927         informat SCH_SSA_ATTACHED_IND $1. ;&lt;BR /&gt;
928         informat SCH_H_ATTACHED_IND $1. ;&lt;BR /&gt;
929         informat SCH_I_ATTACHED_IND $3. ;&lt;BR /&gt;
930         informat SCH_A_ATTACHED_IND $4. ;&lt;BR /&gt;
931         informat NUM_SCH_A_ATTACHED_CNT best32. ;&lt;BR /&gt;
932         informat SCH_C_ATTACHED_IND $1. ;&lt;BR /&gt;
933         informat SCH_D_ATTACHED_IND $4. ;&lt;BR /&gt;
934         informat SCH_G_ATTACHED_IND $1. ;&lt;BR /&gt;
935         informat SCH_P_ATTACHED_IND $3. ;&lt;BR /&gt;
936         informat NUM_SCH_P_ATTACHED_CNT best32. ;&lt;BR /&gt;
937         format FILING_ID best12. ;&lt;BR /&gt;
938         format SPONS_DFE_EIN $11. ;&lt;BR /&gt;
939         format SPONS_DFE_PN $5. ;&lt;BR /&gt;
940         format FORM_PLAN_YEAR_BEGIN_DATE $10. ;&lt;BR /&gt;
941         format FORM_TAX_PRD best12. ;&lt;BR /&gt;
942         format TYPE_PLAN_ENTITY_IND $3. ;&lt;BR /&gt;
943         format TYPE_DFE_PLAN_ENTITY $1. ;&lt;BR /&gt;
944         format TYPE_PLAN_FILING_IND $5. ;&lt;BR /&gt;
945         format COLLECTIVE_BARGAIN_IND $1. ;&lt;BR /&gt;
946         format EXT_APPLICATION_FILED_IND $1. ;&lt;BR /&gt;
947         format PLAN_NAME $80. ;&lt;BR /&gt;
948         format PLAN_EFF_DATE $10. ;&lt;BR /&gt;
949         format SPONSOR_DFE_NAME $48. ;&lt;BR /&gt;
950         format SPONS_DFE_DBA_NAME $1. ;&lt;BR /&gt;
951         format SPONS_DFE_CARE_OF_NAME $1. ;&lt;BR /&gt;
952         format SPONS_DFE_MAIL_STR_ADDRESS $30. ;&lt;BR /&gt;
953         format SPONS_DFE_LOC_ADDR $24. ;&lt;BR /&gt;
954         format SPONS_DFE_FOREIGN_ROUTE_CD $1. ;&lt;BR /&gt;
955         format SP_DFE_FGN_MAIL_CNTRY $1. ;&lt;BR /&gt;
956         format SPONS_DFE_CITY $20. ;&lt;BR /&gt;
957         format SPONS_DFE_STATE $4. ;&lt;BR /&gt;
958         format SPONS_DFE_ZIP_CODE $11. ;&lt;BR /&gt;
959         format SPONS_DFE_PHONE_NUM $12. ;&lt;BR /&gt;
960         format BUSINESS_CODE $8. ;&lt;BR /&gt;
961         format ADMIN_NAME $49. ;&lt;BR /&gt;
962         format ADMIN_CARE_OF_NAME $1. ;&lt;BR /&gt;
963         format ADMIN_STR_ADDRESS $42. ;&lt;BR /&gt;
964         format ADMIN_FOREIGN_ROUTE_CD $1. ;&lt;BR /&gt;
965         format ADMIN_FOREIGN_MAILING_CNTRY $1. ;&lt;BR /&gt;
966         format ADMIN_CITY $12. ;&lt;BR /&gt;
967         format ADMIN_STATE $5. ;&lt;BR /&gt;
968         format ADMIN_ZIP_CODE $14. ;&lt;BR /&gt;
969         format ADMIN_EIN $14. ;&lt;BR /&gt;
970         format ADMIN_PHONE_NUM $16. ;&lt;BR /&gt;
971         format LAST_RPT_SPONS_NAME $40. ;&lt;BR /&gt;
972         format LAST_RPT_SPONS_EIN $14. ;&lt;BR /&gt;
973         format LAST_RPT_PLAN_NUM $7. ;&lt;BR /&gt;
974         format PREPARER_NAME $74. ;&lt;BR /&gt;
975         format PREPARER_STR_ADDRESS $33. ;&lt;BR /&gt;
976         format PREPARER_FOREIGN_ROUTE_CD $1. ;&lt;BR /&gt;
977         format PREPARER_FRGN_MAILING_CNTRY $1. ;&lt;BR /&gt;
978         format PREPARER_CITY $22. ;&lt;BR /&gt;
979         format PREPARER_STATE $5. ;&lt;BR /&gt;
980         format PREPARER_ZIP_CODE $9. ;&lt;BR /&gt;
981         format PREPARER_EIN $14. ;&lt;BR /&gt;
982         format PREPARER_PHONE_NUM $16. ;&lt;BR /&gt;
983         format ADMIN_SIGNATURE_IND $3. ;&lt;BR /&gt;
984         format ADMIN_SIGNED_DATE $10. ;&lt;BR /&gt;
985         format ADMIN_SIGNED_NAME $39. ;&lt;BR /&gt;
986         format SPONS_SIGNATURE_IND $3. ;&lt;BR /&gt;
987         format SPONS_SIGNED_DATE $13. ;&lt;BR /&gt;
988         format SPONS_SIGNED_NAME $43. ;&lt;BR /&gt;
989         format TOT_PARTCP_BOY_CNT best12. ;&lt;BR /&gt;
990         format TOT_ACTIVE_PARTCP_CNT best12. ;&lt;BR /&gt;
991         format RTD_SEP_PARTCP_RCVG_CNT best12. ;&lt;BR /&gt;
992         format RTD_SEP_PARTCP_FUT_CNT best12. ;&lt;BR /&gt;
993         format SUBTL_ACT_RTD_SEP_CNT best12. ;&lt;BR /&gt;
994         format BENEF_RCVG_BNFT_CNT best12. ;&lt;BR /&gt;
995         format TOT_ACT_RTD_SEP_BENEF_CNT best12. ;&lt;BR /&gt;
996         format PARTCP_ACCOUNT_BAL_CNT best12. ;&lt;BR /&gt;
997         format SEP_PARTCP_PARTL_VSTD_CNT best12. ;&lt;BR /&gt;
998         format SSA_FILER_PARTCP_CNT best12. ;&lt;BR /&gt;
999         format PENSION_BENEFIT_PLAN_IND $3. ;&lt;BR /&gt;
1000         format TYPE_PENSION_BNFT_CODE $17. ;&lt;BR /&gt;
1001         format WELFARE_BENEFIT_PLAN_IND $4. ;&lt;BR /&gt;
1002         format TYPE_WELFARE_BNFT_CODE $5. ;&lt;BR /&gt;
1003         format FUNDING_ARRANGEMENT_CODE $5. ;&lt;BR /&gt;
1004         format BENEFIT_CODE $3. ;&lt;BR /&gt;
1005         format SCH_R_ATTACHED_IND $3. ;&lt;BR /&gt;
1006         format SCH_T_ATTACHED_IND $3. ;&lt;BR /&gt;
1007         format NUM_SCH_T_ATTACHED_CNT best12. ;&lt;BR /&gt;
1008         format SCH_T_PNDG_INFO_PRIOR_YR_DATE $1. ;&lt;BR /&gt;
1009         format SCH_B_ATTACHED_IND $1. ;&lt;BR /&gt;
1010         format SCH_E_ATTACHED_IND $1. ;&lt;BR /&gt;
1011         format SCH_SSA_ATTACHED_IND $1. ;&lt;BR /&gt;
1012         format SCH_H_ATTACHED_IND $1. ;&lt;BR /&gt;
1013         format SCH_I_ATTACHED_IND $3. ;&lt;BR /&gt;
1014         format SCH_A_ATTACHED_IND $4. ;&lt;BR /&gt;
1015         format NUM_SCH_A_ATTACHED_CNT best12. ;&lt;BR /&gt;
1016         format SCH_C_ATTACHED_IND $1. ;&lt;BR /&gt;
1017         format SCH_D_ATTACHED_IND $4. ;&lt;BR /&gt;
1018         format SCH_G_ATTACHED_IND $1. ;&lt;BR /&gt;
1019         format SCH_P_ATTACHED_IND $3. ;&lt;BR /&gt;
1020         format NUM_SCH_P_ATTACHED_CNT best12. ;&lt;BR /&gt;
1021      input&lt;BR /&gt;
1022                  FILING_ID&lt;BR /&gt;
1023                  SPONS_DFE_EIN $&lt;BR /&gt;
1024                  SPONS_DFE_PN $&lt;BR /&gt;
1025                  FORM_PLAN_YEAR_BEGIN_DATE $&lt;BR /&gt;
1026                  FORM_TAX_PRD&lt;BR /&gt;
1027                  TYPE_PLAN_ENTITY_IND $&lt;BR /&gt;
1028                  TYPE_DFE_PLAN_ENTITY $&lt;BR /&gt;
1029                  TYPE_PLAN_FILING_IND $&lt;BR /&gt;
1030                  COLLECTIVE_BARGAIN_IND $&lt;BR /&gt;
1031                  EXT_APPLICATION_FILED_IND $&lt;BR /&gt;
1032                  PLAN_NAME $&lt;BR /&gt;
1033                  PLAN_EFF_DATE $&lt;BR /&gt;
1034                  SPONSOR_DFE_NAME $&lt;BR /&gt;
1035                  SPONS_DFE_DBA_NAME $&lt;BR /&gt;
1036                  SPONS_DFE_CARE_OF_NAME $&lt;BR /&gt;
1037                  SPONS_DFE_MAIL_STR_ADDRESS $&lt;BR /&gt;
1038                  SPONS_DFE_LOC_ADDR $&lt;BR /&gt;
1039                  SPONS_DFE_FOREIGN_ROUTE_CD $&lt;BR /&gt;
1040                  SP_DFE_FGN_MAIL_CNTRY $&lt;BR /&gt;
1041                  SPONS_DFE_CITY $&lt;BR /&gt;
1042                  SPONS_DFE_STATE $&lt;BR /&gt;
1043                  SPONS_DFE_ZIP_CODE $&lt;BR /&gt;
1044                  SPONS_DFE_PHONE_NUM $&lt;BR /&gt;
1045                  BUSINESS_CODE $&lt;BR /&gt;
1046                  ADMIN_NAME $&lt;BR /&gt;
1047                  ADMIN_CARE_OF_NAME $&lt;BR /&gt;
1048                  ADMIN_STR_ADDRESS $&lt;BR /&gt;
1049                  ADMIN_FOREIGN_ROUTE_CD $&lt;BR /&gt;
1050                  ADMIN_FOREIGN_MAILING_CNTRY $&lt;BR /&gt;
1051                  ADMIN_CITY $&lt;BR /&gt;
1052                  ADMIN_STATE $&lt;BR /&gt;
1053                  ADMIN_ZIP_CODE $&lt;BR /&gt;
1054                  ADMIN_EIN $&lt;BR /&gt;
1055                  ADMIN_PHONE_NUM $&lt;BR /&gt;
1056                  LAST_RPT_SPONS_NAME $&lt;BR /&gt;
1057                  LAST_RPT_SPONS_EIN $&lt;BR /&gt;
1058                  LAST_RPT_PLAN_NUM $&lt;BR /&gt;
1059                  PREPARER_NAME $&lt;BR /&gt;
1060                  PREPARER_STR_ADDRESS $&lt;BR /&gt;
1061                  PREPARER_FOREIGN_ROUTE_CD $&lt;BR /&gt;
1062                  PREPARER_FRGN_MAILING_CNTRY $&lt;BR /&gt;
1063                  PREPARER_CITY $&lt;BR /&gt;
1064                  PREPARER_STATE $&lt;BR /&gt;
1065                  PREPARER_ZIP_CODE $&lt;BR /&gt;
1066                  PREPARER_EIN $&lt;BR /&gt;
1067                  PREPARER_PHONE_NUM $&lt;BR /&gt;
1068                  ADMIN_SIGNATURE_IND $&lt;BR /&gt;
1069                  ADMIN_SIGNED_DATE $&lt;BR /&gt;
1070                  ADMIN_SIGNED_NAME $&lt;BR /&gt;
1071                  SPONS_SIGNATURE_IND $&lt;BR /&gt;
1072                  SPONS_SIGNED_DATE $&lt;BR /&gt;
1073                  SPONS_SIGNED_NAME $&lt;BR /&gt;
1074                  TOT_PARTCP_BOY_CNT&lt;BR /&gt;
1075                  TOT_ACTIVE_PARTCP_CNT&lt;BR /&gt;
1076                  RTD_SEP_PARTCP_RCVG_CNT&lt;BR /&gt;
1077                  RTD_SEP_PARTCP_FUT_CNT&lt;BR /&gt;
1078                  SUBTL_ACT_RTD_SEP_CNT&lt;BR /&gt;
1079                  BENEF_RCVG_BNFT_CNT&lt;BR /&gt;
1080                  TOT_ACT_RTD_SEP_BENEF_CNT&lt;BR /&gt;
1081                  PARTCP_ACCOUNT_BAL_CNT&lt;BR /&gt;
1082                  SEP_PARTCP_PARTL_VSTD_CNT&lt;BR /&gt;
1083                  SSA_FILER_PARTCP_CNT&lt;BR /&gt;
1084                  PENSION_BENEFIT_PLAN_IND $&lt;BR /&gt;
1085                  TYPE_PENSION_BNFT_CODE $&lt;BR /&gt;
1086                  WELFARE_BENEFIT_PLAN_IND $&lt;BR /&gt;
1087                  TYPE_WELFARE_BNFT_CODE $&lt;BR /&gt;
1088                  FUNDING_ARRANGEMENT_CODE $&lt;BR /&gt;
1089                  BENEFIT_CODE $&lt;BR /&gt;
1090                  SCH_R_ATTACHED_IND $&lt;BR /&gt;
1091                  SCH_T_ATTACHED_IND $&lt;BR /&gt;
1092                  NUM_SCH_T_ATTACHED_CNT&lt;BR /&gt;
1093                  SCH_T_PNDG_INFO_PRIOR_YR_DATE $&lt;BR /&gt;
1094                  SCH_B_ATTACHED_IND $&lt;BR /&gt;
1095                  SCH_E_ATTACHED_IND $&lt;BR /&gt;
1096                  SCH_SSA_ATTACHED_IND $&lt;BR /&gt;
1097                  SCH_H_ATTACHED_IND $&lt;BR /&gt;
1098                  SCH_I_ATTACHED_IND $&lt;BR /&gt;
1099                  SCH_A_ATTACHED_IND $&lt;BR /&gt;
1100                  NUM_SCH_A_ATTACHED_CNT&lt;BR /&gt;
1101                  SCH_C_ATTACHED_IND $&lt;BR /&gt;
1102                  SCH_D_ATTACHED_IND $&lt;BR /&gt;
1103                  SCH_G_ATTACHED_IND $&lt;BR /&gt;
1104                  SCH_P_ATTACHED_IND $&lt;BR /&gt;
1105                  NUM_SCH_P_ATTACHED_CNT&lt;BR /&gt;
1106      ;&lt;BR /&gt;
1107      if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */&lt;BR /&gt;
1108      run;</description>
      <pubDate>Wed, 04 Aug 2010 20:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60570#M17182</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-04T20:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60571#M17183</link>
      <description>You have limited control so I suggest you take what you get and use SAS to convert the numeric value back to a SAS CHARACTER variable, using PUT - see example below;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
1    data _null_;&lt;BR /&gt;
2    filing_id = input('84037175123753',best32.);&lt;BR /&gt;
3    filing_id_c = put(filing_id,14.);&lt;BR /&gt;
4    putlog _all_;&lt;BR /&gt;
5    run;&lt;BR /&gt;
&lt;BR /&gt;
filing_id=8.4037175E13 filing_id_c=84037175123753 _ERROR_=0 _N_=1&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.03 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 04 Aug 2010 20:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60571#M17183</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-04T20:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60572#M17184</link>
      <description>You do understand that the code you extract from the log and modify becomes your NEW program and you don't use PROC IMPORT again.  Right?</description>
      <pubDate>Wed, 04 Aug 2010 21:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60572#M17184</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-08-04T21:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60573#M17185</link>
      <description>@sbb:  The problem is that the field gets read in with 8 significant digits, so the last 6 digits are not there at all when I do the conversion.</description>
      <pubDate>Thu, 05 Aug 2010 13:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60573#M17185</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-05T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60574#M17186</link>
      <description>@data_null_:  Yes, I do understand that. &lt;BR /&gt;
&lt;BR /&gt;
I do have a workaround in which I pull the data into Excel, insert a character in front of the number, and write the file out in .csv format. SAS reads that fine, but it's a bit cumbersome because I have more than a few files to load. The workaround is find for this project, but I'd like to figure out an easier approach for future reference.</description>
      <pubDate>Thu, 05 Aug 2010 13:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60574#M17186</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-05T13:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60575#M17187</link>
      <description>You'll notice in my post/reply, there is a SASLOG that demonstrates the conversion technique, which would mimic the IMPORT, I believe.  The data-string goes from character, to numeric, and back to character, remaining intact.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 05 Aug 2010 13:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60575#M17187</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-05T13:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: data input problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60576#M17188</link>
      <description>Hi:&lt;BR /&gt;
  You are showing the log of the original program. I would be more interested in the log of the CHANGED program. For example, if I run THIS program&lt;BR /&gt;
[pre]&lt;BR /&gt;
data WORK.TEMP ;&lt;BR /&gt;
 infile datalines &lt;BR /&gt;
      delimiter = ','  DSD firstobs=2 ;&lt;BR /&gt;
 informat FILING_ID $14. ;&lt;BR /&gt;
 informat name $8.;&lt;BR /&gt;
 format filing_id $14.;&lt;BR /&gt;
 input filing_id $ name $;&lt;BR /&gt;
 put _all_;&lt;BR /&gt;
return;&lt;BR /&gt;
datalines;&lt;BR /&gt;
filing_id name&lt;BR /&gt;
12345678901234,alan&lt;BR /&gt;
22223333444455,bob&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
                            &lt;BR /&gt;
proc print data=work.temp;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
   &lt;BR /&gt;
Which essentially reduces the program to only 2 variables, but uses the INPUT and INFORMAT you -said- you used -- then in the log, I see that the number is a character string. So there's still something happening when you run the CHANGED program that is not right.&lt;BR /&gt;
&lt;BR /&gt;
My output in the LOG shows the FILING_ID as a character string with ALL digits and no E notation.&lt;BR /&gt;
 [pre]&lt;BR /&gt;
66   data WORK.TEMP ;&lt;BR /&gt;
67    infile datalines&lt;BR /&gt;
68         delimiter = ','  DSD firstobs=2 ;&lt;BR /&gt;
69    informat FILING_ID $14. ;&lt;BR /&gt;
70    informat name $8.;&lt;BR /&gt;
71    format filing_id $14.;&lt;BR /&gt;
72    input filing_id $ name $;&lt;BR /&gt;
73    put _all_;&lt;BR /&gt;
74   return;&lt;BR /&gt;
75   datalines;&lt;BR /&gt;
&lt;BR /&gt;
FILING_ID=12345678901234 name=alan _ERROR_=0 _N_=1&lt;BR /&gt;
FILING_ID=22223333444455 name=bob _ERROR_=0 _N_=2&lt;BR /&gt;
NOTE: The data set WORK.TEMP has 2 observations and 2 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.01 seconds&lt;BR /&gt;
      cpu time            0.00 seconds&lt;BR /&gt;
                           &lt;BR /&gt;
                    &lt;BR /&gt;
79   ;&lt;BR /&gt;
80   run;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                     &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 05 Aug 2010 13:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-input-problem/m-p/60576#M17188</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-05T13:52:11Z</dc:date>
    </item>
  </channel>
</rss>

