<?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 FREQ - make robust crosstab with different number of vars in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-make-robust-crosstab-with-different-number-of-vars/m-p/61345#M17430</link>
    <description>You might also be able to use automatic variables as in&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=SASHELP.CLASS; &lt;BR /&gt;
  table _numeric_;&lt;BR /&gt;
run;</description>
    <pubDate>Thu, 13 Jan 2011 22:31:17 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2011-01-13T22:31:17Z</dc:date>
    <item>
      <title>Proc FREQ - make robust crosstab with different number of vars</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-make-robust-crosstab-with-different-number-of-vars/m-p/61342#M17427</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to avoid "ERROR: Variable [ ] not found" when requesting a crosstab with Proc Freq?  I have to process files with different variables with the same macro code.  Sometimes all crosstab vars are present, sometimes 1 is missing.&lt;BR /&gt;
&lt;BR /&gt;
I could request every possible combination - but was looking for something a bit more sleek.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Tue, 11 Jan 2011 15:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-make-robust-crosstab-with-different-number-of-vars/m-p/61342#M17427</guid>
      <dc:creator>anjgupta</dc:creator>
      <dc:date>2011-01-11T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FREQ - make robust crosstab with different number of vars</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-make-robust-crosstab-with-different-number-of-vars/m-p/61343#M17428</link>
      <description>Hi:&lt;BR /&gt;
  Since you are already using a macro program, I'd recommend that you investigate the use of DICTIONARY tables or their SASHELP equivalents. There have been MANY previous forum postings on the use of DICTIONARY tables to select variables (and tables) for processing and many MORE user-group papers on the topic.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
 &lt;BR /&gt;
To get you started:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
                       &lt;BR /&gt;
options nocenter ls=175 nodate nonumber;&lt;BR /&gt;
                  &lt;BR /&gt;
title 'SQL uses DICTIONARY.COLUMNS';&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  select libname, memname, name, type, format, label&lt;BR /&gt;
  from dictionary.columns&lt;BR /&gt;
  where (libname = 'SASHELP' and memname = 'PRDSALE');&lt;BR /&gt;
quit;&lt;BR /&gt;
                          &lt;BR /&gt;
title 'PROC PRINT uses SASHELP.VCOLUMN';&lt;BR /&gt;
proc print data=sashelp.vcolumn noobs;&lt;BR /&gt;
  where (libname = 'SASHELP' and memname = 'PRDSALE');&lt;BR /&gt;
  var libname memname name type format label;&lt;BR /&gt;
run;&lt;BR /&gt;
                &lt;BR /&gt;
title;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 11 Jan 2011 15:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-make-robust-crosstab-with-different-number-of-vars/m-p/61343#M17428</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-01-11T15:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FREQ - make robust crosstab with different number of vars</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-make-robust-crosstab-with-different-number-of-vars/m-p/61344#M17429</link>
      <description>Thank you.  I'm not familiar with those functions but will research!</description>
      <pubDate>Tue, 11 Jan 2011 16:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-make-robust-crosstab-with-different-number-of-vars/m-p/61344#M17429</guid>
      <dc:creator>anjgupta</dc:creator>
      <dc:date>2011-01-11T16:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FREQ - make robust crosstab with different number of vars</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-make-robust-crosstab-with-different-number-of-vars/m-p/61345#M17430</link>
      <description>You might also be able to use automatic variables as in&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=SASHELP.CLASS; &lt;BR /&gt;
  table _numeric_;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 13 Jan 2011 22:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FREQ-make-robust-crosstab-with-different-number-of-vars/m-p/61345#M17430</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2011-01-13T22:31:17Z</dc:date>
    </item>
  </channel>
</rss>

