Search code examples
loopssasstripdo-loopssas-studio

use of !! in Call Symput in SAS


Could anyone tell me what this data step is doing? I have never seen the use of "!!" or a "double exclamation mark" before?

data _null_;
set &dset_in.;
if i = _n_ then do i=1 to nvar;
    call symput ("var" !! strip(put(_n_, 3.)), strip(Variabile));
    call symput ("min" !! strip(put(_n_, 3.)), strip(lim_inf));
    call symput ("max" !! strip(put(_n_, 3.)), strip(lim_sup));
end;
run;

A general gist of the loop would be helpful too, thanks


Solution

  • It's just used for concatenation (instand of || ).