<?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 Base to Studio:  Code that works in Base but not Studio in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/362858#M2611</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I inherited a snippet of code written in BASE (see below). &amp;nbsp;It works fine. &amp;nbsp;I need&amp;nbsp;to run&amp;nbsp;the code in STUDIO. Of course I'm brand new to the company and to STUDIO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.Members&lt;BR /&gt;DATAFILE= "\\maskedforsecurity.txt"&lt;BR /&gt;DBMS=TAB REPLACE;&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;DATAROW=2;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA MEMBERS;&lt;BR /&gt;SET MEMBERS;&lt;BR /&gt;IDMEDICALC = PUT(MEMBERID, 12.);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what happened in Studio:&lt;/P&gt;&lt;P&gt;1. I could not get the "proc import out =" statement to work, so I imported manually.&lt;/P&gt;&lt;P&gt;2. The second statement creates a two variable file with no data (Originally, there were 300 some cases and 5 variables)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;P&gt;a. what am I doing wrong?&lt;/P&gt;&lt;P&gt;b. where is a good resource that outlines differences in code behavior between Base and Studio?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 20:25:46 GMT</pubDate>
    <dc:creator>Suzbert</dc:creator>
    <dc:date>2017-05-30T20:25:46Z</dc:date>
    <item>
      <title>Base to Studio:  Code that works in Base but not Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/362858#M2611</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I inherited a snippet of code written in BASE (see below). &amp;nbsp;It works fine. &amp;nbsp;I need&amp;nbsp;to run&amp;nbsp;the code in STUDIO. Of course I'm brand new to the company and to STUDIO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.Members&lt;BR /&gt;DATAFILE= "\\maskedforsecurity.txt"&lt;BR /&gt;DBMS=TAB REPLACE;&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;DATAROW=2;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA MEMBERS;&lt;BR /&gt;SET MEMBERS;&lt;BR /&gt;IDMEDICALC = PUT(MEMBERID, 12.);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what happened in Studio:&lt;/P&gt;&lt;P&gt;1. I could not get the "proc import out =" statement to work, so I imported manually.&lt;/P&gt;&lt;P&gt;2. The second statement creates a two variable file with no data (Originally, there were 300 some cases and 5 variables)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;P&gt;a. what am I doing wrong?&lt;/P&gt;&lt;P&gt;b. where is a good resource that outlines differences in code behavior between Base and Studio?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 20:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/362858#M2611</guid>
      <dc:creator>Suzbert</dc:creator>
      <dc:date>2017-05-30T20:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Base to Studio:  Code that works in Base but not Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/362861#M2612</link>
      <description>&lt;P&gt;I can't address the IMPORT problem, but I wouldn't be surprised of SAS Studio can't run PROC IMPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your second issue, it's likely you forgot the semicolon at the end of the DATA statement.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 20:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/362861#M2612</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-05-30T20:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Base to Studio:  Code that works in Base but not Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/362876#M2613</link>
      <description>&lt;P&gt;In my experience SAS code works identically between Base / EG / SAS Studio assuming that they are all using the same SAS servers with the same set up.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 20:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/362876#M2613</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-05-30T20:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Base to Studio:  Code that works in Base but not Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/362880#M2614</link>
      <description>When claiming that something isn't working - please attach the log!</description>
      <pubDate>Tue, 30 May 2017 21:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/362880#M2614</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-05-30T21:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Base to Studio:  Code that works in Base but not Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/363077#M2616</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Understood.&lt;/P&gt;&lt;P&gt;Being new to SASS, these boards,&amp;nbsp;and my job, I debated including the log.&lt;/P&gt;&lt;P&gt;I would need to edit information out because I work for a state govt entity in health care and security policies are&amp;nbsp;excruciatingly strict.&lt;/P&gt;&lt;P&gt;What's the minimum log information required?&lt;/P&gt;&lt;P&gt;s&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 13:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/363077#M2616</guid>
      <dc:creator>Suzbert</dc:creator>
      <dc:date>2017-05-31T13:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Base to Studio:  Code that works in Base but not Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/363130#M2617</link>
      <description>&lt;P&gt;How about doing a "find/replace" of all the privacy-related filenames and varnames?&amp;nbsp; Just use consistent, but unique replacement characters consistently throughout the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But more generally one is interested in the sas notes, warnings, and error messages - and (more problematic for your secutiy issues) the lines of code that precipitated those messages.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 15:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Base-to-Studio-Code-that-works-in-Base-but-not-Studio/m-p/363130#M2617</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-05-31T15:45:53Z</dc:date>
    </item>
  </channel>
</rss>

