<?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 4 methods to read a file in SAS program --Please provide the information !!thanks in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25205#M4357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I am using(mainframe) for last 8 months only . In one interview I was asked&amp;nbsp; that there are 4 methods to read a file in SAS program . Could you please provide me the four methods . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jul 2011 14:56:16 GMT</pubDate>
    <dc:creator>kaushiklu</dc:creator>
    <dc:date>2011-07-03T14:56:16Z</dc:date>
    <item>
      <title>4 methods to read a file in SAS program --Please provide the information !!thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25205#M4357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I am using(mainframe) for last 8 months only . In one interview I was asked&amp;nbsp; that there are 4 methods to read a file in SAS program . Could you please provide me the four methods . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2011 14:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25205#M4357</guid>
      <dc:creator>kaushiklu</dc:creator>
      <dc:date>2011-07-03T14:56:16Z</dc:date>
    </item>
    <item>
      <title>4 methods to read a file in SAS program --Please provide the information !!thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25206#M4358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Without knowing more specifically about what type of file (because, the method you would use to read an Oracle file, for example, differs from the method you would use to read a raw data file). However, if you look at the documentation, I believe you will find the answer to that question:&lt;/P&gt;&lt;P&gt;﻿&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a002645704.htm"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a002645704.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are mainly three ways to read raw data files into a SAS program to create a SAS dataset: LIST input, COLUMN input and FORMATTED input and then, since you can "mix" types of input, some people consider MIXED input (where you use LIST and COLUMN or COLUMN and FORMATTED or ...)&amp;nbsp; to be a 4th method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2011 19:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25206#M4358</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-07-03T19:44:03Z</dc:date>
    </item>
    <item>
      <title>4 methods to read a file in SAS program --Please provide the information !!thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25207#M4359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add it into Cynthia ,The fourth method is NAMED input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 03:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25207#M4359</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-07-04T03:05:01Z</dc:date>
    </item>
    <item>
      <title>4 methods to read a file in SAS program --Please provide the information !!thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25208#M4360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True....I haven't used it in so long, I forget it's even there. So did the doc site I listed. So I guess that's 5 overall -- if you count NAMED -and- the ability to mix the input types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 04:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25208#M4360</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-07-04T04:56:06Z</dc:date>
    </item>
    <item>
      <title>4 methods to read a file in SAS program --Please provide the information !!thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25209#M4361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That question can be interpreted more than one way. The others have mentioned the various forms of an INPUT statement, which may very well be what was intended. However, looking at the question from a different point of view, four methods to read a file that I can think of would be INFILE, PROC IMPORT, LIBNAME (using a non-default engine) and %INCLUDE. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 12:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25209#M4361</guid>
      <dc:creator>DouglasMartin</dc:creator>
      <dc:date>2011-07-04T12:53:27Z</dc:date>
    </item>
    <item>
      <title>4 methods to read a file in SAS program --Please provide the information !!thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25210#M4362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it does depend on interpretation. I can think of only (1) the INPUT statement and (2) the FREAD function. Others (PROC IMPORT, External File Interface, Enterprise Guide) arguably don't count because they simply generate code for #1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 01:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25210#M4362</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2011-07-06T01:10:24Z</dc:date>
    </item>
    <item>
      <title>4 methods to read a file in SAS program --Please provide the information !!thanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25211#M4363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are we to allow a "file" to include a database such as a sql server "file"?&lt;/P&gt;&lt;P&gt;Then a SAS program might "read" that "file" with the ODBC libname engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A file might be a sas table. &lt;/P&gt;&lt;P&gt;A SAS program reads such a file with many different methods, that vary not just within the capabilities of a DATA step but also over the many different PROC steps and sometimes varying with the platform on which SAS is running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA step INPUT statements offer a large variety of methods﻿ ﻿(more than 4). FREAD provides a different approach to reading a file in a DATA step (or even in the macro language environment). &lt;/P&gt;&lt;P&gt;Perhaps PROC SOAP should be considered too, as its online doc starts "﻿PROC SOAP reads XML input from a file" .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that interview question is beginning to sound a bit vague...&amp;nbsp; which is OK for an interview as it opens up a conversation, at least to clarify and expand on that question ..... &lt;/P&gt;&lt;P&gt;The interviewer might want to hear more that a quick list of 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 11:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/4-methods-to-read-a-file-in-SAS-program-Please-provide-the/m-p/25211#M4363</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-07-06T11:49:06Z</dc:date>
    </item>
  </channel>
</rss>

