On Tue, Jul 29, 2008 at 7:15 AM, kunal <firstname.lastname@example.org> wrote:
> Hi everyone!!
> I am trying to automate the multiplicative model(a double log model).
> I have managed to do a bit of automation by using merge statements.
> The process can be significantly automated if we can use the column as
> an array.
> For eg:
> Marks is the column name and the values listed are the row values. Can
> i know access column values as an array value such that a = 55 ,
> a = 63 and so on.??
> can any1 gime me any pointers or code for doing this
You can have it. In one pass of dataset (within a datastep) you can load the
values(Marks) into a TEMPORARY array say:
array a[NUM] _temporary_;
NUM is the number of Distinct values of Marks.
In the next Pass, within the same datastep, you can use a, a ...
If you want to use a to a[NUM] then declare the array (having NUM + 1
array a[0:NUM] _temporary_ ;
If you show some small example dataset then someone will show you the way to
go with temporary array.