As the common block remains alive for the duration of your login, you will also need to take into account cross-logging across multiple accounts. If you have multiple accounts, then you will need to reset the common block whenever you logto another account. Alternatively, you could build some logic in the subroutine to check whether you have just logged into another account.
Rgds Bernard Lubin Development Department Reynolds and Reynolds -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of john reid Sent: Friday, 25 January 2008 1:56 AM To: list Subject: [U2] Universe 20.1 itype perf enhancer I just saw this today, and although i am certain that everyone must know it already, i am including it. For itypes that call subroutines, where the subroutines open lots of files, put a named common in the subroutine that contains what amounts to dimensioned arrays that hold the file vars. Put a switch in so that the files are opened only once. Anecdotally, this appears to work more efficiently than not having the common. If there are reasons why this is ill-advised, I'd like to see that as well. thanks. John COMMON /SETUP.STUFF/MY.FILES(15),FIRST.IN.SWITCH -- john ------- 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/