<?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: Uppercase Excel Output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586158#M23248</link>
    <description>&lt;P&gt;You can use the compute block to upcase the variables as below , this is just an example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc report data=cm_studyname_ready style(column header)=[textalign=left verticalalign=top]
style(Header)=[background=#FFCC99]
style(header)=[font_weight=bold height=.4in]
;
column company ;
define company / computed;
compute company;
company=upcase(compute);
endcomp; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2019 15:06:27 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2019-09-04T15:06:27Z</dc:date>
    <item>
      <title>Uppercase Excel Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586151#M23247</link>
      <description>&lt;P&gt;I am outputting a dataset into Excel and am trying to get all of the values within each cell to be uppercase. The problem is that some variables are codelisted and those decode values are not uppercase, e.g. 'Not related'. I am stuck working with the format catalog with those mixed case codelists and tried running an array to change them but it seems that is only upcasing the value in the variables and not the codelisted value which I suppose makes sense. Is there a style/option within ODS that I can use to set everything to be uppercase?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*opens excel output;

ods _all_ close;

ods excel file= "YOUR FILE PATH HERE.xlsx"
options(
sheet_interval="none"
sheet_name="&amp;amp;sysdate."
frozen_headers="1"
autofilter='on'
);

options nolabel;
options missing='.';

proc report data=cm_studyname_ready style(column header)=[textalign=left verticalalign=top]
style(Header)=[background=#FFCC99]
style(header)=[font_weight=bold height=.4in]
;

run;

ods excel close;

*opens destination again - choose the ones you need;

ods html;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586151#M23247</guid>
      <dc:creator>PSU_Sudzi</dc:creator>
      <dc:date>2019-09-04T14:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Uppercase Excel Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586158#M23248</link>
      <description>&lt;P&gt;You can use the compute block to upcase the variables as below , this is just an example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc report data=cm_studyname_ready style(column header)=[textalign=left verticalalign=top]
style(Header)=[background=#FFCC99]
style(header)=[font_weight=bold height=.4in]
;
column company ;
define company / computed;
compute company;
company=upcase(compute);
endcomp; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 15:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586158#M23248</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-09-04T15:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Uppercase Excel Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586159#M23249</link>
      <description>&lt;P&gt;You can change the values of the variable in data set&amp;nbsp;CM_STUDYNAME_READY to uppercase in a data step before running PROC REPORT. Use the UPCASE function.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 15:06:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586159#M23249</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-04T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Uppercase Excel Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586160#M23250</link>
      <description>There's an upcase format. &lt;BR /&gt;&lt;BR /&gt;Apply the formats in a prior step. If you have variables that are numeric and have formats applied you'll need a different approach.&lt;BR /&gt;&lt;BR /&gt;format _character_ $upcase.;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Sep 2019 15:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586160#M23250</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-04T15:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Uppercase Excel Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586161#M23251</link>
      <description>&lt;P&gt;Your code snippet shows PROC REPORT.&amp;nbsp; Do you really need to make a "report" or are you just dumping the data into a spreadsheet?&lt;/P&gt;
&lt;P&gt;Do you need Excel or could you produce a simple text file, like a CSV file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be easier to post process the output. That would be really easy for a text file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csv temp;
data _null_;
  file csv dsd ;
  set sashelp.class ;
  put (_all_) (+0) @;
  _file_=upcase(_file_);
  put;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;690   data _null_;
691     infile csv ;
692     input;
693     put _infile_;
694   run;

NOTE: The infile CSV is:

      Filename=...\#LN00073,
      RECFM=V,LRECL=32767,File Size (bytes)=403,
      Last Modified=04Sep2019:11:10:06,
      Create Time=04Sep2019:11:10:06

ALFRED,M,14,69,112.5
ALICE,F,13,56.5,84
BARBARA,F,13,65.3,98
CAROL,F,14,62.8,102.5
HENRY,M,14,63.5,102.5
JAMES,M,12,57.3,83
JANE,F,12,59.8,84.5
JANET,F,15,62.5,112.5
JEFFREY,M,13,62.5,84
JOHN,M,12,59,99.5
JOYCE,F,11,51.3,50.5
JUDY,F,14,64.3,90
LOUISE,F,12,56.3,77
MARY,F,15,66.5,112
PHILIP,M,16,72,150
ROBERT,M,12,64.8,128
RONALD,M,15,67,133
THOMAS,M,11,57.5,85
WILLIAM,M,15,66.5,112
NOTE: 19 records were read from the infile CSV.
      The minimum record length was 17.
      The maximum record length was 21.
&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Sep 2019 15:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586161#M23251</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-04T15:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Uppercase Excel Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586164#M23252</link>
      <description>&lt;P&gt;If your formats are simple 1='High' 2='Low' type formats then you could use PROC FORMAT to convert the formats to a dataset. Upcase the labels and then create new formats.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=mylib.myformats cntlout=formats; run;
data formats ;
 set formats;
 label=upcase(label);
run;
proc format lib=work.upcase_formats cntlin=formats; run;
options insert=(fmtsearch=(work.upcase_formats));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Sep 2019 15:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Uppercase-Excel-Output/m-p/586164#M23252</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-09-04T15:18:34Z</dc:date>
    </item>
  </channel>
</rss>

