PING
0.9
Statistical data handling and processing in production environment
|
Generate a quoted text that can be interpreted by the BY
clause of a SQL procedure.
dsn
: a dataset reference;var
: list of fields/variables of the input dataset dsn
that will be used inside a 'BY' clause;lib
: (option) name of the input library; by default: empty, i.e. WORK
is used._by_
: name of the macro variable storing the SQL-like expression based on var
input parameter and that can be used by in a BY
clause of a SQL-procedure.
The simple example below:
returns exprby=a, b, h
since variable z
is not present in _dstest6
.
%ds_select, %sql_clause_as, %sql_clause_add, %sql_clause_modify, %sql_clause_where.