%set(name,string) OR %gset(name,string)
DescriptionCreates a simple macro called name which expands to string.
%set() defines the macro in the current dynamic scope, while %gset() defines
the macro in the document's global scope. Macros with dynamic scope are:
define, dir, enumtoken, gdefine, gmacro, macro, sql, and try.
Note that when name is expanded, string will not be recursively expanded.
See the example below. Note how the first value for %name% is set to
Another way of looking at this is that %set is for creating 'variables' and %define is for creating 'functions'.
%set(name1,Basil%bop%) %define(name2,'Basil%bop%) %set(bop,foobar) Results: set: Basil%bop% define: Basilfoobar