SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 45107: Relative paths are needed when creating a table of contents with the ExcelXP tagset on platforms other than Microsoft Windows

DetailsAboutRate It

Creating a table of contents using the INDEX= or CONTENTS= ExcelXP tagset option might generate invalid links to the worksheets in the current workbook. This can occur if the XML file that is generated was created on an operating system other than Microsoft Windows, and an absolute path is specified as the URL. This issue can also occur if the file is moved or e-mailed, and the absolute path specified for the URL is no longer valid.

To create a relative link to the actual worksheet, use the combination of the PATH= and the FILE= ODS options with the URL= suboption. The URL=NONE suboption should be applied to both the PATH= and the FILE= ODS options. However, because of an existing problem, the URL=" " suboption with two embedded spaces must be applied to the FILE= ODS option to generate a relative path to the actual worksheet.

The sample code below illustrates this.

ods tagsets.excelxp path="c:\"(url=none) file="temp.xml"(url="  ") options(index="yes");

proc print data=sashelp.class;
run;

ods tagsets.excelxp close;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.2 TS2M3
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M3
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M3
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M3
Microsoft Windows XP 64-bit Edition9.2 TS2M3
Microsoft® Windows® for x649.2 TS2M3
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M3
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M3
Microsoft Windows Server 2003 Standard Edition9.2 TS2M3
Microsoft Windows Server 2003 for x649.2 TS2M3
Microsoft Windows Server 20089.2 TS2M3
Microsoft Windows Server 2008 for x649.2 TS2M3
Microsoft Windows XP Professional9.2 TS2M3
Windows 7 Enterprise 32 bit9.2 TS2M3
Windows 7 Enterprise x649.2 TS2M3
Windows 7 Home Premium 32 bit9.2 TS2M3
Windows 7 Home Premium x649.2 TS2M3
Windows 7 Professional 32 bit9.2 TS2M3
Windows 7 Professional x649.2 TS2M3
Windows 7 Ultimate 32 bit9.2 TS2M3
Windows 7 Ultimate x649.2 TS2M3
Windows Vista9.2 TS2M3
Windows Vista for x649.2 TS2M3
64-bit Enabled AIX9.2 TS2M3
64-bit Enabled HP-UX9.2 TS2M3
64-bit Enabled Solaris9.2 TS2M3
HP-UX IPF9.2 TS2M3
Linux9.2 TS2M3
Linux for x649.2 TS2M3
OpenVMS on HP Integrity9.2 TS2M3
Solaris for x649.2 TS2M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.