![]() | ![]() | ![]() | ![]() |
Error messages like the following might be generated when you use an ODS HTML statement with a FILE= option that specifies a fully qualified path with a directory and a filename:
This is most likely to occur beginning in the fifth maintenance release of SAS® 9.4 (TS1M5) when you use the SAS® windowing environment.
The problem occurs because the "Use SASWORK" option is set as the default in the SAS registry and preferences. This causes the WORK folder to be prefixed to the path that is specified with the FILE= option.
There are three possible circumventions for this issue. Choose one of the following:
1. Use the best practice for generating HTML files. Separate the path from the filename using a combination of the PATH= option to specify the directory, and the FILE= option to specify the filename. For example:
2. Select Tools ► Options ► Preferences from the SAS menu bar and select the Results tab. Clear the Use SASWORK check box.
3. Modify your SAS registry to disable the "Use SASWORK" option. This can be done interactively using the SAS Registry editor or by using PROC REGISTRY to modify this setting programmatically.
The sample code below saves the registry key settings to a temporary file with the DATA step, and then uses PROC REGISTRY to import the key settings. The "Use SASWORK" option will not be enabled for subsequent ODS HTML statements.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | Base SAS | Windows 7 Enterprise x64 | 9.4 TS1M5 | |
Windows 7 Enterprise 32 bit | 9.4 TS1M5 | |||
Microsoft Windows Server 2016 | 9.4 TS1M5 | |||
Microsoft Windows Server 2012 Std | 9.4 TS1M5 | |||
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M5 | |||
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M5 | |||
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M5 | |||
Microsoft Windows Server 2008 for x64 | 9.4 TS1M5 | |||
Microsoft Windows Server 2008 R2 | 9.4 TS1M5 | |||
Microsoft Windows Server 2008 | 9.4 TS1M5 | |||
Microsoft Windows 10 | 9.4 TS1M5 | |||
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M5 | |||
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M5 | |||
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M5 | |||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M5 | |||
Microsoft Windows 8 Pro x64 | 9.4 TS1M5 | |||
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M5 | |||
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M5 | |||
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M5 | |||
Microsoft® Windows® for x64 | 9.4 TS1M5 | |||
z/OS 64-bit | 9.4 TS1M5 | |||
z/OS | 9.4 TS1M5 | |||
Windows 7 Home Premium 32 bit | 9.4 TS1M5 | |||
Windows 7 Home Premium x64 | 9.4 TS1M5 | |||
Windows 7 Professional 32 bit | 9.4 TS1M5 | |||
Windows 7 Professional x64 | 9.4 TS1M5 | |||
Windows 7 Ultimate 32 bit | 9.4 TS1M5 | |||
Windows 7 Ultimate x64 | 9.4 TS1M5 | |||
64-bit Enabled AIX | 9.4 TS1M5 | |||
64-bit Enabled Solaris | 9.4 TS1M5 | |||
HP-UX IPF | 9.4 TS1M5 | |||
Linux for x64 | 9.4 TS1M5 | |||
Solaris for x64 | 9.4 TS1M5 |