Thanks Ray, seems close. I was also thinking along the lines of the trick
using the named common to assign multiple common variables to one
dimensioned array in a different prog without a mismatch error.
eg.
prog1
common /xxx/ a,b,c(9)

prog2
common /xxx/ z(11)

Cheers,
Stuart

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Ray Wurlod
> Sent: Wednesday, 9 June 2004 16:12
> To: [EMAIL PROTECTED]
> Subject: Re: [U2] how to assign dimensioned array to a matrix?
>
>
> You could experiment with MATBUILD to convert to a dynamic array,
> then using the start (and maybe end) options with MATPARSE to put
> it into the appropriate location in the dimensioned array.
>
> ----- Original Message -----
> From: "Stuart Boydell" <[EMAIL PROTECTED]>
> Date: Wed, 9 Jun 2004 14:51:29 +1000
> To: "U2-Users" <[EMAIL PROTECTED]>
> Subject: [U2] how to assign dimensioned array to a matrix?
>
> > I want to be able to store a set of dimensioned data at any
> given position
> > in a matrix. Equivalent to storing a java Array in a Vector.
> >
> > In basic something like...
> >
> > dim rec(17)
> > dim rec.store(9,17)
> > mat rec.store = ''
> > pos = 0
> > ...
> > matread rec from f.file,id then
> >   pos += 1
> >   mat rec.store(pos) = rec ;*// assign fails
> > end
> >
> > Obviously this won't compile because of the mat assignment statement but
> > hopefully it shows what I am trying to acheive. What I wondered
> was if there
> > are any tricks so that it could be done without resorting to element by
> > element loops?
> >
> > --
> > Cheers,
> > Stuart Boydell
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > **********************************************************************
> > This email message and any files transmitted with it are confidential
> > and intended solely for the use of addressed recipient(s). If you have
> > received this email in error please notify the Spotless IS
> Support Centre (61 3 9269 7555) immediately who will advise
> further action.
> >
> > This footnote also confirms that this email message has been scanned
> > for the presence of computer viruses.
> > **********************************************************************
> > -------
> > u2-users mailing list
> > [EMAIL PROTECTED]
> > To unsubscribe please visit http://listserver.u2ug.org/
> -------
> u2-users mailing list
> [EMAIL PROTECTED]
> To unsubscribe please visit http://listserver.u2ug.org/
>



**********************************************************************
This email message and any files transmitted with it are confidential
and intended solely for the use of addressed recipient(s). If you have 
received this email in error please notify the Spotless IS Support Centre (61 3 9269 
7555) immediately who will advise further action.

This footnote also confirms that this email message has been scanned
for the presence of computer viruses.
**********************************************************************
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to