|
To extract multiple non-adjacent columns, use the COLUMN macro function to create a column containing the column numbers to select. See the examples below.
|
Creates a new column named TEMP containing the number three.
|
TEMP = SELECT(1, V1) or TEMP = SELECT(1, V1:V3)
|
Creates three new columns named TEMP, VX, and VY. TEMP is a copy of column V2, VX is a copy of column V3, and VY is a copy of column V4.
|
Creates two new columns named TEMP and VX. TEMP is a copy of column V6, and VX is a copy of column V9.
|
Creates two new columns named TEMP and VX, each containing 50 values. TEMP is a copy of cells 25-74 of column V6, and VX is a copy of cells 25-74 of column V9. The other cells in TEMP are empty.
|
Copyright IBM Corporation 2013. All Rights Reserved.
|