<?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: Expanind titles -not to wrap when the column width has been set in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565081#M22844</link>
    <description>&lt;P&gt;To prevent wrapping I suspect you will need to actually truncate the length of the displayed value to a specific number of characters which would depend on the size and font used for display.&lt;/P&gt;
&lt;P&gt;Likely a compute block such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compute variable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if length(variable) ge 15 then variable=substr(variable,1,15);&lt;/P&gt;
&lt;P&gt;endcomp;&lt;/P&gt;
&lt;P&gt;or similar.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 23:14:31 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-06-10T23:14:31Z</dc:date>
    <item>
      <title>Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565035#M22842</link>
      <description>&lt;P&gt;I have set my namefield column width.&amp;nbsp; However the namefield also contains titles for each department.&amp;nbsp; I don't want the department titles to wrap because there's no data in the next column when I print the department titles. I have assigned a 1 to the rows that I don't want to wrap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My codes is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 20:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565035#M22842</guid>
      <dc:creator>LNM</dc:creator>
      <dc:date>2019-06-10T20:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565067#M22843</link>
      <description>&lt;P&gt;It's tricky to say what it is without some data. But my first question would be if all the rows have the value 1 in rwidth? Because the width of the column can't (as far as I know) be different on different rows. And if it is so, then maybe it is better to find out if you are going to have a broad column or not, before you do the proc report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is, query the table to see if there is a 1 in that column then put this flag in a macro variable and work from there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, put the code directly in the post instead of in an attachment. It makes it easier to copy and easier to go back to review the code.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 21:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565067#M22843</guid>
      <dc:creator>heffo</dc:creator>
      <dc:date>2019-06-10T21:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565081#M22844</link>
      <description>&lt;P&gt;To prevent wrapping I suspect you will need to actually truncate the length of the displayed value to a specific number of characters which would depend on the size and font used for display.&lt;/P&gt;
&lt;P&gt;Likely a compute block such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compute variable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if length(variable) ge 15 then variable=substr(variable,1,15);&lt;/P&gt;
&lt;P&gt;endcomp;&lt;/P&gt;
&lt;P&gt;or similar.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 23:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565081#M22844</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-10T23:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565243#M22845</link>
      <description>Here's what I coded. Can you help me with the syntax? Please.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;compute rwidth;&lt;BR /&gt;if rwidth eq 1 then call define(_row_,style(column)={cellwidth=4.5 in just=l});&lt;BR /&gt;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565243#M22845</guid>
      <dc:creator>LNM</dc:creator>
      <dc:date>2019-06-11T13:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565244#M22846</link>
      <description>Here's what I am try to code. Can you help me with the syntax? Please.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's what I coded. Can you help me with the syntax? Please.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;compute rwidth;&lt;BR /&gt;if rwidth eq 1 then call define(_row_,style(column)={cellwidth=4.5 in just=l});&lt;BR /&gt;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;LNM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565244#M22846</guid>
      <dc:creator>LNM</dc:creator>
      <dc:date>2019-06-11T13:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565245#M22847</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;Yes, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/261618"&gt;@heffo&lt;/a&gt; is correct, the cell for NAME (for example), has to be the SAME on every row in a report table. You cannot have the cell for NAME be 3 inches on one row and have it be 2 inches on other rows. &lt;BR /&gt;&lt;BR /&gt;The syntax you show for your CALL DEFINE with RWIDTH is incorrect, and, as I indicated, not possible to do. &lt;BR /&gt;&lt;BR /&gt;Without data, no one can run your code. So it's hard to comment further. However, rather than pump the long description into the NAME field, it might be better to make a separate variable such as I show using the DESC variable that you can use like a header with a LINE statement. The LINE statement spans the whole table when it writes text, it is not limited to the width of one cell. So, here's one approach:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
  length desc $100;
  set sashelp.class;
  if sex = 'F' then desc = 'Female students in the STEM Program';
  else desc='Male students in the STEM Program';
run;
  
proc report data=class;
  column sex desc name age height weight;
  define sex / order noprint;
  define desc / order noprint;
  define name / display;
  define age / display;
  define height / display;
  define weight / display;
  compute after desc;
    line ' ';
  endcomp;
  compute before desc / style={font_weight=bold just=l};
    line desc $varying100.;
  endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But, if you insist on putting the long string into the NAME field, then something like this might work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data class2;
  length name $100;
  set class; by sex;
  bold=2;
  output;

  if first.sex and sex = 'F' then do;
     name = 'Female students in the STEM Program';
	 call missing (of age, height, weight);
	 bold = 1;
	 output;
  end;
  else if first.sex and sex = 'M' then do;
     output;
     name='Male students in the STEM Program';
	 call missing (of age, height, weight);
	 bold = 1;
	 output;
  end;
run;

