<?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 print and control vertical justify to Top in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-print-and-control-vertical-justify-to-Top/m-p/533093#M73809</link>
    <description>&lt;P&gt;You can override default style element by adding a style(location)={style elements go here} on the proc print statement.&lt;/P&gt;
&lt;P&gt;For instance&lt;/P&gt;
&lt;PRE&gt;proc print data=sashelp.class 
   style(data)={backgroundcolor=lightblue}
;
run;&lt;/PRE&gt;
&lt;P&gt;will have the body of the table (data) with a light blue background.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc print data=sashelp.class 
   style(header)={vjust=top}
   style(data)={vjust=top}
;
run;&lt;/PRE&gt;
&lt;P&gt;which might justify the text to the top of the header row and the body of the table. But Excel sometimes doesn't seem to like such things and may get interactions based on column widths.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 22:08:02 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-02-05T22:08:02Z</dc:date>
    <item>
      <title>Proc print and control vertical justify to Top</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-print-and-control-vertical-justify-to-Top/m-p/533087#M73806</link>
      <description>&lt;P&gt;I use an excel SAS add-in that let's me run SAS code.&amp;nbsp; I develop the code in SAS Studio.&amp;nbsp; The resulting dataset in the excel worksheet is bottom justified.&amp;nbsp; I would like it to be top justified.&amp;nbsp; Right and left look good and are per standard.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to define the justification as Top?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc print data=mydata;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Feb 2019 21:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-print-and-control-vertical-justify-to-Top/m-p/533087#M73806</guid>
      <dc:creator>yelkenli</dc:creator>
      <dc:date>2019-02-05T21:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc print and control vertical justify to Top</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-print-and-control-vertical-justify-to-Top/m-p/533093#M73809</link>
      <description>&lt;P&gt;You can override default style element by adding a style(location)={style elements go here} on the proc print statement.&lt;/P&gt;
&lt;P&gt;For instance&lt;/P&gt;
&lt;PRE&gt;proc print data=sashelp.class 
   style(data)={backgroundcolor=lightblue}
;
run;&lt;/PRE&gt;
&lt;P&gt;will have the body of the table (data) with a light blue background.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc print data=sashelp.class 
   style(header)={vjust=top}
   style(data)={vjust=top}
;
run;&lt;/PRE&gt;
&lt;P&gt;which might justify the text to the top of the header row and the body of the table. But Excel sometimes doesn't seem to like such things and may get interactions based on column widths.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 22:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-print-and-control-vertical-justify-to-Top/m-p/533093#M73809</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-05T22:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc print and control vertical justify to Top</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-print-and-control-vertical-justify-to-Top/m-p/533372#M73827</link>
      <description>&lt;P&gt;This did not work.&amp;nbsp; I also tried changing the excel default justification, and tried some different formats in the cells.&amp;nbsp; It seems the SAS proc print overwrites the cell justify styles, though not font and cell colors.&amp;nbsp; There is an option to use raw values only, but I have dollar and comma formats I do not want to lose.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, this is running SAS code in an excel add-in.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 19:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-print-and-control-vertical-justify-to-Top/m-p/533372#M73827</guid>
      <dc:creator>yelkenli</dc:creator>
      <dc:date>2019-02-06T19:48:14Z</dc:date>
    </item>
  </channel>
</rss>

