<?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: Norwegian sort in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Norwegian-sort/m-p/64713#M7542</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Thks your first lines solved the problem.&lt;BR /&gt;
&lt;BR /&gt;
Regards, Rachid + Russell &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Fri, 05 Mar 2010 14:45:29 GMT</pubDate>
    <dc:creator>RussellAlmeida</dc:creator>
    <dc:date>2010-03-05T14:45:29Z</dc:date>
    <item>
      <title>Norwegian sort</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Norwegian-sort/m-p/64711#M7540</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
OS : AIX&lt;BR /&gt;
SAS Version: SAS 9.1.3&lt;BR /&gt;
&lt;BR /&gt;
Simply said why can't I have a Norwegian sorting on my addresses. ( Æ-Ø-Å)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc sort NORWEGIAN data = VL0608_467R_Address_distr_lst &lt;BR /&gt;
	(where = &lt;BR /&gt;
		(Postal_code_cd ge &amp;amp;From_Postal_Code. 	and &lt;BR /&gt;
		Postal_code_cd 	le &amp;amp;To_Postal_Code.))&lt;BR /&gt;
	out =  VL0608_467R_Address_distr_lst1;&lt;BR /&gt;
	by Report_Name Report_Id Title_Line2 Sort_Variable Address_List;&lt;BR /&gt;
run;&lt;BR /&gt;
--------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
But I seems not to be able to put it here too.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc report data = VL0608_467R_Address_distr_lst1 &lt;BR /&gt;
	nowd &lt;BR /&gt;
	spacing = 30 &lt;BR /&gt;
	wrap ls=100 &lt;BR /&gt;
	split='*'&lt;BR /&gt;
	style(header)={background=white}&lt;BR /&gt;
	style(report)={rules=none frame=void cellspacing=0 borderwidth=0}&lt;BR /&gt;
	style(summary)={background=graycc} split='*';&lt;BR /&gt;
&lt;BR /&gt;
	BY Report_Name Report_Id Title_Line2;&lt;BR /&gt;
&lt;BR /&gt;
	columns &lt;BR /&gt;
		Report_Name&lt;BR /&gt;
		Report_Id&lt;BR /&gt;
		Sort_Variable&lt;BR /&gt;
&lt;BR /&gt;
		Address_list&lt;BR /&gt;
		Organization_id&lt;BR /&gt;
		Organization_Nm&lt;BR /&gt;
		Rack_Id&lt;BR /&gt;
		Sort_Variable&lt;BR /&gt;
		Postal_Code_Cd&lt;BR /&gt;
		_Postal_Code_Cd;&lt;BR /&gt;
		&lt;BR /&gt;
&lt;BR /&gt;
	define Report_ID/group noprint;&lt;BR /&gt;
	define Report_name/group noprint;&lt;BR /&gt;
	define Sort_Variable/order noprint;&lt;BR /&gt;
	define Postal_Code_Cd/noprint;&lt;BR /&gt;
	&lt;BR /&gt;
