<?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: How to read a sas7bvew file? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/865244#M82607</link>
    <description>You can also run the following to see the tables referenced in the view.&lt;BR /&gt;Proc SQL feedback;&lt;BR /&gt;   select * from sasuser.all;&lt;BR /&gt;quit;</description>
    <pubDate>Mon, 20 Mar 2023 15:53:35 GMT</pubDate>
    <dc:creator>john_mccall</dc:creator>
    <dc:date>2023-03-20T15:53:35Z</dc:date>
    <item>
      <title>How to read a sas7bvew file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864424#M82588</link>
      <description>&lt;P&gt;Hello, I am reading page 293 of the Advanced Prep guide 4e. It uses a file called sasuser.all&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1678918905524.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81609i0FF057AB3A127B4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nietzsche_0-1678918905524.png" alt="Nietzsche_0-1678918905524.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but the file I downloaded from the books website is in sas7bvew.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_1-1678918968147.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81610i9C5BFB341513A917/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nietzsche_1-1678918968147.png" alt="Nietzsche_1-1678918968147.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;if I double click it, it would be downloaded as a text file with all gibberish like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_2-1678919008750.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81611iC8C93B27AE10523B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nietzsche_2-1678919008750.png" alt="Nietzsche_2-1678919008750.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I read this sas7bvew file in SAS studio?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 22:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864424#M82588</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2023-03-15T22:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a sas7bvew file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864425#M82589</link>
      <description>&lt;P&gt;This is a view, not a table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_036/engsas7bdat/p095ej3hnyskg7n1xdwmm71q6upf.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_036/engsas7bdat/p095ej3hnyskg7n1xdwmm71q6upf.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can access the code for a view using Describe in either proc sql or via data step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/56900007/is-it-possible-to-get-source-code-from-sas-view-table" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_036/engsas7bdat/n1hoqlgqac8laan1eia6ogp9u3ke.htm#p1jrxd1xz80qjin15mzio49qvgo2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 22:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864425#M82589</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-03-15T22:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a sas7bvew file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864427#M82590</link>
      <description>&lt;P&gt;okay, I described the view with proc sql.&lt;/P&gt;
&lt;P&gt;and I got&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1678919913559.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81612i032BD79EDB4FAF0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nietzsche_0-1678919913559.png" alt="Nietzsche_0-1678919913559.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can I turn it so that I can use it as a data set so that I can follow the original code used in the book?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 22:39:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864427#M82590</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2023-03-15T22:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a sas7bvew file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864433#M82591</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data = a.all;
&amp;lt; More statements&amp;gt;;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Mar 2023 22:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864433#M82591</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-03-15T22:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a sas7bvew file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864437#M82592</link>
      <description>&lt;P&gt;Sorry I don't understand.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc tabulate data = a.all;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;just gives me error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1678920889210.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81618i330E3F0CAFE39CA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nietzsche_0-1678920889210.png" alt="Nietzsche_0-1678920889210.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 22:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864437#M82592</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2023-03-15T22:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a sas7bvew file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864441#M82593</link>
      <description>&lt;P&gt;oh wait I think I got the idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I prpb have to create a new data set from the SQL code that's stored in the all.sas7bvew.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 23:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864441#M82593</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2023-03-15T23:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a sas7bvew file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864442#M82594</link>
      <description>&lt;P&gt;Okay, I found the solution. It is probably because I skipped the Proc SQL part of the book and when straight to Macro language part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note to myself or future readers of the book, to create the sasuser.all dataset used in the book, use the code below, and change the four tables to your own path (eg, &lt;EM&gt;a.SCHEDULE&lt;/EM&gt; to &lt;EM&gt;yourpath.SCHEDULE&lt;/EM&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
create table a.all2 as
select students.student_name, schedule.course_number, paid, courses.course_code, location, begin_date, teacher, 
 course_title, days, fee, student_company, city_state
           from a.SCHEDULE, a.STUDENTS, a.REGISTER, a.COURSES
where (schedule.course_code = courses.course_code) and (schedule.course_number = register.course_number) and 
 (students.student_name = register.student_name) 
 order by students.student_name asc, courses.course_code asc;
run;&lt;/PRE&gt;
&lt;P&gt;Table name can't be&lt;EM&gt; yourpath.all&lt;/EM&gt; because &lt;EM&gt;all.sas7bvew&lt;/EM&gt; already exist.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 23:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/864442#M82594</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2023-03-15T23:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a sas7bvew file?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/865244#M82607</link>
      <description>You can also run the following to see the tables referenced in the view.&lt;BR /&gt;Proc SQL feedback;&lt;BR /&gt;   select * from sasuser.all;&lt;BR /&gt;quit;</description>
      <pubDate>Mon, 20 Mar 2023 15:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-read-a-sas7bvew-file/m-p/865244#M82607</guid>
      <dc:creator>john_mccall</dc:creator>
      <dc:date>2023-03-20T15:53:35Z</dc:date>
    </item>
  </channel>
</rss>

