<?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 How to print simply Var names in the log window and Output window? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25907#M4555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many possibilities.&amp;nbsp; You could use %put statements to print names to the log and, to print them in the output window, create a file and use proc print to print it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The names can be easily obtained using proc sql.&amp;nbsp; e.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname="SASHELP" and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memname="CLASS"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into :varnames separated by ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname="SASHELP" and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memname="CLASS"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;varnames.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Jan 2012 21:12:43 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-01-07T21:12:43Z</dc:date>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25906#M4554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have a null dataset with 10 variables; i want to print only name of the varibales in log window and also output window.how can we do this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 20:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25906#M4554</guid>
      <dc:creator>john83</dc:creator>
      <dc:date>2012-01-07T20:52:47Z</dc:date>
    </item>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25907#M4555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many possibilities.&amp;nbsp; You could use %put statements to print names to the log and, to print them in the output window, create a file and use proc print to print it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The names can be easily obtained using proc sql.&amp;nbsp; e.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname="SASHELP" and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memname="CLASS"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into :varnames separated by ' '&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname="SASHELP" and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memname="CLASS"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=want;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;varnames.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2012 21:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25907#M4555</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-07T21:12:43Z</dc:date>
    </item>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25908#M4556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;This DATA _NULL_ step will print the variable names for the SASHELP.CLASS dataset to the SAS log and to the output window at the same time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data _null_;
&amp;nbsp;&amp;nbsp; set sashelp.vcolumn end=EOF;
&amp;nbsp;&amp;nbsp; where libname='SASHELP' and memname='CLASS';
&amp;nbsp;&amp;nbsp; file print;
&amp;nbsp;&amp;nbsp; putlog Name @@;
&amp;nbsp;&amp;nbsp; put Name @@;
run;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 02:38:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25908#M4556</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2012-01-08T02:38:51Z</dc:date>
    </item>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25909#M4557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SASjedi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would you please explain why you used "end=EOF" in your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 05:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25909#M4557</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-01-08T05:05:52Z</dc:date>
    </item>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25910#M4558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linlin,&amp;nbsp; I'm not SASJedi, but think I can answer your question.&amp;nbsp; Since the proposed code was designed to print variable names to both the output window, and log, it wouldn't make much sense to repeatedly print them for every record.&amp;nbsp; I would have included obs=1 as the way to do that, and my guess is that SASJedi intended to wrap the put and putlog statements with an if EOF then do; .. end; set of statements.&amp;nbsp; Not very efficient, since it would require reading all of the records, but would have accomplished the desired task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 14:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25910#M4558</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-08T14:52:39Z</dc:date>
    </item>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25911#M4559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Art!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It did not work if I add "if EOF then do ... end" to SASjedi's code.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set sashelp.vcolumn end=EOF;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where libname='SASHELP' and memname='CLASS';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if eof then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; file print;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; putlog Name @@;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put Name @@;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 23:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25911#M4559</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-01-08T23:18:22Z</dc:date>
    </item>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25912#M4560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works when I run it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 23:24:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25912#M4560</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-08T23:24:59Z</dc:date>
    </item>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25913#M4561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post the code with "if eof then ....do" ?&amp;nbsp;&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2012 23:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25913#M4561</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-01-08T23:28:58Z</dc:date>
    </item>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25914#M4562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used your code using 9.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 00:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25914#M4562</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-09T00:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25915#M4563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 9.3.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my log file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;180&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;181&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.vcolumn end=EOF;&lt;/P&gt;&lt;P&gt;182&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname='SASHELP' and memname='CLASS';&lt;/P&gt;&lt;P&gt;183&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if eof then do;&lt;/P&gt;&lt;P&gt;184&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file print;&lt;/P&gt;&lt;P&gt;185&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; putlog Name @@;&lt;/P&gt;&lt;P&gt;186&amp;nbsp;&amp;nbsp;&amp;nbsp; put Name @@;&lt;/P&gt;&lt;P&gt;187&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;188&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weight&lt;/P&gt;&lt;P&gt;NOTE: 1 lines were written to file PRINT.&lt;/P&gt;&lt;P&gt;NOTE: There were 5 observations read from the data set SASHELP.VCOLUMN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE (libname='SASHELP') and (memname='CLASS');&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.32 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.59 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 00:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25915#M4563</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-01-09T00:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25916#M4564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linlin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't get an error.&amp;nbsp; If you want all of the variable names, how about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set sashelp.vcolumn end=EOF;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where libname='SASHELP' and memname='CLASS';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length stuff_to_print $200;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; retain stuff_to_print;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; file print;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; stuff_to_print=catx(' ',stuff_to_print,name);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if eof then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; putlog stuff_to_print;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put stuff_to_print;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 01:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25916#M4564</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-09T01:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25917#M4565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 02:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25917#M4565</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-01-09T02:08:38Z</dc:date>
    </item>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25918#M4566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linlin, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end=EOF is not required for this code to work.&amp;nbsp; It was "left over" from some experimentation I did earlier on a different approach.&amp;nbsp; I was originally using an "accumulator" text variable and a do loop that appended each name to the variable until all the variable names had been read.&amp;nbsp; That approach turned out to be unnecessarily complex and restrictive.&amp;nbsp; The max size of a text variable is 32K, and because a variable name can be up to 32 characters long, and a dataset can easily have more than 1000 variables, I decided to abandon that approach.&amp;nbsp; Instead, I chose to directly print each value as it was read, using PUT and PUTLOG statements with @@ (double trailing @'s) to "hold the line" between iterations of the data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can remove the END=EOF from the code without adversely affecting the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stay SASy!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 02:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25918#M4566</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2012-01-09T02:50:01Z</dc:date>
    </item>
    <item>
      <title>How to print simply Var names in the log window and Output window?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25919#M4567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 03:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-print-simply-Var-names-in-the-log-window-and-Output/m-p/25919#M4567</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-01-09T03:25:22Z</dc:date>
    </item>
  </channel>
</rss>

