<?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 proc import and data management in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-and-data-management/m-p/57088#M15933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Break the task into steps and create new datasets.&amp;nbsp; e.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;proc import datafile = "SPSS dataset.sav" data = nida.ppi replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data step2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set nida.ppi;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if inform_r &amp;lt; 5 then inform = "Bio Parent";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;proc contents data=step2 short;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 15:08:59 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-02-17T15:08:59Z</dc:date>
    <item>
      <title>proc import and data management</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-and-data-management/m-p/57087#M15932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to read an SPSS dataset into SAS using proc import and subsequently modify a few of the variables. I am relatively new to SAS and know that data modifying belongs in a data step, but I cannot seem to get the order right. If I put the data step after proc import, I lose the dataset that I imported, but if I try to put the proc import statement within a data step (like below), I get an error in the log that says that the "if" statement is used out of proper order. Please advise. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data nida.ppi;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc import datafile = "SPSS dataset.sav" data = nida.ppi replace; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if inform_r &amp;lt; 5 then inform = "Bio Parent";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc contents short;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 15:01:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-and-data-management/m-p/57087#M15932</guid>
      <dc:creator>aklr</dc:creator>
      <dc:date>2012-02-17T15:01:34Z</dc:date>
    </item>
    <item>
      <title>proc import and data management</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-import-and-data-management/m-p/57088#M15933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Break the task into steps and create new datasets.&amp;nbsp; e.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;proc import datafile = "SPSS dataset.sav" data = nida.ppi replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data step2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set nida.ppi;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if inform_r &amp;lt; 5 then inform = "Bio Parent";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;proc contents data=step2 short;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 15:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-import-and-data-management/m-p/57088#M15933</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-17T15:08:59Z</dc:date>
    </item>
  </channel>
</rss>

