Any attributes outside the range of the dim are added to the last dim(?). 

So what you want to do is ok as long as you are aware of how the data is being 
held.

Ok if you and only you are ever going to work on the system!!!!!

We use an include to hold the dim statement along with an equate table. It 
makes these changes easy. One include to amend and a list of programs to 
compile.

Les

-----Original Message-----
From: George Gallen [mailto:[EMAIL PROTECTED]
Sent: 12 May 2005 16:01
To: [email protected]
Subject: RE: [U2] I'm in an Array quandry, any suggestions...


WOW. I just found an interesting "feature" of UV.

You can MATREAD a record that has more fields than are dimensioned,
   and you can MATWRITE that record back out INTACT without getting an error,

It only bombs with an out of bounds error when you try to reference a
subscript
   past the dimension.

So....as long as any of those program dont try to mess with data it doesn't
know
  about, we "should" be safe.

George

>-----Original Message-----
>[mailto:[EMAIL PROTECTED] Behalf Of George Gallen
>
>I'm modifying some programs that were written about 15-20 years ago,
>there must be 30 or 40 that
>  interact with each other.
>
>Here is the problem.
>All the programs use dimensioned arrays, and they were dimensioned to
>exactly what was needed
> at the time, now I need to add 4 fields to one program. But I'm afraid
>if another program reads this
> newly created array, it will bomb out with an array out of bounds
>error.
>
>What is on my side, is all the programs that reference these files, all
>use the same variable name.
>
>My initial thought was to write a small program that will
>   1. open a program
>   2. search for a dimension of the suspect variable(s)
>   3. increase it's dimension level
>   4. write the program back out
>   5. recompile the program (I don't believe any are cataloged)
>
>Any other ideas?
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

This e-mail and any attachments are confidential and intended solely for the 
use of the addressee only. If you have received this message in error, you must 
not copy, distribute or disclose the contents; please notify the sender 
immediately and delete the message.
This message is attributed to the sender and may not necessarily reflect the 
view of Travis Perkins plc or its subsidiaries (Travis Perkins). Agreements 
binding Travis Perkins may not be concluded by means of e-mail communication.
E-mail transmissions are not secure and Travis Perkins accepts no 
responsibility for changes made to this message after it was sent. Whilst steps 
have been taken to ensure that this message is virus free, Travis Perkins 
accepts no liability for infection and recommends that you scan this e-mail and 
any attachments.
Part of Travis Perkins plc. Registered Office: Lodge Way House, Lodge Way, 
Harlestone Road, Northampton, NN5 7UG.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to