<?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 Creating text in sas and exporting it to the XL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733073#M21339</link>
    <description>&lt;P&gt;I created a couple of data sets in sas that export to excel. I need to create a description tab that describe my data sets. I was tying to find out a code sample for SAS, where I could put some text in that code and it would create a tab in XL file with that text in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 18:53:55 GMT</pubDate>
    <dc:creator>JaneS</dc:creator>
    <dc:date>2021-04-12T18:53:55Z</dc:date>
    <item>
      <title>Creating text in sas and exporting it to the XL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733073#M21339</link>
      <description>&lt;P&gt;I created a couple of data sets in sas that export to excel. I need to create a description tab that describe my data sets. I was tying to find out a code sample for SAS, where I could put some text in that code and it would create a tab in XL file with that text in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 18:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733073#M21339</guid>
      <dc:creator>JaneS</dc:creator>
      <dc:date>2021-04-12T18:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating text in sas and exporting it to the XL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733117#M21340</link>
      <description>&lt;P&gt;Pipe the results from SASHELP.VTABLE or VCOLUMNS to an excel file within and ODS EXCEL?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file = "/folders/myfolders/demo.xlsx" style=meadow;

proc print data=sashelp.vcolumn;
where libname = 'SASHELP' and memname = 'CLASS';
var libname memname name type length format;
run;

ods excel options(sheet_interval="NOW");

proc print data=sashelp.class;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Conceptually, I think you're looking for something like that. You can also use PROC ODSTEXT to pipe text directly to the report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/351071"&gt;@JaneS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I created a couple of data sets in sas that export to excel. I need to create a description tab that describe my data sets. I was tying to find out a code sample for SAS, where I could put some text in that code and it would create a tab in XL file with that text in it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 21:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733117#M21340</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-12T21:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating text in sas and exporting it to the XL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733132#M21341</link>
      <description>&lt;P&gt;Possibly just Proc Contents for the data sets of interest?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 22:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733132#M21341</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-12T22:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating text in sas and exporting it to the XL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733134#M21342</link>
      <description>Probably a better example! But I suspect they may also want the PROC ODSTEXT part based on this statement "where I could put some text in that code and it would create a tab in XL file with that text in it." &lt;BR /&gt;&lt;BR /&gt;But using a data set label or extra metadata on data sets could also be a good option.</description>
      <pubDate>Mon, 12 Apr 2021 22:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733134#M21342</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-12T22:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating text in sas and exporting it to the XL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733268#M21345</link>
      <description>&lt;P&gt;Assuming your datasets have labels, you could do something like this using sashelp.vtable (which is a table that exists behind-the-scenes, storing summary info about the datasets):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql noprint;&lt;BR /&gt;create table summary as&lt;BR /&gt;select unique memname, memlabel&lt;BR /&gt;from sashelp.vtable&lt;BR /&gt;where libname='MAPSGFK'&lt;BR /&gt;and memname in ('FRANCE' 'GERMANY' 'EGYPT');&lt;BR /&gt;quit; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title "Datasets in this spreadsheet";&lt;BR /&gt;proc print data=summary label noobs;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vtable.png" style="width: 550px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57470iBF2488355F1DE697/image-size/large?v=v2&amp;amp;px=999" role="button" title="vtable.png" alt="vtable.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 11:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733268#M21345</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2021-04-13T11:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating text in sas and exporting it to the XL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733344#M21346</link>
      <description>&lt;P&gt;Thank you so much for everyone's reply! I am a little confused about this code, as where would I paste&amp;nbsp; text. Just as an example, if I have this text:&amp;nbsp;&lt;/P&gt;&lt;DIV class="responsivegrid aem-GridColumn--default--none aem-GridColumn--phone--none aem-GridColumn--phone--10 aem-GridColumn aem-GridColumn--offset--phone--1 aem-GridColumn--default--8 aem-GridColumn--offset--default--2"&gt;&lt;DIV class="aem-Grid aem-Grid--default--8 aem-Grid--phone--10  "&gt;&lt;DIV class="cmp cmp-text aem-GridColumn--phone--none aem-GridColumn--phone--10 aem-GridColumn aem-GridColumn--default--8 aem-GridColumn--offset--phone--0"&gt;&lt;DIV class="rte"&gt;&lt;DIV&gt;Filter 1: Step-by-step instructions&lt;OL&gt;&lt;LI&gt;Locate your water filter cover in the upper right-hand corner inside your refrigerator or in the base grille.&lt;/LI&gt;&lt;LI&gt;Lift the filter door up.&lt;/LI&gt;&lt;LI&gt;Pull the filter out and discard it.&lt;/LI&gt;&lt;LI&gt;Open your new filter and remove the protective coverings from the O-rings. Make sure the O-rings are still in place after the cover has been removed.&lt;/LI&gt;&lt;LI&gt;When inserting the new filter into the slot, make sure the arrow is pointing upward. Do not force the water filter. If it does not slide in easily, rotate it until the notches are properly aligned with the grooves.&lt;/LI&gt;&lt;LI&gt;Push the filter door closed so it snaps into place.&lt;/LI&gt;&lt;LI&gt;Once your filter is replaced, run four gallons of water through the line to properly flush the new filter.&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="spacer baseComponent aem-GridColumn aem-GridColumn--default--12"&gt;where/how should I paste it in SAS code so that it would populate in the XL for me?&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="spacer baseComponent aem-GridColumn aem-GridColumn--default--12"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="spacer baseComponent aem-GridColumn aem-GridColumn--default--12"&gt;Thank you!&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Apr 2021 14:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733344#M21346</guid>
      <dc:creator>JaneS</dc:creator>
      <dc:date>2021-04-13T14:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating text in sas and exporting it to the XL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733358#M21347</link>
      <description>Did you look into PROC ODSTEXT?&lt;BR /&gt;&lt;BR /&gt;Or just save it to a data set and use PROC PRINT or PROC REPORT?&lt;BR /&gt;&lt;BR /&gt;data have;&lt;BR /&gt;text = 'Filter 1: Step by step instructions'; indent = 0;output;&lt;BR /&gt;text = '1. Locate your water filter....'; indent = 1; output;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=have;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Apr 2021 15:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Creating-text-in-sas-and-exporting-it-to-the-XL/m-p/733358#M21347</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-13T15:11:45Z</dc:date>
    </item>
  </channel>
</rss>

