<?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: Printing var name &amp;amp; label w Proc Print in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284692#M16350</link>
    <description>Hi:&lt;BR /&gt;A PROC PRINT on 1743 variables is going to be VERY, VERY wide output. What is your destination of interest. This is going to be too wide for the LISTING window and PDF and RTF outputs will both "wrap" if you are going to use ODS. It is likely that ODS HTML is going to be the only destination to handle this many variables on a report.&lt;BR /&gt;&lt;BR /&gt;(My .02)&lt;BR /&gt;cynthia</description>
    <pubDate>Thu, 14 Jul 2016 21:18:58 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2016-07-14T21:18:58Z</dc:date>
    <item>
      <title>Printing var name &amp; label w Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284231#M16341</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;Is it possible to print variable names and labels at the same time in Proc Print? I have lots and lots of variables to print.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Thu, 14 Jul 2016 01:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284231#M16341</guid>
      <dc:creator>Joycecp</dc:creator>
      <dc:date>2016-07-14T01:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Printing var name &amp; label w Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284244#M16342</link>
      <description>&lt;P&gt;Refer to this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Displaying_Variable_Names_and_Labels_in_Procedure_Output" target="_blank"&gt;http://www.sascommunity.org/wiki/Displaying_Variable_Names_and_Labels_in_Procedure_Output&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 04:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284244#M16342</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-07-14T04:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Printing var name &amp; label w Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284392#M16346</link>
      <description>&lt;P&gt;Does&amp;nbsp;this solution requires that I name every variable?&amp;nbsp; Or is the "name" in your example a dictionary lookup keyword?&amp;nbsp; ie How do I get this to work on all my variables in the dataset (1743 of them).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Joyce&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 17:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284392#M16346</guid>
      <dc:creator>Joycecp</dc:creator>
      <dc:date>2016-07-14T17:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Printing var name &amp; label w Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284611#M16347</link>
      <description>&lt;P&gt;"Name" and "Label" are variables in the dictionary.columns table.&lt;/P&gt;
&lt;P&gt;Note the the Libname and Memname are all uppercase in the dictionary table. If you use Libname='Work' it fails as the libname is "WORK" in the table.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 18:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284611#M16347</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-14T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Printing var name &amp; label w Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284692#M16350</link>
      <description>Hi:&lt;BR /&gt;A PROC PRINT on 1743 variables is going to be VERY, VERY wide output. What is your destination of interest. This is going to be too wide for the LISTING window and PDF and RTF outputs will both "wrap" if you are going to use ODS. It is likely that ODS HTML is going to be the only destination to handle this many variables on a report.&lt;BR /&gt;&lt;BR /&gt;(My .02)&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 14 Jul 2016 21:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284692#M16350</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-07-14T21:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Printing var name &amp; label w Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284736#M16351</link>
      <description>&lt;P&gt;It is not necessary that all variables in dataset should have label. This solution would print label if available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the below table, provide libname and table to the macro variables and rest of the code should work itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let _libname=;&lt;BR /&gt;%let _table=;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;BR /&gt;select catt( name,'=',quote( catt(label,' (',name,')') ) )&lt;BR /&gt;into : embed_names_into_labels separated by ' '&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where libname="&amp;amp;_libname" and memname="&amp;amp;_table" and not missing(label);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But above reply has a point that saying why do you need such a wide report.&lt;/P&gt;&lt;P&gt;data temp / view = temp;&lt;BR /&gt;set &amp;amp;_libname..&amp;amp;_table;&lt;BR /&gt;label &amp;amp;embed_names_into_labels;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=temp label; run;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 03:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/284736#M16351</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-07-15T03:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Printing var name &amp; label w Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/285091#M16367</link>
      <description>Yes. That would be a hard output to use! I am printing groups of variables. Similar to survey the data is gathered from into an excel spreadsheet; not all at one time! It's formatted and grouped as the survey. Thank you!</description>
      <pubDate>Sun, 17 Jul 2016 05:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/285091#M16367</guid>
      <dc:creator>Joycecp</dc:creator>
      <dc:date>2016-07-17T05:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Printing var name &amp; label w Proc Print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/789570#M25554</link>
      <description>Hi - does this solution still exist? The link doesn't appear to go anywhere, and I was hoping to use it as a resource.</description>
      <pubDate>Tue, 11 Jan 2022 19:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-var-name-amp-label-w-Proc-Print/m-p/789570#M25554</guid>
      <dc:creator>jeanderson</dc:creator>
      <dc:date>2022-01-11T19:16:03Z</dc:date>
    </item>
  </channel>
</rss>

