Hi All,
I'm trying to use the retain method to create concatenated variables.
While the cnt is less than 12 retain and concat each KVar to the KVar of the next row. Then once 12 is equaled, create kVarKeep, clear the value of Temp, then continue to the end of the data set.
This what I'm trying to get:
KNum KVar LKVars Cnt KVarKeep
1 Var1 4 4 .
2 Var2 4 8 .
3 Var3 4 12 Var1 Var2 Var3
4 Var4 4 4 .
5 Var5 4 8 .
6 Var6 4 12 Var4 Var5 Var6
7 Var7 4 4 .
8 Var8 4 8 Var7 Var8
I'm trying to do this because of the limitations in the # of characters that can be placed into a single marco variable. I have an AF frame that allows users to select fields from a list box, when the user selects more than the single variable can handle the submission to the rsubmit data step fails.