Usage Note 18469: FILE statement's DSD option only honored for simple and modified
list output
According to the SAS Language Reference: Dictionary, the DSD option on
the FILE statement enables you to write delimited data values that
contain embedded delimiters using simple or modified list output.
This option is ignored for other types of output (e.g. formatted,
column, named). The DATA step below that writes "Test 1" illustrates
that DSD is not used for formatted output.
data inp;
input a b c;
datalines;
1 2 3
2 3 4
3 4 5
4 5 6
5 6 7
6 7 8
;
/* */
/* formatted output, so no delimiter */
/* after variable A */
/* */
data _null_;
set inp;
file log dsd;
if _n_ = 1 then
put 'Test 1';
put a 5.0 (b c) (:2.0);
run;
/* */
/* remove format, so simple list */
/* output */
/* */
data _null_;
set inp;
file log dsd;
if _n_ = 1 then
put 'Test 2';
put a (b c) (:2.0);
run;
/* */
/* manually place delimiter after */
/* formatted output */
/* */
data _null_;
set inp;
file log dsd;
if _n_ = 1 then
put 'Test 3';
put a 5.0 ',' (b c) (:2.0);
run;
/* */
/* modified list for all variables */
/* */
data _NULL_;
set inp;
file log dsd;
if _n_ = 1 then
put 'Test 3';
put a :5.0 (b c) (:2.0);
run;
Operating System and Release Information
| SAS System | Base SAS | Microsoft Windows XP Professional | 9.1 TS1M3 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 | |
| Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 | |
| z/OS | 9.1 TS1M3 | |
| 64-bit Enabled Solaris | 9.1 TS1M3 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | |
| Linux | 9.1 TS1M3 | |
| Linux on Itanium | 9.1 TS1M3 | |
| HP-UX IPF | 9.1 TS1M3 | |
| 64-bit Enabled HP-UX | 9.1 TS1M3 | |
| OpenVMS Alpha | 9.1 TS1M3 | |
| 64-bit Enabled AIX | 9.1 TS1M3 | |
| Tru64 UNIX | 9.1 TS1M3 | |
*
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: | Usage Note |
| Priority: | |
| Topic: | SAS Reference ==> Procedures ==> OUTPUT
|
| Date Modified: | 2006-09-08 14:48:23 |
| Date Created: | 2006-09-08 14:48:23 |