Hello all,
I have a task that I am having trouble carrying out being a SAS novice but it may be simple after all.
I have some curve names and for each of them I have to create a variable containing two points of the curve. The names of the points are simple to create using a cat function but I cannot figure out how to program an efficient process that creates a new variable with two observations for each observation in the input variable.
Thus, in my input table I have:
CURVE
curve1
curve2
curve3
And I need:
CURVE_POINT
curve1_0
curve1_1200
curve2_0
curve2_1200
curve3_0
curve3_1200
Should I do this with a loop? If so, how do I specify the need to do the loop for all rows of the curve variable? Counting the number of rows seems to be not so simple in SAS...
Thank you so much for your time, it is not easy to be starting out in SAS programming.