The {query} and {/query} directive pair delimits the
query section. An input file can contain multiple query sections.
Query sections can be nested within the
eachrow and
norows sections of a query section and within
the
success ,
error , and
norows sections of an update section. Each
query section must contain at least one SQL/eachrow section pair and
can contain multiple pairs.
-
The SQL section is delimited by
the
{sql} and {/sql} directive pair and contains the query to send to the
SAS/SHARE
server.
-
The eachrow section is delimited
by the
{eachrow} and {/eachrow} directive pair. htmSQL applies the details in the eachrow
section to the results set that is generated by the SQL section that
immediately precedes that eachrow section. The eachrow section is
processed once for each row in the results set.
A query section can
also contain a
norows
section, a
{library} directive, and other text, including HTML and variable
references. The text can appear before sections, between sections,
and after sections.