<?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 ODSTEXT  excel text wrapping in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933614#M367166</link>
    <description>&lt;P&gt;Can you show example what you want?&amp;nbsp; Maybe make it by hand and show a picture.&amp;nbsp; Most folks don't like to open XLSX from external source.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 22:23:10 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2024-06-24T22:23:10Z</dc:date>
    <item>
      <title>PROC ODSTEXT  excel text wrapping</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933587#M367159</link>
      <description>&lt;P&gt;I am creating a workbook and the first page has directions that I've created using PROC ODSTEXT. Unfortunately, no matter what option I use the text continues to wrap. Can someone please tell me how to stop the text wrapping? I've tried FLOW, setting the column width, tagattr etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;ODS EXCEL FILE = "filedestination.xlsx" OPTIONS (TITLE_FOOTNOTE_NOBREAK='YES' SHEET_NAME= "INSTRUCTIONS" EMBEDDED_TITLES='YES' Absolute_column_width = '175pt' absolute_row_height = "20pt" FLOW='DATA, TABLES, TEXT');&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;TITLE;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;ODSTEXT&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;P '1. REVIEW THE ITEM TO RECONCILE TAB IN THE WORKBOOK PROVIDED ON XXX WEBSITE.'/style={tagattr='WrapText:0' fontsize=&lt;STRONG&gt;12&lt;/STRONG&gt;pt};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;P ' ';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;P '2. REVIEW COLUMN X TO IDENTIFY ANY ITEMS DEEMED "LEAKAGE" PER DETERMINED LOGIC.' /style={tagattr='WrapText:0' fontsize=&lt;STRONG&gt;12&lt;/STRONG&gt;pt};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;P ' ';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;P '3. FOR ANY SERVICES YOU FEEL SHOULD NOT BE INCLUDED, PLEASE NOTE THAT IN THE SPREADSHEET. THOSE SERVICES WILL BE REVIEWED BY A MEMBER OF OUR CLINICAL STAFF.'/style={tagattr='WrapText:0' fontsize=&lt;STRONG&gt;12&lt;/STRONG&gt;pt};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;ods excel close;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;SAS Base 9.4 TS Level 1M6&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 17:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933587#M367159</guid>
      <dc:creator>SMarieH1521</dc:creator>
      <dc:date>2024-06-24T17:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT  excel text wrapping</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933614#M367166</link>
      <description>&lt;P&gt;Can you show example what you want?&amp;nbsp; Maybe make it by hand and show a picture.&amp;nbsp; Most folks don't like to open XLSX from external source.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 22:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933614#M367166</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2024-06-24T22:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT  excel text wrapping</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933620#M367170</link>
      <description>&lt;P&gt;Using style WRAP:NO instead of wraptext:0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ODS EXCEL FILE = "c:\temp\filedestination.xlsx" 
OPTIONS (TITLE_FOOTNOTE_NOBREAK='YES' 
SHEET_NAME= "INSTRUCTIONS" EMBEDDED_TITLES='YES'
Absolute_column_width = '175pt' 
absolute_row_height = "20pt" 
FLOW='DATA, TABLES, TEXT');

TITLE; 

PROC ODSTEXT;

 P '1. REVIEW THE ITEM TO RECONCILE TAB IN THE WORKBOOK PROVIDED ON XXX WEBSITE.'/style={tagattr='Wrap:no' fontsize=12pt};

 P ' ';

 P '2. REVIEW COLUMN X TO IDENTIFY ANY ITEMS DEEMED "LEAKAGE" PER DETERMINED LOGIC.' /style={tagattr='Wrap:no' fontsize=12pt};

 P ' ';

 P '3. FOR ANY SERVICES YOU FEEL SHOULD NOT BE INCLUDED, PLEASE NOTE THAT IN THE SPREADSHEET. THOSE SERVICES WILL BE REVIEWED BY A MEMBER OF OUR CLINICAL STAFF.'/style={tagattr='Wrap:no' fontsize=12pt};


 RUN;

 ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1719278895745.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97871i4EC5A67201E02104/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1719278895745.png" alt="Ksharp_0-1719278895745.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 01:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933620#M367170</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-06-25T01:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT  excel text wrapping</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933623#M367172</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I typically like to use PROC REPORT for title sheets or instruction sheets like this, especially when I need to make sure that the cellwidth is respected. I still used the TAGATTR, but I find cellwidth and height just seem to work better for me with PROC REPORT. I generated this output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1719279201790.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97872i560B7E7FE8D27953/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1719279201790.png" alt="Cynthia_sas_0-1719279201790.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data instructions;
  length instructions $200;
  lineno = 1;
  instructions = '1. REVIEW THE ITEM TO RECONCILE TAB IN THE WORKBOOK PROVIDED ON XXX WEBSITE.';
  output;
  lineno = 2;
  instructions = ' ';
  output;
  lineno = 3;
  instructions =  '2. REVIEW COLUMN X TO IDENTIFY ANY ITEMS DEEMED "LEAKAGE" PER DETERMINED LOGIC.';
  output;
  lineno = 4;
  instructions=' ';
  output;
  lineno=5;
  instructions='3. FOR ANY SERVICES YOU FEEL SHOULD NOT BE INCLUDED, PLEASE NOTE THAT IN THE SPREADSHEET. THOSE SERVICES WILL BE REVIEWED BY A MEMBER OF OUR CLINICAL STAFF.';
  output;
 RUN;

title; footnote;
ODS EXCEL FILE = "c:\temp\instructions.xlsx" 
   OPTIONS (SHEET_NAME= "INSTRUCTIONS" orientation='landscape');

PROC report data=instructions noheader;
  column lineno instructions;
  define lineno/ order noprint;
  define instructions / display 
         style(column)={height-.5in cellwidth=10in fontsize=12pt cellpadding=7px tagattr='WrapText:0'};
 RUN;

 ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All measurements like 10in or .5 in are converted by Excel into some unit of measure that seems opaque to me. However, I generally just fiddle around until I find a cellwidth that works for my text. I started at 8in and ended at 10. I fiddled with cellpadding, I probably didn't need it. The ability to generate PROC&amp;nbsp; REPORT output without column headers using the NOHEADER option really helps with an instructions page like this.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 01:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933623#M367172</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2024-06-25T01:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT  excel text wrapping</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933699#M367219</link>
      <description>&lt;P&gt;Thank you, Cynthia! That worked!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 17:19:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933699#M367219</guid>
      <dc:creator>SMarieH1521</dc:creator>
      <dc:date>2024-06-25T17:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC ODSTEXT  excel text wrapping</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933700#M367220</link>
      <description>&lt;P&gt;KSharp, this solution worked too! Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 17:26:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-ODSTEXT-excel-text-wrapping/m-p/933700#M367220</guid>
      <dc:creator>SMarieH1521</dc:creator>
      <dc:date>2024-06-25T17:26:27Z</dc:date>
    </item>
  </channel>
</rss>

