![]() |
PING
0.9
Statistical data handling and processing in production environment
|
Generate a statement (text) that can be interpreted by the MODIFY clause of a SQL procedure.
dsn : a dataset reference;var : list of fields/variables of the input dataset dsn that will be modified;fmt, len, lab : (options) format, length and label associated to the list of variables passed through var; must all be of the same lenght as var;lib : (option) name of the input library; by default: empty, i.e. WORK is used._mod_ : name of the macro variable storing the SQL-like expression based on var, fmt, len and lab input parameters, and that can be typically in a MODIFY clause of a SQL-procedure (e.g., PROC ALTER).
The simple example below:
returns `modexpr=d FORMAT=$20. LENGTH=20 LABEL='d2', e FORMAT=10.2 LENGTH=8 LABEL='e2'`.
%ds_alter, %sql_clause_add, %sql_clause_as, %sql_clause_by, %sql_clause_where, MODIFY.