I have a data like:
a b
1 5
2 7
;
and i want to change it to:
a b c d
1 5 1 2
1 5 2 3
1 5 3 4
1 5 4 5
2 7 2 3
2 7 3 4
.........
I use the code:
data temp;
input a b @;
retain a b;
do start=a to b by 1;
end=start+1;
output;
start=start+1;
if end>=b;
end;
But i cannot work. Could any body please help me????
Thanks a lot!