From: Clark An on 21 Feb 2010 22:16 Thank you I know we can do it with %do loop I wanna sovle it just in data step.
From: Tom Abernathy on 22 Feb 2010 09:03 You can create a multi-dimensional array in SAS. Look at the arrary statement in your manual for the syntax. I really cannot see how the proposed structure would be useful for anything. At this point it might help if you explained the actual problem rather than the technical problem you are having with the approach you have adopted. On Feb 21, 10:17 am, kuh...(a)126.COM (Clark An) wrote: > Thank you. > > Then how abt > > do i=1 to 10; > do j=1 to 15; > do k=1 to 100; > do l=1 to 20; > do m=1 to 17; > do n=1 to 23; > X&i&j&k&l&m&n=&i+&j+&k+&l+&m+&n; > output; > end; > end; > end; > end; > end; > end;
From: montura on 22 Feb 2010 09:11 You are attempting to use Base/SAS for programming that is really the domain of SCL. This is simple transaction-style processing where the data can be loaded into a LIST in ENVLIST, which is a session resource. Data can be accessed across data steps and procedures until SAS terminates. You can stick with Base/SAS but the macro generation and updates will cause non-stop fumbles, especially in a few months when the specs change or you discover tghat you miss a condition. Learn SCL.
From: Clark An on 22 Feb 2010 11:06 Thank you. Then how can I determine the X&i&j&k&l&m&n by i j k l m n if using multi-dimensional array? A kinda complicated....
From: Clark An on 22 Feb 2010 11:04 Thank you. How's the performance of sas/r pls?
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: Oracle Clinical: table RXC_DCI_BOOK_PAGES Next: Macro variable and do loop |