PING
0.9
Statistical data handling and processing in production environment
|
Generate a statement that can be interpreted by the ADD
clause of a SQL procedure.
dsn
: a dataset reference;var
: list of fields/variables that will be added to dsn
(if they don't already exist in the dataset)through 'ADD' clause;typ
: (option) type(s) of the var
fields/variables added to the dataset; it must be of length 1 or of the same lenght as var
: in the former case, it will be replicated to the lenght of var
; default: type=CHAR
;lib
: (option) name of the input library; by default: empty, i.e. WORK
is used._add_
: name of the macro variable storing the SQL-like expression based on var
and typ
input parameters and that can be used by in an ADD
clause of a SQL-procedure (e.g., PROC ALTER
).
The simple example below:
returns expradd=y char, z char
since variables y
and z
are the only ones not already present in _dstest6
.
%ds_alter, %sql_clause_modify, %sql_clause_as, %sql_clause_by, %sql_clause_where.