| TEMPLATE Procedure: Creating Markup Language Tagsets |
| PROC TEMPLATE features: |
| |||||||||||||
| Tagset Attributes: |
|
| Program Description |
This example shows a new tagset that does not inherit events from another tagset. This is a customized tagset for specific PROC FREQ output.
| Program |
| |
proc template;
define tagset Tagsets.newloc / store = SASUSER.TEMPLAT;
notes 'This is the Location Report Template'; |
New Tagsets.newloc Template Source
proc template;
define tagset Tagsets.newloc / store = SASUSER.TEMPLAT;
notes 'This is the Location Report Template';
define event basic;
end;
define event doc;
start:
put '' NL NL;
put '' NL;
put '' NL;
put '' NL;
ndent;
finish:
xdent;
put NL;
put '';
end;
define event system_title;
put '';
put VALUE;
put '';
put NL NL;
end;
define event header;
start:
trigger country /if cmp( LABEL, 'EmpCountry');
end;
define event data;
start:
trigger frequency /if cmp( name, 'Frequency');
end;
define event country;
put '' NL;
ndent;
put '';
put VALUE;
put '' NL;
end;
define event frequency;
put '';
put VALUE;
put '' NL;
xdent;
put '' NL;
end;
map = %nrstr('<>&');
mapsub = %nrstr('//&/');
nobreakspace = ' ';
split = '';
indent = 2;
default_event = 'basic';
output_type = 'xml';
stacked_columns = OFF;
end;
run;
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.