Create the customized tagset. Submit the following PROC TEMPLATE code to create the customized tagset Tagsets.mycsv. The DEFINE EVENT TABLE statement uses the PUT NL statements to add two blank lines to the output file. One blank line is placed before the table and the other is placed after the table.
define tagset Tagsets.mycsv; notes 'This is the My CSV template'; define event table; start: put nl; finish: put nl; end; define event put_value; put VALUE; end; define event put_value_cr; put VALUE NL; end; define event row; finish: put NL; end; define event header; start: put ',' /if ^cmp( COLSTART, '1'); put ''''; put VALUE; finish: put ''''; end; define event data; start: put ',' /if ^cmp( COLSTART, '1'); put ''''; put VALUE; finish: put ''''; end; define event colspanfill; put ','; end; define event rowspanfill; put ',' /if ^exists( VALUE); end; define event breakline; put NL; end; define event splitline; put NL; end; registered_tm = '(r)'; trademark = '(tm)'; copyright = '(c)'; output_type = 'csv'; stacked_columns = OFF; end;