<?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: This is the right way of starting program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/This-is-the-right-way-of-starting-program/m-p/290296#M60041</link>
    <description>&lt;P&gt;If the LIBNAME statement successfully assigns the library then&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data wombat.orderdata;
   set wombat.customer;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;would create a copy of the customer data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you only want the customer id then add&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;keep customer_id;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the data is in a SAS data set (sas7bdat extension) then a library pointing to the location of the file and referencing the set as library.dataset is all that is needed. No Infile, no input needed&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2016 20:02:25 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-08-08T20:02:25Z</dc:date>
    <item>
      <title>This is the right way of starting program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/This-is-the-right-way-of-starting-program/m-p/290293#M60039</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname wombat "/folders/myfolders/macro";&lt;/P&gt;&lt;P&gt;data wombat.orderdata;&lt;BR /&gt;infile "/folders/myfolders/macro/customer.sas7bdat";&lt;BR /&gt;input customer_ID;&lt;BR /&gt;set wombat.customer;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the relevent of set varible here....or how can I use set with out infile oprion&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 19:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/This-is-the-right-way-of-starting-program/m-p/290293#M60039</guid>
      <dc:creator>arun1234</dc:creator>
      <dc:date>2016-08-08T19:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: This is the right way of starting program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/This-is-the-right-way-of-starting-program/m-p/290296#M60041</link>
      <description>&lt;P&gt;If the LIBNAME statement successfully assigns the library then&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data wombat.orderdata;
   set wombat.customer;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;would create a copy of the customer data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you only want the customer id then add&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;keep customer_id;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the data is in a SAS data set (sas7bdat extension) then a library pointing to the location of the file and referencing the set as library.dataset is all that is needed. No Infile, no input needed&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/This-is-the-right-way-of-starting-program/m-p/290296#M60041</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-08T20:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: This is the right way of starting program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/This-is-the-right-way-of-starting-program/m-p/290299#M60042</link>
      <description>&lt;P&gt;SET - tells SAS this is the input data set you'll be working with. You reference a dataset as LIBNAME.DATASET_NAME.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;INFILE - tells SAS to read this file, used for text files, not SAS datasets (sas7bdat). SET and INFILE can be used together, but usually not at the beginning or while learning.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;INPUT - tells SAS what to read from the file, in this case it's saying read a single variable Customer_ID.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have a SAS dataset this isn't correct. Once you've assinged the library you can point to the dataset directly as someone else has pointed out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/This-is-the-right-way-of-starting-program/m-p/290299#M60042</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-08T20:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: This is the right way of starting program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/This-is-the-right-way-of-starting-program/m-p/290303#M60045</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/This-is-the-right-way-of-starting-program/m-p/290303#M60045</guid>
      <dc:creator>arun1234</dc:creator>
      <dc:date>2016-08-08T20:17:23Z</dc:date>
    </item>
  </channel>
</rss>

