<?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: PROC PRINT showing only part of data, when used with VARTYPE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-showing-only-part-of-data-when-used-with-VARTYPE/m-p/482163#M124836</link>
    <description>&lt;P&gt;Neither I, now the PROC PRINT SAS Documentation has heard of a VARTYPE Statement in PROC PRINT. What does your log say? When I run this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class;
   vartype sex;
   sum height;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;my log gives me the&amp;nbsp;warning: &lt;STRONG&gt;"WARNING 1-322: Assuming the symbol VAR was misspelled as vartype."&lt;/STRONG&gt;. I suspect this is also the case here, so use the VAR Statement instead.&lt;/P&gt;</description>
    <pubDate>Sat, 28 Jul 2018 10:26:46 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-07-28T10:26:46Z</dc:date>
    <item>
      <title>PROC PRINT showing only part of data, when used with VARTYPE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-showing-only-part-of-data-when-used-with-VARTYPE/m-p/482160#M124833</link>
      <description>&lt;P&gt;Hi, a simple program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data pets;
	input breed $ type $ number;
	datatlines;
	York A 3
	GR A 4
	York B 38
	Puddle A 2
	;
RUN;


proc print data = pets;
vartype breed;
sum number;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;two questions:&lt;/P&gt;&lt;P&gt;1. proc print only displays SOME variables, below is the output (see the difference). When I erase the line with VARTYPE, displays all variables.&lt;/P&gt;&lt;P&gt;- output&amp;nbsp;when VARTYPE used in proc print&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;York&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;GR&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;York&lt;/TD&gt;&lt;TD&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Puddle&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- output&amp;nbsp;when VARTYPE&amp;nbsp;not used in proc print&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;York&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;GR&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;York&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Puddle&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. What does VARTYPE do? I know this would display the 'type' of variable breed, as a character, but what meaning does it have, when declared&amp;nbsp;inside PROC PRINT? so far, from the output, there is no information on the type of variable 'breed'. (as you can see from the table (output) above)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jul 2018 09:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-showing-only-part-of-data-when-used-with-VARTYPE/m-p/482160#M124833</guid>
      <dc:creator>jimmychoi</dc:creator>
      <dc:date>2018-07-28T09:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT showing only part of data, when used with VARTYPE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-showing-only-part-of-data-when-used-with-VARTYPE/m-p/482163#M124836</link>
      <description>&lt;P&gt;Neither I, now the PROC PRINT SAS Documentation has heard of a VARTYPE Statement in PROC PRINT. What does your log say? When I run this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.class;
   vartype sex;
   sum height;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;my log gives me the&amp;nbsp;warning: &lt;STRONG&gt;"WARNING 1-322: Assuming the symbol VAR was misspelled as vartype."&lt;/STRONG&gt;. I suspect this is also the case here, so use the VAR Statement instead.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jul 2018 10:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-showing-only-part-of-data-when-used-with-VARTYPE/m-p/482163#M124836</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-28T10:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT showing only part of data, when used with VARTYPE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-showing-only-part-of-data-when-used-with-VARTYPE/m-p/482172#M124844</link>
      <description>Thanks, draycut.&lt;BR /&gt;I think it is var type breed, instead of vartype bread.&lt;BR /&gt;You have enlightened me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sat, 28 Jul 2018 12:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-showing-only-part-of-data-when-used-with-VARTYPE/m-p/482172#M124844</guid>
      <dc:creator>jimmychoi</dc:creator>
      <dc:date>2018-07-28T12:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT showing only part of data, when used with VARTYPE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-showing-only-part-of-data-when-used-with-VARTYPE/m-p/482178#M124846</link>
      <description>&lt;P&gt;Glad to be at service &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jul 2018 14:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-PRINT-showing-only-part-of-data-when-used-with-VARTYPE/m-p/482178#M124846</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-28T14:19:06Z</dc:date>
    </item>
  </channel>
</rss>

