Created data set “S” and created variables i and y, as i moves from 1 to 10, y shows square of each observation in i.
Created data set “T” and created variables i and y, as i moves from 1 to 10, y shows square of each observation in i. This time, I have incremented by 2. Now, i contains every 2nd number starting from 1 upto 10. y takes in values accordingly.
Suppose, we do not want variable i in the report. We can drop i and yet retain y. Created data set “U” and dropped i.
Created data set “V”. Added a variable num which increases by 2 each time the looping occurs.
CONDITIONAL LOOP – UNTIL STATEMENT
CONDITIONAL LOOP – WHILE STATEMENT
ITERATIVE DO STATEMENTS WITH CONDITIONAL CLAUSES
CREATING SAMPLES USING LOOPS