PING  0.9
Statistical data handling and processing in production environment
var_to_distinct

Create a macro variable for each distinct value of a given variable in a dataset.

%var_to_distinct(dsn, var, oname=, _count_=, lib=WORK);

Arguments

  • dsn : ;
  • var : ;
  • oname : (option);
  • lib : (option).
  • global : (option) boolean flag (yes/no) set declare the created macro variables as global;

Returns

  • _count_ : (option).

References

  1. Hemedinger, C. (2012): "Implement BY processing for your entire SAS program".

See also

%var_to_list.