Problem Note 62734: PROC DSTODS2 produces errors
The DSTODS2 procedure is available beginning in the fifth maintenance release of SAS® 9.4 (TS1M5) to convert a DATA step program to a PROC DS2 program. The IN= option supplies the name of the DATA step program and the OUT= option supplies the name of the newly created PROC DS2 program. When a fully qualified path is supplied for OUT= option, PROC DSTODS2 can fail with error messages like the following:
ERROR: Could not generate formats text file.
ERROR: Could not compile source code.
The errors occur because the OUT= option does not support a fully qualified path before the name of the file being created. The sample code below illustrates syntax that generates the errors:
proc dstods2 in="c:\mydir\dstods2_dstep.sas"
out="c:\mydir2\myds2code.sas";
run;
The errors can also occur if only a filename is supplied for the OUT= option because the path that is used in the IN= parameter is prepended to the filename supplied in the OUT= option. The sample code below illustrates this:
proc dstods2 in="c:\mydir\dstods2_dstep.sas"
out="dstods2_dstep.sas";
run;
To circumvent the issue, the new OUTDIR= option can be used to specify the path to the newly created file containing the PROC DS2 code.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.4 TS1M5 | 9.4 TS1M6 |
z/OS 64-bit | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft® Windows® for x64 | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows 8 Pro x64 | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows 10 | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows Server 2008 | 9.4 TS1M5 | |
Microsoft Windows Server 2008 R2 | 9.4 TS1M5 | |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M5 | |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows Server 2012 Std | 9.4 TS1M5 | 9.4 TS1M6 |
Microsoft Windows Server 2016 | 9.4 TS1M5 | 9.4 TS1M6 |
Windows 7 Enterprise 32 bit | 9.4 TS1M5 | 9.4 TS1M6 |
Windows 7 Enterprise x64 | 9.4 TS1M5 | 9.4 TS1M6 |
Windows 7 Home Premium 32 bit | 9.4 TS1M5 | 9.4 TS1M6 |
Windows 7 Home Premium x64 | 9.4 TS1M5 | 9.4 TS1M6 |
Windows 7 Professional 32 bit | 9.4 TS1M5 | 9.4 TS1M6 |
Windows 7 Professional x64 | 9.4 TS1M5 | 9.4 TS1M6 |
Windows 7 Ultimate 32 bit | 9.4 TS1M5 | 9.4 TS1M6 |
Windows 7 Ultimate x64 | 9.4 TS1M5 | 9.4 TS1M6 |
64-bit Enabled AIX | 9.4 TS1M5 | 9.4 TS1M6 |
64-bit Enabled Solaris | 9.4 TS1M5 | 9.4 TS1M6 |
HP-UX IPF | 9.4 TS1M5 | 9.4 TS1M6 |
Linux for x64 | 9.4 TS1M5 | 9.4 TS1M6 |
Solaris for x64 | 9.4 TS1M5 | 9.4 TS1M6 |
*
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.
Type: | Problem Note |
Priority: | medium |
Topic: | SAS Reference ==> Procedures
|
Date Modified: | 2018-08-28 14:18:27 |
Date Created: | 2018-08-09 15:11:56 |