<?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: Saving save the data permanently In the file SAS in the C drive in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Saving-save-the-data-permanently-In-the-file-SAS-in-the-C-drive/m-p/58787#M16526</link>
    <description>First make a directory on c e.g. mysasdata.  Then, you will need to write a libname statement and then use a two level name for the dataset.&lt;BR /&gt;
&lt;BR /&gt;
libname c 'c:\mysasdata';&lt;BR /&gt;
&lt;BR /&gt;
data c.water;&lt;BR /&gt;
 infile ....&lt;BR /&gt;
&lt;BR /&gt;
The sas dataset water will be stored in c:\mysasdata</description>
    <pubDate>Wed, 17 Feb 2010 21:08:55 GMT</pubDate>
    <dc:creator>Bill</dc:creator>
    <dc:date>2010-02-17T21:08:55Z</dc:date>
    <item>
      <title>Saving save the data permanently In the file SAS in the C drive</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Saving-save-the-data-permanently-In-the-file-SAS-in-the-C-drive/m-p/58786#M16525</link>
      <description>Hi ,&lt;BR /&gt;
&lt;BR /&gt;
could anyone please help me out.I have used the following code :&lt;BR /&gt;
&lt;BR /&gt;
ata water;                            &lt;BR /&gt;
*    infile 'n:\handbook\datasets\water.dat';&lt;BR /&gt;
    input flag $ 1 Town $ 2-18 Mortal 19-22 Hardness 25-27;&lt;BR /&gt;
    if flag='*' then location='north';&lt;BR /&gt;
        else location='south';&lt;BR /&gt;
*run;&lt;BR /&gt;
cards;&lt;BR /&gt;
 Bath             1247  105        &lt;BR /&gt;
*Birkenhead       1668  17         &lt;BR /&gt;
 Birmingham       1466  5          &lt;BR /&gt;
*Blackburn        1800  14         &lt;BR /&gt;
*Blackpool        1609  18         &lt;BR /&gt;
*Bolton           1558  10         &lt;BR /&gt;
*Bootle           1807  15         &lt;BR /&gt;
 Bournemouth      1299  78         &lt;BR /&gt;
*Bradford         1637  10         &lt;BR /&gt;
 Brighton         1359  84         &lt;BR /&gt;
 Bristol          1392  73         &lt;BR /&gt;
*Burnley          1755  12         &lt;BR /&gt;
 Cardiff          1519  21    &lt;BR /&gt;
 Coventry         1307  78         &lt;BR /&gt;
 Croydon          1254  96         &lt;BR /&gt;
*Darlington       1491  20         &lt;BR /&gt;
*Derby            1555  39         &lt;BR /&gt;
*Doncaster        1428  39         &lt;BR /&gt;
 East Ham         1318  122        &lt;BR /&gt;
 Exeter           1260  21         &lt;BR /&gt;
*Gateshead        1723  44         &lt;BR /&gt;
*Grimsby          1379  94         &lt;BR /&gt;
*Halifax          1742  8          &lt;BR /&gt;
*Huddersfield     1574  9          &lt;BR /&gt;
*Hull             1569  91         &lt;BR /&gt;
 Ipswich          1096  138        &lt;BR /&gt;
*Leeds            1591  16         &lt;BR /&gt;
 Leicester        1402  37         &lt;BR /&gt;
*Liverpool        1772  15         &lt;BR /&gt;
*Manchester       1828  8          &lt;BR /&gt;
*Middlesbrough    1704  26         &lt;BR /&gt;
*Newcastle        1702  44              &lt;BR /&gt;
 Newport          1581  14    &lt;BR /&gt;
 Northampton      1309  59    &lt;BR /&gt;
 Norwich          1259  133   &lt;BR /&gt;
*Nottingham       1427  27    &lt;BR /&gt;
*Oldham           1724  6     &lt;BR /&gt;
 Oxford           1175  107   &lt;BR /&gt;
 Plymouth         1486  5     &lt;BR /&gt;
 Portsmouth       1456  90    &lt;BR /&gt;
*Preston          1696  6     &lt;BR /&gt;
 Reading          1236  101   &lt;BR /&gt;
*Rochdale         1711  13    &lt;BR /&gt;
*Rotherham        1444  14    &lt;BR /&gt;
*St Helens        1591  49    &lt;BR /&gt;
*Salford          1987  8     &lt;BR /&gt;
*Sheffield        1495  14    &lt;BR /&gt;
 Southampton      1369  68    &lt;BR /&gt;
 Southend         1257  50    &lt;BR /&gt;
*Southport        1587  75    &lt;BR /&gt;
*South Shields    1713  71    &lt;BR /&gt;
*Stockport        1557  13    &lt;BR /&gt;
*Stoke            1640  57  &lt;BR /&gt;
*Sunderland       1709  71    &lt;BR /&gt;
 Swansea          1625  13    &lt;BR /&gt;
*Wallasey         1625  20    &lt;BR /&gt;
 Walsall          1527  60    &lt;BR /&gt;
 West Bromwich    1627  53    &lt;BR /&gt;
 West Ham         1486  122&lt;BR /&gt;
 Wolverhampton    1485  81    &lt;BR /&gt;
*York             1378  71    &lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
proc univariate data=water normal;&lt;BR /&gt;
  var mortal hardness;&lt;BR /&gt;
  histogram mortal hardness /normal;&lt;BR /&gt;
  probplot mortal hardness;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I need to save the data permanently from my Work library in the file SAS in the C drive.&lt;BR /&gt;
&lt;BR /&gt;
What changes do i need to make in code?&lt;BR /&gt;
&lt;BR /&gt;
Kind  Regards ,&lt;BR /&gt;
&lt;BR /&gt;
mark</description>
      <pubDate>Wed, 17 Feb 2010 19:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Saving-save-the-data-permanently-In-the-file-SAS-in-the-C-drive/m-p/58786#M16525</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-17T19:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Saving save the data permanently In the file SAS in the C drive</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Saving-save-the-data-permanently-In-the-file-SAS-in-the-C-drive/m-p/58787#M16526</link>
      <description>First make a directory on c e.g. mysasdata.  Then, you will need to write a libname statement and then use a two level name for the dataset.&lt;BR /&gt;
&lt;BR /&gt;
libname c 'c:\mysasdata';&lt;BR /&gt;
&lt;BR /&gt;
data c.water;&lt;BR /&gt;
 infile ....&lt;BR /&gt;
&lt;BR /&gt;
The sas dataset water will be stored in c:\mysasdata</description>
      <pubDate>Wed, 17 Feb 2010 21:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Saving-save-the-data-permanently-In-the-file-SAS-in-the-C-drive/m-p/58787#M16526</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2010-02-17T21:08:55Z</dc:date>
    </item>
  </channel>
</rss>

