<?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 NOPRINT and ODS in PROC CONTENTS?! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840835#M332460</link>
    <description>Thanks, How to do with Proc SQL Dictionary.columns?!</description>
    <pubDate>Wed, 26 Oct 2022 12:01:17 GMT</pubDate>
    <dc:creator>hellohere</dc:creator>
    <dc:date>2022-10-26T12:01:17Z</dc:date>
    <item>
      <title>How to NOPRINT and ODS in PROC CONTENTS?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840812#M332448</link>
      <description>&lt;P&gt;I need save out dataset info with ODS/PROC CONTENTS, but do not like the flush over in "Results Viewer"[it will choke up the window].&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to do it?! Thanks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
169526      proc contents data=sashelp.baseball ;
169527         ods output Variables=_cont_tgt;
169528      run;

NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.04 seconds
      cpu time            0.04 seconds

NOTE: The data set WORK._CONT_TGT has 24 observations and 7 variables.

169529      proc contents data=sashelp.baseball noprint;
169530         ods output Variables=_cont_tgt;
169531      run;

NOTE: PROCEDURE CONTENTS used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

WARNING: Output 'Variables' was not created.  Make sure that the output object name, label, or path is spelled correctly.  Also, verify
         that the appropriate procedure options are used to produce the requested output object.  For example, verify that the NOPRINT
         option is not used.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Oct 2022 11:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840812#M332448</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-10-26T11:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to NOPRINT and ODS in PROC CONTENTS?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840814#M332449</link>
      <description>&lt;P&gt;As the error message says, if you use NOPRINT you can't get the ODS OUTPUT to work. Instead, you need to close the output destination. or exclude output from being written.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods exclude all;
proc contents data=sashelp.baseball;
ods output Variables=_cont_tgt;
run;
ods exclude none;&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;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
proc contents data=sashelp.baseball;
ods output Variables=_cont_tgt;
run;
ods html; /* If you want more output later, you need to turn on the destination, which could be html or listing or pdf or excel or other */&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Oct 2022 11:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840814#M332449</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-26T11:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to NOPRINT and ODS in PROC CONTENTS?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840826#M332454</link>
      <description>&lt;P&gt;Depending on what you want in the data set you might be better off looking at the SASHELP.VCOLUMN, or with Proc SQL Dictionary.columns&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data _cont_tgt;
   set sashelp.vcolumns;
   where libname='SASHELP' and memname='BASEBALL' and memtype='DATA';
run;&lt;/PRE&gt;
&lt;P&gt;Sashelp.vcolumns is a view SAS maintains of all the data set and views variables for all the currently defined libraries.&lt;/P&gt;
&lt;P&gt;The libname, memname (set name) and memtype&amp;nbsp; are stored in uppercase so you select that.&lt;/P&gt;
&lt;P&gt;There may be more variables in the result than you actually need. Keep the ones you want.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 11:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840826#M332454</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-26T11:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to NOPRINT and ODS in PROC CONTENTS?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840835#M332460</link>
      <description>Thanks, How to do with Proc SQL Dictionary.columns?!</description>
      <pubDate>Wed, 26 Oct 2022 12:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840835#M332460</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2022-10-26T12:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to NOPRINT and ODS in PROC CONTENTS?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840855#M332469</link>
      <description>&lt;P&gt;Just skip the ODS and use the normal way to output the data.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=sashelp.baseball  noprint out=_cont_tgt;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Which has the extra bonus of being a dataset that is designed to actually contain DATA instead of one that is just side effect of the printed output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 12:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-NOPRINT-and-ODS-in-PROC-CONTENTS/m-p/840855#M332469</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-10-26T12:42:29Z</dc:date>
    </item>
  </channel>
</rss>

