While you're at it, move the DIM to a file to be included in all the programs that use it. Then when you need to change it again in the future, it's in 1 place. Also create a "compile list" program that includes all of the programs that use it as well. After you change the include file to resize the dimensioned array, you run that 1 program to recompile everything. And lastly, pad the file with unused fields when you resize it. Say if you are using 100 fields right now, and adding 4, add another 6 for future use. This saves you from have to recompile when you want to change it next time. Unless of course you need more than 6 more fields next time.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: Thursday, May 12, 2005 10:46 AM To: Ardent List Subject: [U2] I'm in an Array quandry, any suggestions... 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? George Gallen Senior Programmer/Analyst Accounting/Data Division [EMAIL PROTECTED] ph:856.848.1000 Ext 220 SLACK Incorporated - An innovative information, education and management company http://www.slackinc.com ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/