Usage Note 23495: How do I generate a TAB-delimited file using the ODS MARKUP statement?
You can modify Tagsets.CSV to create a tagset that uses a TAB character
for the delimiter rather than a
comma. The example below checks to see if the COLSTART variable
has the value of "1". If it
does, then the hexadecimal representation for a TAB is specified. For the mainframe, this
character is "05"x. On ASCII systems the TAB character
is "09"x.
proc template;
define tagset Tagsets.tab;
define event header;
put "09"x / if !cmp( COLSTART , "1" );
put """" / if cmp( TYPE , "string" );
put VALUE;
put """" / if cmp( TYPE , "string" );
end;
define event data;
put "09"x / if !cmp( COLSTART , "1" );
put """" / if cmp( TYPE , "string" );
put VALUE;
put """" / if cmp( TYPE , "string" );
end;
define event colspanfill;
put "09"x;
end;
define event rowspanfill;
put "09"x;
end;
parent=tagsets.csv;
end;
run;
ods markup file="temp.csv" tagset=tagsets.tab;
proc print data=sashelp.class;
run;
ods markup close;
Operating System and Release Information
*
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: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System)
|
| Date Modified: | 2003-12-23 16:27:08 |
| Date Created: | 2003-10-24 16:15:59 |