Previous Page | Next Page

TEMPLATE Procedure: Creating Markup Language Tagsets

Example 4: Executing Events Using the TRIGGER= Statement


PROC TEMPLATE features:

DEFINE TAGSET statement:

DEFINE EVENT statement:

PUT statement

TRIGGER statement

Other ODS features:

ODS directory.tagset-name statement



Program Description

This example illustrates how to execute events.


Program

 Note about code
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

 Note about figure

[Output Created from Events and Tagsets.mytagset Template]

Previous Page | Next Page | Top of Page