proc sort data=class2;
  by sex bold;
run;
  
options missing=' ';
proc report data=class2;
  column sex bold name age height weight;
  define sex / order noprint;
  define bold / display noprint;
  define name / display
         style(column)={width=3in j=l};
  define age / display;
  define height / display;
  define weight / display;
  compute after sex;
    line ' ';
  endcomp;
  compute name;
    if bold = 1 then call define(_col_,"style","style={font_weight=bold}");
  endcomp;
 run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is a very simplified code using SASHELP.CLASS just to show the different approaches.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:17:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565245#M22847</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-06-11T14:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565255#M22848</link>
      <description>Here's the sample data. I would like the department names with rwidth=1 not to wrap&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;namefield&lt;BR /&gt;&lt;BR /&gt;amount&lt;BR /&gt;&lt;BR /&gt;Pos_Pool&lt;BR /&gt;&lt;BR /&gt;jobfield&lt;BR /&gt;&lt;BR /&gt;combo_cd&lt;BR /&gt;&lt;BR /&gt;bold&lt;BR /&gt;&lt;BR /&gt;rwidth&lt;BR /&gt;&lt;BR /&gt;444444-Tesing the Namefiled if row width can be extended&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;112121-The Northwest Tornado Cha&lt;BR /&gt;sers&lt;BR /&gt;&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;Mary McKee&lt;BR /&gt;&lt;BR /&gt;10000&lt;BR /&gt;&lt;BR /&gt;11112222&lt;BR /&gt;&lt;BR /&gt;Administrative Assistant&lt;BR /&gt;&lt;BR /&gt;ztornado-WA1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Mary McKee-1&lt;BR /&gt;&lt;BR /&gt;200000&lt;BR /&gt;&lt;BR /&gt;00011122&lt;BR /&gt;&lt;BR /&gt;Administrative Assistant&lt;BR /&gt;&lt;BR /&gt;ztornado-WA1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Mary McKee-2&lt;BR /&gt;&lt;BR /&gt;155555&lt;BR /&gt;&lt;BR /&gt;01112222&lt;BR /&gt;&lt;BR /&gt;Administrative Assistant&lt;BR /&gt;&lt;BR /&gt;725ztornado-WA1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Lile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:20:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565255#M22848</guid>
      <dc:creator>LNM</dc:creator>
      <dc:date>2019-06-11T14:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565258#M22849</link>
      <description>Hi:&lt;BR /&gt;  Usually when you provide data, it is in the form of a working DATA step program with DATALINES. And your program had MORE variables, Your program had:&lt;BR /&gt;page row bold rwidth namefield pos_pool jobfield amount fte combo_cd&lt;BR /&gt;where are the page and row variables???&lt;BR /&gt;&lt;BR /&gt;Can you use the little notepad icon to post code and your DATALINES in a WORKING program.&lt;BR /&gt;&lt;BR /&gt;But I believe my second code example answers your question about how to make the cell for NAME wide enough to accommodate a long string without wrapping.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 11 Jun 2019 14:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565258#M22849</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-06-11T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565301#M22852</link>
      <description>&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 15:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565301#M22852</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-11T15:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565651#M22853</link>
      <description>&lt;P&gt;Sorry for the delay in getting back to you all.&amp;nbsp; I still need help.&amp;nbsp; The data comes to me in a excel spreadsheet.&amp;nbsp; Then I run the print program.&amp;nbsp;I have created an attached&amp;nbsp;small sample.&amp;nbsp; Thank you, thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 19:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565651#M22853</guid>
      <dc:creator>LNM</dc:creator>
      <dc:date>2019-06-12T19:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565654#M22854</link>
      <description>&lt;P&gt;Here's my attached codes in notepad&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 19:40:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565654#M22854</guid>
      <dc:creator>LNM</dc:creator>
      <dc:date>2019-06-12T19:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565661#M22855</link>
      <description>&lt;P&gt;I have more than 1000 departments.&amp;nbsp; So I need to try to expand the namefield when the rwidth=1 is my best choice. Please look at my sample data which only contains 2 departments. Thank you, thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 19:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565661#M22855</guid>
      <dc:creator>LNM</dc:creator>
      <dc:date>2019-06-12T19:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565706#M22856</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/135482"&gt;@LNM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have more than 1000 departments.&amp;nbsp; So I need to try to expand the namefield when the rwidth=1 is my best choice. Please look at my sample data which only contains 2 departments. Thank you, thank you.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I repeat that you need to provide &lt;STRONG&gt;useable &lt;/STRONG&gt;data. Your list of text does not provide 1) variable names, 2) lengths, 3) where a "line" might be multiple variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code mentioned here will create a SAS data step in plain text from your data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 22:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565706#M22856</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-12T22:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565712#M22857</link>
      <description>&lt;P&gt;I would continue with the code of&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;and make the width of the column based on the values in the actual selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	length name $100;
	set sashelp.class;
	bold = mod(_n_,3); *Make every third person bold in the proc report.;

	if mod(_n_,4) = 0 then do;
		name = cats(name,'-student with a long name'); *Make some names longer, change this to see what happens.;
	end;
