Planning for data transformation
During transformation, modular code is run to develop transformed variables based on native variables. When the same operation is to be performed on a group of similarly formatted variables, a SAS array is used in the data step. When managing a SAS data warehouse, policy needs to be set in relation to the naming of arrays, variables, and code. Furthermore, code style and format must be specified.
This section provides examples and background about SAS arrays, and covers the topics of setting naming and style conventions for SAS arrays, variables, and code.
Understanding arrays in SAS
An array is a type of object in SAS that we have not discussed in this book until now. An array holds a series of values or elements in it and can be designated as either a numeric or character array. The main ways arrays are leveraged in data processing is when they are used in do
loops occurring within data steps. In SAS data warehousing, analysts often set up...