<?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: Reading raw files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252452#M47914</link>
    <description>Thanks a lot Zaki &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Thu, 25 Feb 2016 17:58:23 GMT</pubDate>
    <dc:creator>Bulleride</dc:creator>
    <dc:date>2016-02-25T17:58:23Z</dc:date>
    <item>
      <title>Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252438#M47903</link>
      <description>&lt;P&gt;&lt;STRONG&gt;QUESTION&lt;/STRONG&gt;:The contents of the SAS data set PERM.JAN_SALES are listed below: VARIABLE NAME TYPE idnumcharacter variable sales_datenumeric date value A &lt;U&gt;comma delimited raw data file needs to be created&lt;/U&gt; from the PERM.JAN_SALES data set. The SALES_DATE values need to be in a MMDDYY10 form. Which one of the following SAS DATA steps correctly creates this raw data file?&lt;BR /&gt;&lt;BR /&gt;A. libname perm 'SAS-data-library';&lt;BR /&gt;data_null_;&lt;BR /&gt;set perm.jan_sales;&lt;BR /&gt;put idnum sales_date : mmddyy 10.;&lt;BR /&gt;run;&lt;BR /&gt;B. libname perm 'SAS-data-library';&lt;BR /&gt;data_null_;&lt;BR /&gt;set perm.jan_sales;&lt;BR /&gt;put idnum sales_date : mmddyy 10.;&lt;BR /&gt;run;&lt;BR /&gt;C. libname perm 'SAS-data-library';&lt;BR /&gt;data_null_;&lt;BR /&gt;set perm.jan_sales;&lt;BR /&gt;put idnum sales_date : mmddyy 10. dlm = ',';&lt;BR /&gt;run;&lt;BR /&gt;D. libname perm 'SAS-data-library';&lt;BR /&gt;data_null_;&lt;BR /&gt;set perm.jan_sales;&lt;BR /&gt;put idnum sales_date : mmddyy 10. dsd = ',';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ans – B&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 17:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252438#M47903</guid>
      <dc:creator>Bulleride</dc:creator>
      <dc:date>2016-02-25T17:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252445#M47909</link>
      <description>&lt;P&gt;None.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To write to a file you need&amp;nbsp;&lt;SPAN&gt;a DATA step with a FILE statement and a PUT statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So they are all wrong.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;C and D are wrong for that plus that DSD and DLM are not&amp;nbsp;specification parameter of the put statment but the File statments.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;After that you need to be aware of the differeance between DLM and DSD and which will let you have the delimiter you specify.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.ciser.cornell.edu/FAQ/SAS/write_delimited_file.shtml" target="_self"&gt;Writing a SAS Dataset To a Text File&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this questions is&amp;nbsp;copied wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 17:37:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252445#M47909</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-02-25T17:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252452#M47914</link>
      <description>Thanks a lot Zaki &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 25 Feb 2016 17:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252452#M47914</guid>
      <dc:creator>Bulleride</dc:creator>
      <dc:date>2016-02-25T17:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252460#M47920</link>
      <description>&lt;P&gt;None of the four options is correct. The correct one should be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data _null_;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; set Jan_sales;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt; file "E:\SAS\Jan_sales.txt" dlm=",";&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; put idnum sales_date:mmddyy10.;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 18:13:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252460#M47920</guid>
      <dc:creator>lxn1021</dc:creator>
      <dc:date>2016-02-25T18:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252485#M47939</link>
      <description>Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; This helps me.</description>
      <pubDate>Thu, 25 Feb 2016 18:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-files/m-p/252485#M47939</guid>
      <dc:creator>Bulleride</dc:creator>
      <dc:date>2016-02-25T18:58:16Z</dc:date>
    </item>
  </channel>
</rss>

