<?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 proc contents using NO ODS and justifying all proc contents to the left. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482381#M124932</link>
    <description>&lt;P&gt;&lt;STRONG&gt;THIS HERE WORKED !!!!! &amp;nbsp; YAYE!!!! &amp;nbsp;&amp;nbsp; Thanks for the idea and start... you were very helpful!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* export the variable names and their position number into a data set called "data_info";&lt;BR /&gt;proc contents&lt;BR /&gt;data = maosim.case6apre_6bpost_mgf&lt;BR /&gt;noprint&lt;BR /&gt;out = data_info&lt;BR /&gt;(keep = name varnum);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;* sort "data_info" by "varnum";&lt;BR /&gt;* export the sorted data set with the name "variable_names", and keep just the "name" column;&lt;BR /&gt;proc sort&lt;BR /&gt;data = data_info&lt;BR /&gt;out = variable_names(keep = name);&lt;BR /&gt;by varnum;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;* view the list of variables;&lt;BR /&gt;&lt;FONT color="#993300"&gt;options linesize=132 pagesize=60 nocenter date;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;proc print&lt;BR /&gt;data = variable_names&lt;BR /&gt;noobs ;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2018 07:21:06 GMT</pubDate>
    <dc:creator>mgrzyb</dc:creator>
    <dc:date>2018-07-30T07:21:06Z</dc:date>
    <item>
      <title>printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482376#M124927</link>
      <description>&lt;P&gt;Hi. I have this code where I print out only the variable names.&amp;nbsp; I saw all the discussions on left justification, but they all require ODS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way USING NO ODS to justify to the left the var names in the last proc statement?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;* export the variable names and their position number into a data set called "data_info";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;proc&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;contents&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = maosim.case_5_pre_and_post_mgnew&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noprint&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = data_info&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;(keep = name &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;varnum&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;* sort "data_info" by "varnum";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;* export the sorted data set with the name "variable_names", and keep just the "name" column;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;proc&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;sort&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = data_info&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = variable_names(keep = name);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; varnum;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;* view the list of variables;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;proc&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = variable_names &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noobs&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 06:56:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482376#M124927</guid>
      <dc:creator>mgrzyb</dc:creator>
      <dc:date>2018-07-30T06:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482377#M124928</link>
      <description>have you tried:&lt;BR /&gt;OPTIONS NOCENTER;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2018 07:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482377#M124928</guid>
      <dc:creator>MichaelLarsen</dc:creator>
      <dc:date>2018-07-30T07:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482379#M124930</link>
      <description>&lt;P&gt;I tried this and it did not work.&amp;nbsp; Perhaps I have placed the options in the wrong statement ----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* export the variable names and their position number into a data set called "data_info";&lt;BR /&gt;proc contents&lt;BR /&gt;data = maosim.case6apre_6bpost_mgf&lt;BR /&gt;noprint&lt;BR /&gt;out = data_info&lt;BR /&gt;(keep = name varnum);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;* sort "data_info" by "varnum";&lt;BR /&gt;* export the sorted data set with the name "variable_names", and keep just the "name" column;&lt;BR /&gt;proc sort&lt;BR /&gt;data = data_info&lt;BR /&gt;out = variable_names(keep = name);&lt;BR /&gt;by varnum;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;* view the list of variables;&lt;BR /&gt;&lt;FONT color="#993300"&gt;proc print OPTIONS NOCENTER&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;data = variable_names &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;noobs ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 07:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482379#M124930</guid>
      <dc:creator>mgrzyb</dc:creator>
      <dc:date>2018-07-30T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482380#M124931</link>
      <description>it is:&lt;BR /&gt;OPTIONS NOCENTER;&lt;BR /&gt;PROC PRINT ......</description>
      <pubDate>Mon, 30 Jul 2018 07:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482380#M124931</guid>
      <dc:creator>MichaelLarsen</dc:creator>
      <dc:date>2018-07-30T07:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482381#M124932</link>
      <description>&lt;P&gt;&lt;STRONG&gt;THIS HERE WORKED !!!!! &amp;nbsp; YAYE!!!! &amp;nbsp;&amp;nbsp; Thanks for the idea and start... you were very helpful!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* export the variable names and their position number into a data set called "data_info";&lt;BR /&gt;proc contents&lt;BR /&gt;data = maosim.case6apre_6bpost_mgf&lt;BR /&gt;noprint&lt;BR /&gt;out = data_info&lt;BR /&gt;(keep = name varnum);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;* sort "data_info" by "varnum";&lt;BR /&gt;* export the sorted data set with the name "variable_names", and keep just the "name" column;&lt;BR /&gt;proc sort&lt;BR /&gt;data = data_info&lt;BR /&gt;out = variable_names(keep = name);&lt;BR /&gt;by varnum;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;* view the list of variables;&lt;BR /&gt;&lt;FONT color="#993300"&gt;options linesize=132 pagesize=60 nocenter date;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;proc print&lt;BR /&gt;data = variable_names&lt;BR /&gt;noobs ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 07:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482381#M124932</guid>
      <dc:creator>mgrzyb</dc:creator>
      <dc:date>2018-07-30T07:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482382#M124933</link>
      <description>&lt;P&gt;Its a good idea to mark the person who provided you the solution's post as the answer, not your own response.&lt;/P&gt;
&lt;P&gt;Anyways, that code is not needed, you can simply (please note the use of the code window, its the {i} above the post are):&lt;/P&gt;
&lt;PRE&gt;options nocenter;&lt;BR /&gt;&lt;BR /&gt;proc print data=sashelp.vcolumn noobs;&lt;BR /&gt;  where libname="MAOSIM" and memname="CASE6APRE_6BPOST_MGF";&lt;BR /&gt;run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jul 2018 07:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482382#M124933</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-07-30T07:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482384#M124935</link>
      <description>I am sorry, who should I give graditude to? I thought I gave it to you? I thank you very much!&lt;BR /&gt;What can I do to correct this? I accepted yours as the solution.</description>
      <pubDate>Mon, 30 Jul 2018 07:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482384#M124935</guid>
      <dc:creator>mgrzyb</dc:creator>
      <dc:date>2018-07-30T07:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482385#M124936</link>
      <description>I thought I gave KUDOS TO YOU!!! I accepted yours as the solution. Please don't be angry!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jul 2018 07:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482385#M124936</guid>
      <dc:creator>mgrzyb</dc:creator>
      <dc:date>2018-07-30T07:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482386#M124937</link>
      <description>&lt;P&gt;I am not, just mark the poster who provided the solution, in this case&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/24960"&gt;@MichaelLarsen&lt;/a&gt;, as the correct answer.&amp;nbsp; Just to note for future as I don't think you can change it now.&amp;nbsp; Never actually seen that kudos and what not thing, just want the actual answer to appear below the question, makes future searches easier.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 07:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482386#M124937</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-07-30T07:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482389#M124938</link>
      <description>&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;I can not find your email to apologize.&amp;nbsp; I really did not know the rules for accepting a solution.&amp;nbsp; Thank you for informing me. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should there be as SAS COMMUNITY RULE documents?&amp;nbsp; I am not greedy and I thought I gave credit to you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the SAS community accepts our mistakes are we not SAS experts per se, and don't know the rules.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought everyone was suppose to be kind and open instead of critical.&amp;nbsp; But I have learned. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marysia&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 08:04:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482389#M124938</guid>
      <dc:creator>mgrzyb</dc:creator>
      <dc:date>2018-07-30T08:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482394#M124942</link>
      <description>&lt;P&gt;No problem at all&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like RW9 says, if the actual solution is marked, it is easier for others having a similar problem to find the solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not about personal glory&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 08:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482394#M124942</guid>
      <dc:creator>MichaelLarsen</dc:creator>
      <dc:date>2018-07-30T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: printing proc contents using NO ODS and justifying all proc contents to the left.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482396#M124943</link>
      <description>&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;I can not find your email to apologize.&amp;nbsp; I really did not know the rules for accepting a solution.&amp;nbsp; Thank you for informing me. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should there be as SAS COMMUNITY RULE documents?&amp;nbsp; I am not greedy and I thought I gave credit to you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the SAS community accepts our mistakes are we not SAS experts per se, and don't know the rules.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought everyone was suppose to be kind and open instead of critical.&amp;nbsp; But I have learned. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for the solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 08:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/printing-proc-contents-using-NO-ODS-and-justifying-all-proc/m-p/482396#M124943</guid>
      <dc:creator>mgrzyb</dc:creator>
      <dc:date>2018-07-30T08:47:26Z</dc:date>
    </item>
  </channel>
</rss>

