<?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 add a row at the top of the excel output file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-row-at-the-top-of-the-excel-output-file/m-p/873510#M345136</link>
    <description>&lt;P&gt;I need to add 1 line of text and a space row at the top of the excel output file.&lt;/P&gt;&lt;P&gt;so row 1 should be ' Email ' and row 2 should be blank . than i want the data to start.&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS EXCEL file="sasdata/customer/bibbn/output/IQPMBLStuck_05022023.xlsx" ;&lt;BR /&gt;title1 'Email Address (Required) email@gmail.com'.&lt;BR /&gt;TITLE2 '&amp;nbsp; ';&lt;/P&gt;&lt;P&gt;proc print data=TENANT3 noobs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ODS EXCEL CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it just says the file doesn't exist&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the file would open and look like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Email require: &lt;A href="mailto:email@gmail.com" target="_blank"&gt;email@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;blank row&lt;/P&gt;&lt;P&gt;id&amp;nbsp; number address city state ca zipcode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 01:12:36 GMT</pubDate>
    <dc:creator>bibbnd</dc:creator>
    <dc:date>2023-05-03T01:12:36Z</dc:date>
    <item>
      <title>How to add a row at the top of the excel output file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-row-at-the-top-of-the-excel-output-file/m-p/873510#M345136</link>
      <description>&lt;P&gt;I need to add 1 line of text and a space row at the top of the excel output file.&lt;/P&gt;&lt;P&gt;so row 1 should be ' Email ' and row 2 should be blank . than i want the data to start.&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS EXCEL file="sasdata/customer/bibbn/output/IQPMBLStuck_05022023.xlsx" ;&lt;BR /&gt;title1 'Email Address (Required) email@gmail.com'.&lt;BR /&gt;TITLE2 '&amp;nbsp; ';&lt;/P&gt;&lt;P&gt;proc print data=TENANT3 noobs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ODS EXCEL CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it just says the file doesn't exist&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the file would open and look like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Email require: &lt;A href="mailto:email@gmail.com" target="_blank"&gt;email@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;blank row&lt;/P&gt;&lt;P&gt;id&amp;nbsp; number address city state ca zipcode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 01:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-row-at-the-top-of-the-excel-output-file/m-p/873510#M345136</guid>
      <dc:creator>bibbnd</dc:creator>
      <dc:date>2023-05-03T01:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a row at the top of the excel output file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-row-at-the-top-of-the-excel-output-file/m-p/873540#M345157</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/149821"&gt;@bibbnd&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I need to add 1 line of text and a space row at the top of the excel output file.&lt;/P&gt;
&lt;P&gt;so row 1 should be ' Email ' and row 2 should be blank . than i want the data to start.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tried the following&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ODS EXCEL file="sasdata/customer/bibbn/output/IQPMBLStuck_05022023.xlsx" ;&lt;BR /&gt;title1 'Email Address (Required) email@gmail.com'.&lt;BR /&gt;TITLE2 '&amp;nbsp; ';&lt;/P&gt;
&lt;P&gt;proc print data=TENANT3 noobs;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ODS EXCEL CLOSE;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it just says the file doesn't exist&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so the file would open and look like :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Email require: &lt;A href="mailto:email@gmail.com" target="_blank" rel="noopener"&gt;email@gmail.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;blank row&lt;/P&gt;
&lt;P&gt;id&amp;nbsp; number address city state ca zipcode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So your problem is the PATH to the file likely doesn't exist. Best practice with SAS and files to always start with a Drive (in Windows) or disc mount point. Otherwise the path is relative to where SAS is executing which typically means looking for folders in the file system where the program is installed. Those subfolders typically won't exist and/or your IT department may have the program folders locked down so that you cannot write into them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint: when you get errors you should include the log with the information. That means copy the CODE and all the messages from the log, on the forum open a text box using the &amp;lt;/&amp;gt; icon above the message window and paste the text there. The text box is important because it preserves formatting of the diagnostic characters that SAS often provides.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect that your "file not found" includes some additional path information that precedes "sasdata/customer/bibbn/output/IQPMBLStuck_05022023.xlsx" .&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 06:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-row-at-the-top-of-the-excel-output-file/m-p/873540#M345157</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-03T06:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a row at the top of the excel output file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-row-at-the-top-of-the-excel-output-file/m-p/873548#M345162</link>
      <description>&lt;P&gt;Read the documentation for &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm" target="_self"&gt;ODS EXCEL&lt;/A&gt;. Especially Example 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS EXCEL file="R:/IQPMBLStuck_05022023.xlsx" 
options(embedded_titles="yes");
;
title1 'Email Address (Required) email@gmail.com';

proc print data=sashelp.class noobs;
run;

ODS EXCEL CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 07:27:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-a-row-at-the-top-of-the-excel-output-file/m-p/873548#M345162</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-05-03T07:27:29Z</dc:date>
    </item>
  </channel>
</rss>

