Re: [U2] LIST reports and Fields that Do reads
I had forgotten that one! -Original Message- From: David Wolverton dwolv...@flash.net To: U2 Users List u2-users@listserver.u2ug.org Cc: u2-users u2-users@listserver.u2ug.org Sent: Fri, Jul 19, 2013 10:13 pm Subject: Re: [U2] LIST reports and Fields that Do reads In UniData we also make sure the file is opened to a COMMON variable. Makes a huge performance difference vs doing the OPEN on every call to the subroutine. YMMV Sent from my iPhone. Please forgive brevity as well as any auto-corrected or fat finger spelling errors! On Jul 19, 2013, at 1:29 PM, randyleesmith randyleesm...@roadrunner.com wrote: In this case it is a SUBR call. Ok, thanks I'm a little older school and speed was always an issue I had to be aware of. Thanks for all the quick feedback. - I used to be an Optimist until I knocked over the glass. -- View this message in context: http://u2-universe-unidata.1073795.n5.nabble.com/LIST-reports-and-Fields-that-Do-reads-tp41304p41308.html Sent from the U2 - Users mailing list archive at Nabble.com. ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] LIST reports and Fields that Do reads
From: David Wolverton In UniData we also make sure the file is opened to a COMMON variable. Makes a huge performance difference vs doing the OPEN on every call to the subroutine. YMMV From: Wjhonson I had forgotten that one! Wow, I thought that was SOP these days across all new MV apps of any size. Then again we hardly ever discuss style and coding patterns in these forums so it's no surprise that patterns like this aren't as common as Design Patterns ala GOF. I never re-open a file if it's used across many programs, and I use Include items to contain the housekeeping that determines whether to open the files and to do the opening. I use named common in D3 because it keeps the files open across level pushing and between TCL executions. The pattern is: - Enter into a program - Move into the Include code - If current account is not the same as the prior account, set INIT=-1 - Check INIT flag -- If not set or -1 do all initialization, open files -- Otherwise just continue - Return to the functional code These patterns make for small and well organized code. It's easy to make a single change that affects the entire application (need to get them right though). Adding new modules is easier because the housekeeping is already done elsewhere. Optimizations in one place can impact the entire app. HTH T ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] [UV] and the Hebrew character set
Hello, Has anyone here ever used Universe with a Hebrew character set ? Is it neccessary to to with a full 16-bit Unicode character set or are there older 8-bit character sets that are useable ? Also since text is apparently read from right to left (like in arabic) how are sorts affected ? (Must dictionnary elements be changed from left justified to right justified ?) Jacques G. ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users