<?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: customizing format of some variables when importing CSV file inside PROC IMPORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709670#M218275</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You cannot do that within PROC IMPORT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, once you run PROC IMPORT check your log, it will have the generated code including the types. Copy and paste that into your editor and then modify it as necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using traditional SAS (Display Manager) you can copy the code from the log without the line numbers by holding down ALT+SHIFT (I think) while selecting with the cursor. Or I strip the line numbers in NotePad++&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or, again in the Display manager enhanced editor, &lt;STRONG&gt;immediately&lt;/STRONG&gt; after running the proc import press the F4 key. By default this is set to "recall" last code submitted into the editor. In this case, the "last code" is that generated by Proc Import. The result will be at the top of the editor window and will likely need to be moved in the program flow.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2021 17:46:37 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-01-06T17:46:37Z</dc:date>
    <item>
      <title>customizing format of some variables when importing CSV file inside PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709558#M218222</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How to customize format of some variables when&lt;FONT face="inherit"&gt;&amp;nbsp;importing CSV file inside PROC IMPORT&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="inherit"&gt;&amp;nbsp;? Appreciate for any help.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 06:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709558#M218222</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2021-01-06T06:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: customizing format of some variables when importing CSV file inside PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709561#M218225</link>
      <description>&lt;P&gt;Proc Import can't guarantee weather a&amp;nbsp; numeric variable will be assigned as a num type or char type. That is probably the reason it does not contain a format statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After importing the dataset you should check the variables weather they were assigned the right type. Then you can use proc datasets or a data step to assign the wanted formats.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 06:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709561#M218225</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-01-06T06:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: customizing format of some variables when importing CSV file inside PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709569#M218230</link>
      <description>&lt;P&gt;Do not use PROC IMPORT, write the data step yourself. Or run IMPORT once, copy the data step from the log, and adapt it to your needs.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 09:22:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709569#M218230</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-06T09:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: customizing format of some variables when importing CSV file inside PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709663#M218272</link>
      <description>&lt;P&gt;You cannot do that within PROC IMPORT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, once you run PROC IMPORT check your log, it will have the generated code including the types. Copy and paste that into your editor and then modify it as necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using traditional SAS (Display Manager) you can copy the code from the log without the line numbers by holding down ALT+SHIFT (I think) while selecting with the cursor. Or I strip the line numbers in NotePad++&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 17:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709663#M218272</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-06T17:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: customizing format of some variables when importing CSV file inside PROC IMPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709670#M218275</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You cannot do that within PROC IMPORT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, once you run PROC IMPORT check your log, it will have the generated code including the types. Copy and paste that into your editor and then modify it as necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using traditional SAS (Display Manager) you can copy the code from the log without the line numbers by holding down ALT+SHIFT (I think) while selecting with the cursor. Or I strip the line numbers in NotePad++&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or, again in the Display manager enhanced editor, &lt;STRONG&gt;immediately&lt;/STRONG&gt; after running the proc import press the F4 key. By default this is set to "recall" last code submitted into the editor. In this case, the "last code" is that generated by Proc Import. The result will be at the top of the editor window and will likely need to be moved in the program flow.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 17:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/customizing-format-of-some-variables-when-importing-CSV-file/m-p/709670#M218275</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-06T17:46:37Z</dc:date>
    </item>
  </channel>
</rss>

