SAS Tips and Tricks

SAS variable lists

SAS Variable lists allows you to simplify the variable notations in your Data Step code. Very often we forget that capability of the SAS programing language which can be particularly useful when lot of variables have similar name and have to processed together.


You are working in a Data Step and would like to use 30 variables in an aggregation function like sum or mean (etc.) For doing that, you could hardcode the 30 variables in the function argument or eventually create a SAS macro for doing that. Another option would be to use SAS variable list. This tips and tricks first explain the different kind of variable list:

  • numbered range lists
  • name range lists
  • name prefix lists
  • special SAS name lists
and then shows in which context they can be used :
  • in functions
  • in format statement
  • in keep or drop statements
  • in arrays


You have some SAS experience and know how to program a Data Step. You have lot of variables to process in your tables.

Quick Facts

  • Scheduled date: Course not yet scheduled
  • Duration :3 Hours
  • Fee :255 Euros (VAT Exclusive)
  • Language: French/English
  • Included: Coffees, tips and tricks material

Christophe Kabacinski

click here to get more information about this teacher.

Course Location

This course will be organized at : Boulevard Simon Bolivar 34 1000 Bruxelles

Go back to your selection