<?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: Custom Report exported to Excel in .srx does not displays tables side by side in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809135#M319053</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it would be great but my organisation does not allow me to install anything external - (when I tried to recreate the code yesterday I clearly missed the fact I had to install it!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 17:39:32 GMT</pubDate>
    <dc:creator>MART1</dc:creator>
    <dc:date>2022-04-21T17:39:32Z</dc:date>
    <item>
      <title>Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808774#M318907</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a number of Custom Reports that I export to Excel in .srx format and are working very well (I use the SAS add-ins).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However when I have two tables side by side, Excel displays them one above the other, rather than next to each other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example with mock data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code&lt;/P&gt;
&lt;PRE&gt;Title "Tables";

ods layout gridded columns=2;

ods region;

     PROC SQL;

           Title "Table 1";

           SELECT t1.Make,

                t1.Model,

                t1.Type,

                t1.EngineSize

           FROM SASHELP.CARS t1

                WHERE MAKE IN ("Saab", "Volvo")

           ;

     QUIT;

ods region;

     PROC SQL;

           Title "Table 2";

           SELECT t1.Make,

                t1.Model,

                t1.Type,

                t1.EngineSize

           FROM SASHELP.CARS t1

                WHERE MAKE IN ("BMW", "Infiniti")

           ;

     QUIT;

 

ods layout end;

 &lt;/PRE&gt;
&lt;P&gt;and in SAS they are correctly displayed next to each other:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS_01.png" style="width: 852px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70635iB4347E51CAA51B77/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS_01.png" alt="SAS_01.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However when I export in.srx and import into Excel, it looks like the below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS_02.png" style="width: 525px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70636i68730035225A099D/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS_02.png" alt="SAS_02.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have looked into Properties, Settings ... but cannot find a way to have the tables side by side in Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ps: not sure if it matters but I'm not using Proc Export (as SAS is on different servers than Excel); instead I use the "Export as a step In Project" function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;many thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 10:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808774#M318907</guid>
      <dc:creator>MART1</dc:creator>
      <dc:date>2022-04-20T10:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808802#M318911</link>
      <description>&lt;A href="https://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html" target="_blank"&gt;https://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html&lt;/A&gt;</description>
      <pubDate>Wed, 20 Apr 2022 12:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808802#M318911</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-20T12:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808825#M318927</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unfortunately I'm using SAS 7 (soon moving to 8), and I see Tagsets.MSOffice2K_x is only available from SAS 9.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I've tried just in case but I get the below)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS_03.png" style="width: 662px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70641i4D31622CB3C8F59C/image-size/large?v=v2&amp;amp;px=999" role="button" title="SAS_03.png" alt="SAS_03.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ps: also I am not very familiar with ods, but I use the Step In project, rather than using file=...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 13:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808825#M318927</guid>
      <dc:creator>MART1</dc:creator>
      <dc:date>2022-04-20T13:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808838#M318931</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/321375"&gt;@MART1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unfortunately I'm using SAS 7 (soon moving to 8), and I see Tagsets.MSOffice2K_x is only available from SAS 9.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You might be using Enterprise Guide in some flavor of version 7 but ODS anything, much less region opitons pretty much did not exist with SAS 7 which was replaced 20 years ago.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS does &lt;STRONG&gt;not&lt;/STRONG&gt; use dot notation as you show it. It would be:&lt;/P&gt;
&lt;P&gt;ODS Tagsets.msoffice2k&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please save yourself some headaches posting LOG text. Copy the text from the log and on the forum open a text box using the &amp;lt;/&amp;gt; icon that appears above the message window and then paste text. I, and many others, are not going to want to retype blocks of text to make a minor correction when given a picture and not text.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 14:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808838#M318931</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-20T14:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808846#M318934</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;noted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For completeness, here is the LOG - without using the dot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I now receive&lt;/P&gt;
&lt;P&gt;ERROR: No body file. TAGSETS.MSOFFICE2K output will not be created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I assume due to using SAS 7 instead of 9 or later)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;PRE&gt; 

1                                                          The SAS System                            08:06 Wednesday, April 20, 2022

 

1          ;*';*";*/;quit;run;

2          OPTIONS PAGENO=MIN;

3          %LET _CLIENTTASKLABEL='Program (2)';

4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';

5          %LET _CLIENTPROJECTPATH='';

6          %LET _CLIENTPROJECTPATHHOST='';