&lt;BR /&gt;
	define Address_list/left flow "GATE/VEI/STED" spacing=20 &lt;BR /&gt;
					style(column)=[cellwidth=380pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
					style(header)= [font_weight=bold font=(Arial, 6pt) just = left] flow;&lt;BR /&gt;
&lt;BR /&gt;
	define Organization_Nm/left flow "   "&lt;BR /&gt;
					style(column)=[cellwidth=10pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
					style(header)= [cellwidth=10pt font_weight=bold font=(Arial, 6pt) just = left] flow;	&lt;BR /&gt;
&lt;BR /&gt;
	define Organization_id/left flow 'ENHET' spacing = 10&lt;BR /&gt;
					style(column)=[cellwidth=50pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
					style(header)= [font_weight=bold font=(Arial, 6pt) just = left] flow;&lt;BR /&gt;
&lt;BR /&gt;
	define Rack_Id/left 'REOLNR' spacing = 10 format = z4.&lt;BR /&gt;
					style(column)=[cellwidth=50pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
					style(header)= [font_weight=bold font=(Arial, 6pt) just = left] flow;&lt;BR /&gt;
&lt;BR /&gt;
	define _Postal_code_cd/left 'POSTNR' spacing = 10&lt;BR /&gt;
					style(column)=[cellwidth=50pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
					style(header)= [font_weight=bold font=(Arial, 6pt) just = left] flow;&lt;BR /&gt;
	break after Sort_Variable/skip ol suppress;&lt;BR /&gt;
&lt;BR /&gt;
	compute after Sort_Variable;&lt;BR /&gt;
  		line ' ';&lt;BR /&gt;
	endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thkx for any help, &lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Rachid ( beginner working with Russell )</description>
      <pubDate>Thu, 04 Mar 2010 14:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Norwegian-sort/m-p/64711#M7540</guid>
      <dc:creator>RussellAlmeida</dc:creator>
      <dc:date>2010-03-04T14:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Norwegian sort</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Norwegian-sort/m-p/64712#M7541</link>
      <description>Hi:&lt;BR /&gt;
  I'm not clear. Are you saying the the PROC SORT doesn't work with the NORWEGIAN option??? Or that PROC REPORT doesn't honor the sorted data???&lt;BR /&gt;
 &lt;BR /&gt;
  If the PROC SORT doesn't work with the documented NORWEGIAN option:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000146878.htm#a003210225" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000146878.htm#a003210225&lt;/A&gt;   &lt;BR /&gt;
then you have an issue for Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
  If PROC REPORT is not HONORING the sort order of the data (when you use the data in a PROC REPORT step), then you might try:&lt;BR /&gt;
&lt;BR /&gt;
1) Sort with the NORWEGIAN option (with PROC SORT)&lt;BR /&gt;
2) Use ORDER=DATA in the PROC REPORT step to tell PROC REPORT to honor whatever order the data are in. PROC REPORT does not have a NORWEGIAN option, but IF your NORWEGIAN option is working on the SORT step, then ORDER=DATA should make PROC REPORT respect that order:&lt;BR /&gt;
[pre]&lt;BR /&gt;
define Report_ID/group noprint order=data;&lt;BR /&gt;
define Report_name/group noprint order=data;&lt;BR /&gt;
define Sort_Variable/order noprint order=data;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Add ORDER+DATA to all your group and/or ORDER variables.&lt;BR /&gt;
                                     &lt;BR /&gt;
Then, since you are working with Russell and since Russell works with ODS PDF and with stored processes, there are some additional issues in your code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
define Address_list/left flow "GATE/VEI/STED" spacing=20 &lt;BR /&gt;
style(column)=[cellwidth=380pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
style(header)= [font_weight=bold font=(Arial, 6pt) just = left] flow;&lt;BR /&gt;
&lt;BR /&gt;
define Organization_Nm/left flow " "&lt;BR /&gt;
style(column)=[cellwidth=10pt font=(Arial, 6pt) just = left] flow&lt;BR /&gt;
style(header)= [cellwidth=10pt font_weight=bold font=(Arial, 6pt) just = left] flow;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
The FLOW option is a LISTING only option and will not work for ODS output, such as that returned by stored processes or sent to ODS HTML, ODS RTF or ODS PDF destinations. You should code an explicit CELLWIDTH style= override for each of these statements where you are currently using FLOW.&lt;BR /&gt;
 &lt;BR /&gt;
In addition, SPACING, LS, and WRAP wrap options, either in the PROC REPORT statement or SPACING in the DEFINE statement -- are also LISTING only options and are basically ignored by ODS destinations other than listing -- which would include all types of stored process output.&lt;BR /&gt;
 &lt;BR /&gt;
For more information about PROC REPORT options that are LISTING only options (like PANEL, HEADLINE, HEADSKIP, OL, DOL, etc), refer to these sites:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/2/549.html" target="_blank"&gt;http://support.sas.com/kb/2/549.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/report1.html" target="_blank"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/report1.html&lt;/A&gt; (shows some workarounds that use CSS techniques to simulate some of the options for HTML destinations)&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 04 Mar 2010 15:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Norwegian-sort/m-p/64712#M7541</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-03-04T15:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Norwegian sort</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Norwegian-sort/m-p/64713#M7542</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Thks your first lines solved the problem.&lt;BR /&gt;
&lt;BR /&gt;
Regards, Rachid + Russell &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 05 Mar 2010 14:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Norwegian-sort/m-p/64713#M7542</guid>
      <dc:creator>RussellAlmeida</dc:creator>
      <dc:date>2010-03-05T14:45:29Z</dc:date>
    </item>
  </channel>
</rss>

