<?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 How to use dirdata in SAS Studio in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-use-dirdata-in-SAS-Studio/m-p/442691#M4839</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I uploaded the .dat file "Boats" to myfolders,&lt;/P&gt;&lt;P&gt;and used &amp;amp;"dirdata" command.&lt;/P&gt;&lt;P&gt;but I got error message.&lt;/P&gt;&lt;P&gt;Is anyone can help me take a look at what I had done wrong?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I put in SAS Studio is as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dirdata='/folders/myfolders';

data boats;
set '&amp;amp;dirdata/Programs/Week_3/Boats.dat';
run;

proc print data=boats;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The LOG is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         %let dirdata='/folders/myfolders';
 74         
 75         data boats;
 76         set '&amp;amp;dirdata/Programs/Week_3/Boats.dat';
 ERROR: Extension for physical file name "&amp;amp;dirdata/Programs/Week_3/Boats.dat" does not correspond to a valid member type.
 77         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.BOATS may be incomplete.  When this step was stopped there were 0 observations and 0 variables.
 WARNING: Data set WORK.BOATS was not replaced because this step was stopped.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 78         
 79         proc print data=boats;
 80         run;
 
 NOTE: No variables in data set WORK.BOATS.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 81         
 82         
 83         
 84         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 97         &lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 06 Mar 2018 01:24:20 GMT</pubDate>
    <dc:creator>jc3992</dc:creator>
    <dc:date>2018-03-06T01:24:20Z</dc:date>
    <item>
      <title>How to use dirdata in SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-use-dirdata-in-SAS-Studio/m-p/442691#M4839</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I uploaded the .dat file "Boats" to myfolders,&lt;/P&gt;&lt;P&gt;and used &amp;amp;"dirdata" command.&lt;/P&gt;&lt;P&gt;but I got error message.&lt;/P&gt;&lt;P&gt;Is anyone can help me take a look at what I had done wrong?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I put in SAS Studio is as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dirdata='/folders/myfolders';

data boats;
set '&amp;amp;dirdata/Programs/Week_3/Boats.dat';
run;

proc print data=boats;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The LOG is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         %let dirdata='/folders/myfolders';
 74         
 75         data boats;
 76         set '&amp;amp;dirdata/Programs/Week_3/Boats.dat';
 ERROR: Extension for physical file name "&amp;amp;dirdata/Programs/Week_3/Boats.dat" does not correspond to a valid member type.
 77         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.BOATS may be incomplete.  When this step was stopped there were 0 observations and 0 variables.
 WARNING: Data set WORK.BOATS was not replaced because this step was stopped.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 78         
 79         proc print data=boats;
 80         run;
 
 NOTE: No variables in data set WORK.BOATS.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 81         
 82         
 83         
 84         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 97         &lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Mar 2018 01:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-use-dirdata-in-SAS-Studio/m-p/442691#M4839</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-06T01:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use dirdata in SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-use-dirdata-in-SAS-Studio/m-p/442704#M4844</link>
      <description>&lt;P&gt;You can only read SAS data files with the SET statement - the .dat extension is not tied to any particular application so you'll need to find out what format it is in before attempting to read it into SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 01:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-use-dirdata-in-SAS-Studio/m-p/442704#M4844</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-03-06T01:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use dirdata in SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-use-dirdata-in-SAS-Studio/m-p/442706#M4845</link>
      <description>&lt;P&gt;Got it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! I thought "Set" is so good to use.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 01:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-use-dirdata-in-SAS-Studio/m-p/442706#M4845</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-06T01:55:11Z</dc:date>
    </item>
  </channel>
</rss>

