Hi Louis, Whenever you have anything in COMMON and you are calling subroutines you have to have all of your common variables exactly the same in all of the programs and subroutines. This is because COMMON is positional instead of named, and if they aren't the same size (in number) then obviously they cannot be matched up by position! Program 1 can actually have different names in common from program 2 and it will work as long as there are the same number of elements, so program 1 might have:
COMMON PAGE.SIZE, LINES.PER.PAGE and program 2 might have COMMON NUMBER.OF.COLUMNS, NUMBER.OF.LINES and everything would still work. But if you had program 1 do: COMMON PAGE.SIZE, LINES.PER.PAGE and program 2 does: COMMON NUMBER.OF.COLUMNS then you end up with a size error (which should maybe be renamed to "NUMBER OF COMMON ELEMENTS mismatched" error?) I once had to change 35 SO.ENTRY subroutines just to add one variable to common. Fun stuff! (not) HTH Allen E. Elwood Senior Programmer Analyst Curnayn and Associates Direct (818) 361-5251 Fax (818) 361-5251 Cell (818) 359-8162 Home (818) 361-7217 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Louis Sent: Friday, August 06, 2004 6:44 AM To: [EMAIL PROTECTED] Subject: [Norton AntiSpam] [U2] UniVerse/AIX - COMMON error message Hi All, Error: COMMON size mismatch in subroutine "EDI.MAIN.B". Sequence of events: 1 - Account A 'EDI.DRIVER.A' runs and executes 'EDI.MAIN.A'. No problem 2 - 'EDI.DRIVER.A' logs to account B to run 'EDI.DRIVER.B' which calls 'EDI.MAIN.B' where the error message is displayed and the program 'EDI.MAIN.B' does not execute at all. I hope this makes sense. What causes this problem? Has anyone run into this error message? Thanks for your help. ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
