<?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: ODS Excel, Left and Top Justify Output in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/653553#M22526</link>
    <description>That justify left, j=l also works nicely with both titles and footnotes with PROC PRINT  inside an ODS Excel in SAS 9.4 wrapper.</description>
    <pubDate>Fri, 05 Jun 2020 10:19:56 GMT</pubDate>
    <dc:creator>ptimusk</dc:creator>
    <dc:date>2020-06-05T10:19:56Z</dc:date>
    <item>
      <title>ODS Excel, Left and Top Justify Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583334#M13956</link>
      <description>&lt;P&gt;I am trying to left and top justify the Excel output but am not sure what options/code would do it. Any suggestions on what to add to this code? Bonus points if there is a way to suppress the output/results window and just dump this all right to Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file= "path to file here.xlsx"
options(
sheet_interval="none"
sheet_name="&amp;amp;sysdate."
frozen_headers="1"
autofilter='on'
);

proc report data=sample_dataset;
title "Your Title Here";

run;

ods excel close;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583334#M13956</guid>
      <dc:creator>PSU_Sudzi</dc:creator>
      <dc:date>2019-08-22T20:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, Left and Top Justify Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583352#M13961</link>
      <description>&lt;P&gt;No idea how to get the top alignment portion. You may need to use STYLE statements within PROC REPORT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you want the title in the header or in the worksheet itself?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*closes all other output destinations - you will need to reopen them;
ods _all_ close;

*opens excel output;
ods excel file= "/home/fkhurshed/Demo1/delete1.xlsx"
options(
sheet_interval="none"
sheet_name="&amp;amp;sysdate."
frozen_headers="1"
autofilter='on'
embedded_titles='yes'
);

proc report data=sashelp.class;
title j=l "Your Title Here";

run;

ods excel close;


*opens destination again - choose the ones you need;
ods html;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277648"&gt;@PSU_Sudzi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to left and top justify the Excel output but am not sure what options/code would do it. Any suggestions on what to add to this code? Bonus points if there is a way to suppress the output/results window and just dump this all right to Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file= "path to file here.xlsx"
options(
sheet_interval="none"
sheet_name="&amp;amp;sysdate."
frozen_headers="1"
autofilter='on'
);

proc report data=sample_dataset;
title "Your Title Here";

run;

ods excel close;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 22:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583352#M13961</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-22T22:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, Left and Top Justify Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583364#M13962</link>
      <description>&lt;P&gt;Thanks Reeza! If I could get the title to print across the top row of the Excel that would be cool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the 'title j=l' only align the title left or the whole excel file, column headers and values, that's what I'm looking to do?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 23:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583364#M13962</guid>
      <dc:creator>PSU_Sudzi</dc:creator>
      <dc:date>2019-08-22T23:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, Left and Top Justify Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583388#M13963</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277648"&gt;@PSU_Sudzi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks Reeza! If I could get the title to print across the top row of the Excel that would be cool.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the 'title j=l' only align the title left or the whole excel file, column headers and values, that's what I'm looking to do?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Only the title is aligned left. Adding &lt;FONT face="courier new,courier"&gt;EMBEDDED_TITLES="yes"&lt;/FONT&gt; to your ods-options should place the title where you want it.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I am trying to left and top justify the Excel output&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not sure that i understand what you need. Should all rows be left/top justified? Try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.class style(column header)=[textalign=left verticalalign=top];
title "Your Title Here";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Aug 2019 04:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583388#M13963</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-08-23T04:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, Left and Top Justify Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583510#M13979</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277648"&gt;@PSU_Sudzi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks Reeza! If I could get the title to print across the top row of the Excel that would be cool.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the 'title j=l' only align the title left or the whole excel file, column headers and values, that's what I'm looking to do?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You'll need to do that via styles in PROC REPORT then, or you can try just specifying the justification there as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 15:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583510#M13979</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-23T15:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, Left and Top Justify Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583548#M13980</link>
      <description>Hi:&lt;BR /&gt;  You may not need a style template change. There is also a TITLE_FOOTNOTE_WIDTH suboption that controls the number of columns that titles and footnotes should span. You can find out about that suboption and the other valid suboptions here: &lt;A href="https://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt; in the documentation.&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 23 Aug 2019 16:38:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583548#M13980</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-08-23T16:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, Left and Top Justify Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583552#M13982</link>
      <description>&lt;P&gt;Thank you Andreas_lds. What I am looking for is to have all of the values/text in the cells align to the left and top of the cell, as well as the headers. I think by default when you send something to Excel it seems to align the cell text/values to the right and bottom. Basically I'm trying to use ODS to customize my output into Excel so I no longer need to open the file and apply filters, alignments, etc. by hand. I will try your suggestion also when I am back in the office on Monday.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 17:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583552#M13982</guid>
      <dc:creator>PSU_Sudzi</dc:creator>
      <dc:date>2019-08-23T17:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, Left and Top Justify Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583553#M13983</link>
      <description>&lt;P&gt;Thank you Cynthia, I will review this when I am back in the office on Monday.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 17:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583553#M13983</guid>
      <dc:creator>PSU_Sudzi</dc:creator>
      <dc:date>2019-08-23T17:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, Left and Top Justify Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583967#M14061</link>
      <description>These have all been great tips and I am able to get the output I'm looking for, thank you all!!!</description>
      <pubDate>Mon, 26 Aug 2019 15:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/583967#M14061</guid>
      <dc:creator>PSU_Sudzi</dc:creator>
      <dc:date>2019-08-26T15:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel, Left and Top Justify Output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/653553#M22526</link>
      <description>That justify left, j=l also works nicely with both titles and footnotes with PROC PRINT  inside an ODS Excel in SAS 9.4 wrapper.</description>
      <pubDate>Fri, 05 Jun 2020 10:19:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Excel-Left-and-Top-Justify-Output/m-p/653553#M22526</guid>
      <dc:creator>ptimusk</dc:creator>
      <dc:date>2020-06-05T10:19:56Z</dc:date>
    </item>
  </channel>
</rss>