7          %LET _CLIENTPROJECTNAME='';

8          %LET _SASPROGRAMFILE='';

9          %LET _SASPROGRAMFILEHOST='';

10        

11         ODS _ALL_ CLOSE;

12         OPTIONS DEV=PNG;

13         GOPTIONS XPIXELS=0 YPIXELS=0;

14         FILENAME EGSR TEMP;

15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR

16             STYLE=HtmlBlue

17             STYLESHEET=(URL=file:///D:/USR/LOCAL/SASHome/x86/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css)

18             NOGTITLE

19             NOGFOOTNOTE

20             GPATH=&amp;amp;sasworklocation

21             ENCODING=UTF8

22             options(rolap="on")

23         ;

NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR

24        

25         GOPTIONS ACCESSIBLE;

26         options sastrace=',,,d' sastraceloc=saslog NOSTSUFFIX;

27         OPTIONS FULLSTIMER;

28        

29         ods tagsets.msoffice2k style=normal

30         options(panelcols="2");

ERROR: No body file. TAGSETS.MSOFFICE2K output will not be created.

31        

32         Title "Tables";

33        

34             

 

 

34       !  PROC SQL;

35                    Title "Table 1";

36                    SELECT t1.Make,

37                         t1.Model,

38                         t1.Type,

39                         t1.EngineSize

40                    FROM SASHELP.CARS t1

41                         WHERE MAKE IN ("Saab", "Volvo")

42                    ;

43              QUIT;

NOTE: PROCEDURE SQL used (Total process time):

      real time           0.09 seconds

      user cpu time       0.01 seconds

      system cpu time     0.01 seconds

      memory              5335.15k

      OS Memory           32172.00k

      Timestamp           20/04/2022 03:39:21 PM

      Step Count                        19  Switch Count  1

      Page Faults                       33

      Page Reclaims                     427

2                                                          The SAS System                            08:06 Wednesday, April 20, 2022

 

      Page Swaps                        0

      Voluntary Context Switches        39

      Involuntary Context Switches      4

      Block Input Operations            1904

      Block Output Operations           8

     

 

44        

45        

46             

46       !  PROC SQL;

47                    Title "Table 2";

48                    SELECT t1.Make,

49                         t1.Model,

50                         t1.Type,

51                         t1.EngineSize

52                    FROM SASHELP.CARS t1

53                         WHERE MAKE IN ("BMW", "Infiniti")

54                    ;

55              QUIT;

NOTE: PROCEDURE SQL used (Total process time):

      real time           0.00 seconds

      user cpu time       0.01 seconds

      system cpu time     0.00 seconds

      memory              5335.00k

      OS Memory           32172.00k

      Timestamp           20/04/2022 03:39:21 PM

      Step Count                        20  Switch Count  1

      Page Faults                       1

      Page Reclaims                     39

      Page Swaps                        0

      Voluntary Context Switches        24

      Involuntary Context Switches      1

      Block Input Operations            64

      Block Output Operations           0

     

 

56        

57         

58         /*ods tagsets.msoffice2k options(panelcols="2");*/

59        

60         ods tagsets.msoffice2k close;

61        

62         GOPTIONS NOACCESSIBLE;

63         %LET _CLIENTTASKLABEL=;

64         %LET _CLIENTPROCESSFLOWNAME=;

65         %LET _CLIENTPROJECTPATH=;

66         %LET _CLIENTPROJECTPATHHOST=;

67         %LET _CLIENTPROJECTNAME=;

68         %LET _SASPROGRAMFILE=;

69         %LET _SASPROGRAMFILEHOST=;

70        

71         ;*';*";*/;quit;run;

72         ODS _ALL_ CLOSE;

73        

74        

75         QUIT; RUN;

76        

 &lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Apr 2022 14:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808846#M318934</guid>
      <dc:creator>MART1</dc:creator>
      <dc:date>2022-04-20T14:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808849#M318936</link>
      <description>&lt;P&gt;Most of the ODS destinations need to be told what to name the output file and it is a good idea to provide exactly where to place the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you seem to want an Excel file I would definitely not try to write to a TEMP file. Give a path and external filename that Excel will use like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File="C:\folder\myfile.xlsx" on the Ods destination statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also suggest using minimal changes until you get the basic output you want. Then start adding in things like changing Styles. General process for a very long time is 1) get the content correct 2) then make it "pretty".&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 14:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808849#M318936</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-20T14:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808852#M318938</link>
      <description>&lt;P&gt;Thanks again&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All makes sense; however I cannot specify a file name as I have "Insufficient authorization to access...".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way I can export is using the Step In project (i.e. cannot use Proc export; I was told it's because in my company SAS is on a stand alone server, while all the drives are on other servers).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I'm creating a number of .srx report to populate the same Excel workbook on different tabs (using the SAS add-in); it's working really well apart from this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;many thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 15:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808852#M318938</guid>
      <dc:creator>MART1</dc:creator>
      <dc:date>2022-04-20T15:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808855#M318940</link>
      <description>&lt;P&gt;Access, permissions and locations are a thing for you and your Admin to work out.&lt;/P&gt;
&lt;P&gt;The example I wrote was just to show something. Likely your SAS is executing on a server and you shouldn't have access to the C (or equivalent drive). But your SAS admin should be able to provide a location you can write to and what the path should look like and set permissions if they aren't already in place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your previous code was showing writing to a TEMP file. Which are just that, temporary, and go away when the fileref is cleared, such as the end of a SAS session. So really not a good choice to output a file you expect to open in another application and apparently the tagset code may be checking to see if the file was "valid" for creation.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 15:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/808855#M318940</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-20T15:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809023#M319018</link>
      <description>Ha. Maybe you need install it .&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/base/ods/odsmarkup/" target="_blank"&gt;https://support.sas.com/rnd/base/ods/odsmarkup/&lt;/A&gt;</description>
      <pubDate>Thu, 21 Apr 2022 12:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809023#M319018</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-21T12:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809028#M319020</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1650543478090.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70670i472BE95C441DB66C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1650543478090.png" alt="Ksharp_0-1650543478090.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 12:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809028#M319020</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-21T12:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809033#M319023</link>
      <description>&lt;P&gt;Firstly Open the msoffice2k_x.sas&amp;nbsp; code (check attachment) and running it to install msoffice2k_x tagset.&lt;/P&gt;
&lt;P&gt;Secondly Running the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; ods tagsets.msoffice2k_x  file="c:\temp\ppanels.xls"
      options(panelcols="3") style=normal;

  proc print data=sashelp.class;run;
proc print data=sashelp.class;run;
proc print data=sashelp.class;run;

  ods tagsets.msoffice2k_x  options(panelcols="2") ;
proc print data=sashelp.class;run;
proc print data=sashelp.class;run;


 ods tagsets.msoffice2k_x close;
&lt;/PRE&gt;
&lt;P&gt;And I got this :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1650544104733.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70671iE09B193DB4FE782D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1650544104733.png" alt="Ksharp_0-1650544104733.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 12:28:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809033#M319023</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-21T12:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809135#M319053</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it would be great but my organisation does not allow me to install anything external - (when I tried to recreate the code yesterday I clearly missed the fact I had to install it!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 17:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809135#M319053</guid>
      <dc:creator>MART1</dc:creator>
      <dc:date>2022-04-21T17:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809145#M319062</link>
      <description>&lt;P&gt;When running in EG you likely cannot access the C: drive with SAS code, as it's often running on a remote session. Instead, specify a temp file location and EG will bring it down for you to open. Ex:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; ods tagsets.msoffice2k_x  file="%sysfunc(getoption(work))/output.xls" 
      options(panelcols="3") style=normal;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Apr 2022 18:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809145#M319062</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-04-21T18:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809268#M319109</link>
      <description>You can install this tagset as long as you can running sas code .</description>
      <pubDate>Fri, 22 Apr 2022 12:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809268#M319109</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-22T12:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809629#M319281</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(you are right &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;- I can indeed install the code - i.e. run it).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I use specify the below path (as I cannot export to any drive)&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;file="%sysfunc(getoption(work))/output.xls"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it gives me the output I need, however I don't see the option to export it in .srx format (and I need to to so because this code will be part of other reports being exported, which will be included in a "pack" in Excel).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only option is .html. Probably .xls would be good too, but it's not an option when I export using the "Export as a Step in Project" (which is the only option I have to export&amp;nbsp; automatically).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 08:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809629#M319281</guid>
      <dc:creator>MART1</dc:creator>
      <dc:date>2022-04-25T08:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809672#M319298</link>
      <description>&lt;P&gt;The .srx format is a SAS proprietary file type (SAS Report) that can be read by SAS Enterprise Guide, SAS Add-In for Microsoft Office, and SAS Web Report Studio. It was developed to allow for integration of content across all of these applications. It's power lies in the way you can manipulate the layout of the report and retain that layout even as you refresh the content, because the "SAS objects" that make up the content are identified and easily reconnected to the SAS instructions that produced them in the first place. It can&amp;nbsp; also be exported to HTML, and/or copied to the Windows clipboard and pasted as HTML in non-SAS applications.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, the .srx format isn't usable outside of SAS and so in later versions, SAS Enterprise Guide uses HTML5 as its default output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the context of a SAS Enterprise Guide project, you can use the Report builder interface (File-&amp;gt;New-&amp;gt;Report) to build a SAS report with the different pieces of output from tasks and programs, add titles and annotations, and arrange content in a grid layout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisHemedinger_2-1650889547471.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70835iEEEE34D09D3E3568/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChrisHemedinger_2-1650889547471.png" alt="ChrisHemedinger_2-1650889547471.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisHemedinger_1-1650889516854.png" style="width: 559px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70834i11491E3D413A135C/image-dimensions/559x123?v=v2" width="559" height="123" role="button" title="ChrisHemedinger_1-1650889516854.png" alt="ChrisHemedinger_1-1650889516854.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then Share this output to Excel or any Microsoft Office client...if you have the SAS Add-In for Microsoft Office installed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you cannot programmatically control the layout of an .srx file using ODS statements like ODS LAYOUT. Only the client applications like SAS EG or SAS Add-In can manipulate it. If you want to programmatically control the layout, then you must select another output destination like HTML5 or perhaps the tagsets.MSOffice2k (which offers some coarse-grained layout in the form of panels options).&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 12:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809672#M319298</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-04-25T12:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809696#M319306</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I now understand a bit better how this works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to clarify, here is what I do to build this Excel pack:&lt;/P&gt;
&lt;P&gt;- I use the Report Builder Interface to build a number of SAS reports;&lt;/P&gt;
&lt;P&gt;- I then export them as .srx format and import in Excel using the SAS Add-In for MS Office. The reports are spread across a number of tabs&amp;nbsp; (and work very well apart from this formatting issue).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do so in order to have an automated process, and to have everything in one place (Excel).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see exporting in Html keeps the formatting, but if I had all the outputs in html I'd need to combine all of those in one central place (like I do in Excel).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using&amp;nbsp;&lt;SPAN&gt;tagsets.MSOffice2k I can only see the html output - I don't see where the excel output is created? here is what I'm using&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options sastrace=',,,d' sastraceloc=saslog NOSTSUFFIX;
OPTIONS FULLSTIMER;


 ods tagsets.msoffice2k_x 
file="%sysfunc(getoption(work))/output.xls" 
 options(panelcols="2") style=normal;


Title "Tables";


	PROC SQL;
		Title "Table 1";
		SELECT t1.Make, 
			t1.Model, 
			t1.Type, 
			t1.EngineSize
		FROM SASHELP.CARS t1
			WHERE MAKE IN ("Saab", "Volvo")
		;
	QUIT;



	PROC SQL;
		Title "Table 2";
		SELECT t1.Make, 
			t1.Model, 
			t1.Type, 
			t1.EngineSize
		FROM SASHELP.CARS t1
			WHERE MAKE IN ("BMW", "Infiniti")
		;
	QUIT;

 ods tagsets.msoffice2k_x close;&lt;/PRE&gt;
&lt;P&gt;again, many thanks&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;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 13:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809696#M319306</guid>
      <dc:creator>MART1</dc:creator>
      <dc:date>2022-04-25T13:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Report exported to Excel in .srx does not displays tables side by side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809736#M319321</link>
      <description>&lt;P&gt;The file is in the WORK folder for your SAS session. EG should detect it and offer to download/open it for you in an external application:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisHemedinger_0-1650905268401.png" style="width: 566px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70849i824A11FA9B5AF572/image-dimensions/566x88?v=v2" width="566" height="88" role="button" title="ChrisHemedinger_0-1650905268401.png" alt="ChrisHemedinger_0-1650905268401.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use the Copy Files task in EG to add a download step to your process flow to copy this file from the server to a local folder on your PC.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 16:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Custom-Report-exported-to-Excel-in-srx-does-not-displays-tables/m-p/809736#M319321</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-04-25T16:48:53Z</dc:date>
    </item>
  </channel>
</rss>

