TEMPLATE Procedure: Creating Markup Language Tagsets |
PROC TEMPLATE features: |
DEFINE
TAGSET statement:
|
DEFINE EVENT statement:
|
PUT statement |
|
TRIGGER
statement | | |
|
Other ODS features: |
ODS directory.tagset-name statement |
|
This example illustrates how to execute events.
|
proc template;
define tagset tagsets.mytagset;
define event doc;
start:
put 'start of doc' nl;
trigger mytest;
trigger otherevent;
finish:
trigger mytest;
put 'finish of doc' nl;
trigger mytest start;
trigger otherevent;
trigger mytest finish;
end;
define event mytest;
start:
put 'start of mytest' nl;
finish:
put 'finish of mytest' nl;
end;
define event otherevent;
put 'This is my other event' nl;
end;
end;
run;
ods tagsets.mytagset file='custom-tagset-filename.txt';
ods tagsets.mytagset close; |
Output Created from Events and Tagsets.mytagset Template
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.