run;

proc sql noprint; *Create a macro variable with the longest length of the name, multiply by 8 or so;
	select max(length(name))*8 into : name_length 
		from want;
quit;

proc report data=want;
	column sex bold name age height weight;
	define sex / order noprint;
	define bold / display noprint;
	define name / display
		style(column)={width=&amp;amp;name_length.px}; *Width changes based on the above macro variable.;
	define age / display;
	define height / display;
	define weight / display;

	compute after sex;
		line ' ';
	endcomp;

	compute name;

		if bold = 1 then
			call define(_col_,"style","style={font_weight=bold}");
	endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 23:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565712#M22857</guid>
      <dc:creator>heffo</dc:creator>
      <dc:date>2019-06-12T23:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Expanind titles -not to wrap when the column width has been set</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565715#M22858</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I just don't know what you mean when you say "expand the namefield".&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;PROC REPORT will NOT make NAMEFIELD wider on one row. The cell width for NAMEFIELD will have to be the SAME width on &lt;EM&gt;every&lt;/EM&gt; row.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seeing the first data that you posted (sorry I don't open XLSX files -- a DATALINES program is safer to open), it seems to me that you want the NAMEFIELD to be as wide as it needs to be for the longest value, and you don't want NAMEFIELD to wrap within the cellwidth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using some FAKEDATA, based on your original few rows, I created this output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="testing_namefield.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30250iD4AB638B2C73900C/image-size/large?v=v2&amp;amp;px=999" role="button" title="testing_namefield.png" alt="testing_namefield.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the code I used:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fakedata;
  length namefield $150 jobfield $50 combo_cd $50;
  infile datalines dlm=',';
  input page row namefield $ amount pos_pool jobfield $ combo_cd $ bold rwidth;
datalines4;
1,1,444444-Testing the Namefield if row width can be extended,1,1,112121-The Northwest Tornado Chasers,1,1,1
1,2,Mary McKee,10000,11112222,Administrative Assistant,ztornado-WA1,.,.
1,3,Mary McKee-1,200000,00011122,Administrative Assistant,ztornado-WA1,.,.
1,4,Mary McKee-2,155555,01112222,Administrative Assistant,725ztornado-WA1,.,.
2,1,454545-Testing the Namefield if row width can be extended,1,1,112121-The Northwest Comet Watchers,1,1,1
2,2,Alan Archer,10001,11112222,Sales Assistant,zcomet-WA2,.,.
2,3,Barbara Barton,200002,00011122,Administrative Assistant,zcomet-WA2,.,.
2,4,Clive Corleone,155553,01112222,CEO Assistant,725zcomet-WA2,.,.
;;;;
run;

 ods listing close;
options nonumber nodate orientation=portrait papersize=LETTER missing='';
title; footnote;
ods pdf file="c:\temp\testing_wide_cell.pdf";
 
proc report data=fakedata nowindows missing  split='|'
         style(report)={just=left cellpadding=2px}
         style(header)={font_size=9pt}
         style(column)={font_size=7pt};
  column page row  bold rwidth namefield pos_pool jobfield amount combo_cd;
  define page / order noprint order=data;
  define row / order noprint;
  define bold/order noprint;
  define rwidth / display noprint;
  define namefield/ display "NAME" style(column)={width=3in just=l};
  define pos_pool/ display "POSITION/POOL" style(column)={just=l};
  define jobfield/ display "POSITION TITLE" style(column)={width=2in just=l};
  define amount/ display "TOTAL" format=comma32.2 style(column)={just=r};
  define combo_cd/ display "DEPT/FUND" style(column)={just=r};
  compute bold;
    if bold eq 1 then call define(_row_,"style","style={font_weight=bold}");
  endcomp;
 run;
 ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that I made the font size for the columns 7pt and made the font size for the headers 9pt. Then I reduced the cellpadding in the cell, so that the long value for NAMEFIELD would fit in 3 inches.I got rid of the spacing=1 because it is a LISTING only option that would be ignored by ODS PDF. rather than "overcontrol" the cellwidths, I only adjusted the cellwidth for NAMEFIELD and JOBFIELD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;There is NOT a way in PROC REPORT to do the equivalent of "merge cells" in Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this gets you closer to your goal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 23:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Expanind-titles-not-to-wrap-when-the-column-width-has-been-set/m-p/565715#M22858</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-06-12T23:24:55Z</dc:date>
    </item>
  </channel>
</rss>

