From: Emil on
let x = 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 1 .....6 and so on.


thans for help

Emil
From: PJ on
try this. If you want to create 10 times.

%let n = 10;
%let m = 6;

data a(drop=i j);
do i = 1 to &n;
do j = 1 to &m;
x = j;
output;
end;
end;
run;
From: Joe Matise on
Seems easier:
%let n = 10;
%let m = 6;

data a;
do _n_ = 1 to &n;
do x = 1 to &m;
output;
end;
end;
run;

-Joe

On Fri, Feb 5, 2010 at 7:54 AM, PJ <luxuemei1(a)yahoo.com> wrote:

> try this. If you want to create 10 times.
>
> %let n = 10;
> %let m = 6;
>
> data a(drop=i j);
> do i = 1 to &n;
> do j = 1 to &m;
> x = j;
> output;
> end;
> end;
> run;
>