<?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 PRINT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425882#M68322</link>
    <description>The format of the data in question is $char175. When I do a PROC PRINT, everything appears in upper-case. I wrote something to select some specific records, containing 'LAST CYCLE'... it did NOT find any records that matched that criteria... so I tried 'Last Cycle' and if found several hundred records that matched (!?!?!).&lt;BR /&gt;</description>
    <pubDate>Mon, 08 Jan 2018 19:53:03 GMT</pubDate>
    <dc:creator>BobWilcox</dc:creator>
    <dc:date>2018-01-08T19:53:03Z</dc:date>
    <item>
      <title>PROC PRINT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425864#M68317</link>
      <description>&lt;P&gt;When I do a PROC PRINT... why do all of the variables print in Upper-Case?&amp;nbsp; How can I ensure that what's printed, is EXACTLY as the data exists?&amp;nbsp; Tnanks.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 19:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425864#M68317</guid>
      <dc:creator>BobWilcox</dc:creator>
      <dc:date>2018-01-08T19:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425871#M68318</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185484"&gt;@BobWilcox&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;When I do a PROC PRINT... why do all of the variables print in Upper-Case?&amp;nbsp; How can I ensure that what's printed, is EXACTLY as the data exists?&amp;nbsp; Tnanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Variable names? That's because that's how they were created, SAS doesn't really care about the case of variable names.&lt;/P&gt;
&lt;P&gt;If you want control over the names, you can use variable labels instead which have less restrictions than SAS names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data demo;
MyVar=1;
MYVAR2=2;
MyVAr3=3;
run;
title 'Mixed Case Example';
proc print data=demo label;run;
title;

proc datasets lib=work nodetails nolist;
modify demo;
rename MYVAR2=MyVar2 myvar3=MyVar3;
run;quit;

title 'Camel Case Example';
proc print data=demo ;
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 19:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425871#M68318</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-08T19:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425873#M68320</link>
      <description>No No No... not the Variable-Names... the Variable-Contents all print in Upper-case, and I know for a fact that the data is mixed... some upper characters and some lower-characters. ....</description>
      <pubDate>Mon, 08 Jan 2018 19:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425873#M68320</guid>
      <dc:creator>BobWilcox</dc:creator>
      <dc:date>2018-01-08T19:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425878#M68321</link>
      <description>&lt;P&gt;PROC PRINT shouldn't change the variable values. Is there a format attached to the variables? I believe there is a format that will upcase all the values, but that would have been the explicit choice of someone, not a default state.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 19:40:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425878#M68321</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-08T19:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425882#M68322</link>
      <description>The format of the data in question is $char175. When I do a PROC PRINT, everything appears in upper-case. I wrote something to select some specific records, containing 'LAST CYCLE'... it did NOT find any records that matched that criteria... so I tried 'Last Cycle' and if found several hundred records that matched (!?!?!).&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jan 2018 19:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425882#M68322</guid>
      <dc:creator>BobWilcox</dc:creator>
      <dc:date>2018-01-08T19:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425899#M68323</link>
      <description>&lt;P&gt;Sorry I am being little cheeky, did you accidentally use &lt;STRONG&gt;UPCASE Format/Informat/ Function&lt;/STRONG&gt; by chance to filter chars in your code at some point?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 20:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425899#M68323</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-08T20:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425902#M68324</link>
      <description>No, the only card that appears before the PROC PRINT statement is this:&lt;BR /&gt;options nofmterr nodate nocenter ls=256;</description>
      <pubDate>Mon, 08 Jan 2018 20:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425902#M68324</guid>
      <dc:creator>BobWilcox</dc:creator>
      <dc:date>2018-01-08T20:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425907#M68325</link>
      <description>&lt;P&gt;1) Please show the exact code submitted.&lt;/P&gt;
&lt;P&gt;2) was the variable that you searched for the text "Last Cycle" the variable printed? (would not have to ask the question if you had shown the Proc print code submitted).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Ensure that the set you printed is the one that shows a format of $char175.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 20:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425907#M68325</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-08T20:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425912#M68326</link>
      <description>&lt;P&gt;What happens if you run the following? Does it work as expected?&lt;/P&gt;
&lt;P&gt;Also, check your own data with the ANYLOWER function applied to the variable of interest.&amp;nbsp;&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;data test;
    input Var_Test $Char20.;
    cards;
ABCDE
abcde
ABcde
This is my test
hello world
HELLO WORLD
;
run;

title 'Raw data';

proc print data=test;
run;

title 'Upcase formatted';

proc print data=test;
    format var_test $upcase.;
run;

title 'Only with lowercase';

proc print data=test;
    where anylower(var_test)&amp;gt;0;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't provide a reproducible example or such, you may be better off working with tech support so they can see your confidential data and such.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And verify if you really need NOFMTERR option, if you do, I suspect that could be causing some issues, since it's expecting formats.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 21:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425912#M68326</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-08T21:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC PRINT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425928#M68327</link>
      <description>Solved... SAS9.3... I&lt;BR /&gt;need to specify NOCAPS in CONFIG-file.&lt;BR /&gt;&lt;BR /&gt;Thanks for all of your help.</description>
      <pubDate>Mon, 08 Jan 2018 21:56:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-PRINT/m-p/425928#M68327</guid>
      <dc:creator>BobWilcox</dc:creator>
      <dc:date>2018-01-08T21:56:30Z</dc:date>
    </item>
  </channel>
</rss>

