<?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 export to XLSX- right to left layout in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968913#M376685</link>
    <description>&lt;P&gt;You could try tagsets.excelxp.&amp;nbsp; &amp;nbsp;It might not have the same memory limitations as the EXCEL destination.&amp;nbsp; It writes .xml, but Excel will open it and you can do most of the same formatting.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 18:47:16 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2025-06-12T18:47:16Z</dc:date>
    <item>
      <title>proc export to XLSX- right to left layout</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968812#M376645</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to export two data sets into XLSX file.&lt;/P&gt;
&lt;P&gt;In real word I must use proc export (and not ODS excel) because the data sets are big .&lt;/P&gt;
&lt;P&gt;I want that sheets layout be right to left and not left to right.&lt;/P&gt;
&lt;P&gt;I used&amp;nbsp;&lt;CODE class=" language-sas"&gt;options bidi=yes; &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;but&amp;nbsp;still&amp;nbsp;layout&amp;nbsp;is&amp;nbsp;left&amp;nbsp;to&amp;nbsp;right.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%let path="/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/CARS_CLASS.xlsx";
options bidi=yes;
proc export data=sashelp.cars
outfile=&amp;amp;path.
DBMS=xlsx replace;
sheet='POP';
run;
proc export data=sashelp.class
outfile=&amp;amp;path.
DBMS=xlsx replace;
sheet='PART1_A';
run;
 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jun 2025 10:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968812#M376645</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-06-12T10:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to XLSX- right to left layout</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968867#M376656</link>
      <description>&lt;P&gt;Currently the BIDI option is only honored for ODS and Base reporting procedures. It is not honored for PROC EXPORT. You will have to use ODS EXCEL to get the functionality you desire.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968867#M376656</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-06-12T15:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to XLSX- right to left layout</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968871#M376659</link>
      <description>But my tables are big do cannot use ods excel</description>
      <pubDate>Thu, 12 Jun 2025 15:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968871#M376659</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-06-12T15:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to XLSX- right to left layout</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968872#M376660</link>
      <description>&lt;P&gt;In which case it might be better to share them using some other file format.&amp;nbsp; Perhaps CSV files?&lt;/P&gt;
&lt;P&gt;You can uses the ZIP engine to put multiple CSV files into one ZIP file.&lt;/P&gt;
&lt;P&gt;Example using &lt;A href="https://github.com/sasutils/macros/blob/master/csv_vnext.sas" target="_self"&gt;%csv_vnext&lt;/A&gt; macro.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myzip zip 'C:\downloads\csvfiles.zip';

%csv_vnext
/*----------------------------------------------------------------------
Write SAS dataset as CSV file with headers using single data step
----------------------------------------------------------------------*/
(sashelp.class   /* Input dataset name. DSNoptions allowed */
,outfile=myzip('class.csv')   /* Output fileref or quoted filename */
,dlm=',' /* Delimiter character as literal value */
,names=1  /* Write header row? */
,label=0  /* Use LABEL instead of NAME for header row? */
,format=  /* Allow overrides of formats */
);

%csv_vnext
/*----------------------------------------------------------------------
Write SAS dataset as CSV file with headers using single data step
----------------------------------------------------------------------*/
(sashelp.cars(obs=100)   /* Input dataset name. DSNoptions allowed */
,outfile=myzip('cars.csv')   /* Output fileref or quoted filename */
,dlm=',' /* Delimiter character as literal value */
,names=1  /* Write header row? */
,label=0  /* Use LABEL instead of NAME for header row? */
,format=  /* Allow overrides of formats */
);

filename myzip ;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968872#M376660</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-06-12T15:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to XLSX- right to left layout</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968883#M376666</link>
      <description>&lt;P&gt;You can use ODS EXCEL if you consider some of the following alternatives:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To prevent memory errors, you can reduce the size of larger tables by breaking them up into smaller tables. This action enables the memory to be freed after processing each of the smaller tables. This action can be accomplished by using methods such as BY-group processing or using the OBS= and FIRSTOBS= data set options to subset the data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You also can increase&amp;nbsp;the memory for the job by using the MEMSIZE system option either at start-up or in the configuration file.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 16:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968883#M376666</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-06-12T16:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to XLSX- right to left layout</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968900#M376678</link>
      <description>But csv file must have one sheet and i want to have 12 sheets....so as far as I know for this task must have xlsx and not csv</description>
      <pubDate>Thu, 12 Jun 2025 17:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968900#M376678</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-06-12T17:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to XLSX- right to left layout</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968902#M376680</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;But csv file must have one sheet and i want to have 12 sheets....so as far as I know for this task must have xlsx and not csv&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is why I showed you how to create multiple CSV files inside of a single ZIP file.&amp;nbsp; That way you still only have one file to deal with.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 18:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968902#M376680</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-06-12T18:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc export to XLSX- right to left layout</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968913#M376685</link>
      <description>&lt;P&gt;You could try tagsets.excelxp.&amp;nbsp; &amp;nbsp;It might not have the same memory limitations as the EXCEL destination.&amp;nbsp; It writes .xml, but Excel will open it and you can do most of the same formatting.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 18:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-to-XLSX-right-to-left-layout/m-p/968913#M376685</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-06-12T18:47:16Z</dc:date>
    </item>
  </channel>
</rss>

