Re: [U2] U2-Users Digest, Vol 12, Issue 18

2010-04-19 Thread David A Barrett
but Haydon is a real person, I saw him at U2U in Liverpool last year. I actually thought about asking him if he let everybody know then too, but I never talked to him. Ha! If I remember correctly, little testimonials from people claiming to have seen him was all part of the Cpt. Tuttle ruse,

Re: [U2] UniVerse Slow - Fixed

2010-03-11 Thread David A Barrett
Bill, File MESSAGES Type= 2 Modulo= 1 Sep= 1 Coming across one of these in a system I'm working on always steams me. It has to be one of silliest and most easily avoidable time-bombs people can set in a system. The difference between a modulo 11 and a modulo 1 file on performance is

Re: [U2] uucp

2009-11-23 Thread David A Barrett
UUCP is definitely old-fashioned. The best approach (in my opinion) is to NFS mount the file systems from the production server onto the test server, then use some utility to copy the raw files over. We use cpio. The syntax is something like this (run on the test server): mount -r

Re: [U2] File corrupt

2009-11-09 Thread David A Barrett
Two thoughts on this issue.: 1. Someone suggested using distributed files. Distributed files don't play nice with BSCAN. So if your application uses BSCAN you'll need to work around this. I'm not sure if this has been fixed in UV yet. 2. That script to find the big files was over the top.

Re: [U2] Agile and Scrum

2009-10-19 Thread David A Barrett
Just to be clear on this. Scrum and XP aren't particularly related. Scrum is a project management methodology and doesn't speak to how the programming is done. XP directly relates to how the development is done. Three of the 12 XP practices have overlap with Scrum (Planning Workshops, Small

[U2] Agile and Scrum

2009-10-15 Thread David A Barrett
As a Scrum practitioner in an MV environment for the past 5 years or so, I think I can shed some light on this. First, the Agile Manifesto: We are uncovering better ways of developing software by doing it and helping others do it. Through this work we have come to value: Individuals and

Re: [U2] U2-Users Digest, Vol 6, Issue 12

2009-10-14 Thread David A Barrett
My experience is exactly the opposite. Well written, simple code that approaches its function in straight-forward manner is worth 1000 lbs of specs and documentation. I never, ever approach a maintenance project under the assumption that the documentation from back when has any relevance to

Re: [U2] [UV] Getting to the OS

2009-10-07 Thread David A Barrett
I can't remember how it works in the Unidata world, but on our Universe systems we create a bunch of VOC items called F1, F2, F3, etc. Each one looks a bit like this: Top of F1 in VOC, 6 lines, 11 characters. *--: P 001: D 002: 1 003: 004: 005: 15T 006: S Bottom. Anytime we just want to see

Re: [U2] Getting to the OS

2009-10-06 Thread David A Barrett
The first UniBasic command works; the second command does not... execute 'SH -c pwd ' execute 'SH -c cd / ' execute 'SH -c pwd ' UniVerse on HP-Ux comes back with... /u2/METAL /u2/METAL Help would be appreciated. Yeah. The cd command in unix basically sets an environment variable,

Re: [U2] Using ED

2009-06-25 Thread David A Barrett
Back in the early 90's, I had a stint working with Unidata, and I became addicted to the AE editor. It's virtually identical to ED but has a few really nice enhancements. Things like the EV command and the global searches with the / command instead of C/SOMETHING/SOMETHING/999. I was in

[U2] What Program Am I?

2009-06-23 Thread David A Barrett
We've got a UV client/server application with a thick VB client. The vintage is around 1997, and the architecture has a debug mode that I leave on all the time that logs the calls back to the server and the arguments passed back and forth. The server side stuff is all phantomed off, so the

Re: [U2] uvRunCommand

2009-06-22 Thread David A Barrett
I know we're well into this thread now, but... Most of my goofing around with web page grabs and the like was done before the CallHTTP stuff was out, or when only the really early versions that were buggy were out. So back then we just used wget for grabbing web pages on our Unix based UV

Re: [U2] Personal Edition Modulo Limits

2009-06-04 Thread David A Barrett
You'll have to change the modulo on a system that will allow the larger modulo first. What I would do would be to create a new file on the original system with a smaller modulo and a bigger separation and then copy all of the records into it. Then I'd ftp *that* file over to the PE system

Re: [U2] [u2u] UV on Windows question

2009-06-02 Thread David A Barrett
My main web server running windows server 2003 was last rebooted Feb 2008 ! I guess you haven't patched it either, then. Dave Barrett___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users

Re: [U2] Deep and long indentations vs multiple exit points

2007-12-04 Thread David A Barrett
Marco, I see what you're saying, so I went and looked at some code fresh code I've just written. I see that at its deepest, it goes 5 levels deep, which is pretty close to what you've described. I also noticed something else: In the cases where you could use CONTINUE, all of the ENDs are

Re: [U2] Deep and long indentations vs multiple exit points

2007-11-30 Thread David A Barrett
Curious, I would have done: LOOP WHILE READNEXT ID READ RECORD FROM FILE,ID THEN IF ((RECORDFLD.1 EQ COND1) AND (RECORDFLD.2 EQ COND2) AND (RECORDFLD.3 EQ COND3)) THEN RECORDFLD.4 = 'PROCESSED' END END REPEAT If I was worried about the IF statement getting too long, then I'd do

RE: [U2] Deep and long indentations vs multiple exit points

2007-11-29 Thread David A Barrett
I'm very old school and learned my structured programming in PASCAL. The cardinal rule is that you enter every block of code from the top, and you exit it from the bottom. No one ever got hurt doing this. I can only remember one case in recent history where I actually used mulitple exit points.

Re: [U2] [UV] Can I get some advice on triggers?

2007-11-27 Thread David A Barrett
Keith, For some reason, they implemented Triggers only with SQL commands. I imagine that lots of people that might ordinarly think about using them have been put off by this. Anyways, the documentation is actually fairly reasonable with regards to this feature. It's in the SQL manual, however.

Re: [U2] OCONV Extraction Question

2007-11-23 Thread David A Barrett
D wrote: VAR1 = 'SAM':@VM:'TRUDY' CRT OCONV(VAR1,'WHATEVER') What replaces WHATEVER, so that I can see the value SAM? I cannot find in the documentation or remember for that matter how to extract a single value using the OCONV function. Thanks in advance, Doug I tried using a G

[U2] Re: U2 Users Digest V1 #1968

2007-11-22 Thread David A Barrett
There was this: Speaking of mis-used commands and side-stepping some of the given code craziness... It is better practice to atomize the code into discrete elements such as... Var1.F = oconv(Var1, 'MD0') Var2.F = oconv(Var2, 'MD2') Var3.F = oconv(Var3, 'MD4')

[U2] Re: IBM developerWorks Forum for U2

2007-11-21 Thread David A Barrett
Wally, I would have posted this on the DeveloperWorks forum, but that needed me to know my IBM ID, which I can't remember, and the I forgot my IBM ID link just seemed to keep popping up the same login page over and overthen eventually spat out a list of phone numbers for the help desk. Which

[U2] Trick for PartFiles and Indices

2006-10-25 Thread David A Barrett
We have a monster file that hit the 2GB mark way back when, so we divided it up in a distributed file. It continues to grow, and the keys are largely sequential with a partitioning algorithm that puts each block of one million records into a part. Currently the file grows at a pace of about one

[U2] Re: OT: Unix Version of PR1MOS EDitor

2005-12-12 Thread David A Barrett
the problem with vi (or emacs) is that I'm not familiar with either No, the problem with vi is that it is case sensitive, and clearly intended for use with programs that primarily use lower case. Anyone who has been editing a PICK program and wanted to go down a few lines and hit J before

[U2] RE: Named Common

2005-09-06 Thread David A Barrett
How on earth do You implement a persistent local variable without using named common ?? - -- mats @USER0 @USER1 @USER2 @USER3 @USER4 This is also in the manual. :) Dave Barrett, Lawyers' Professional Indemnity Company --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe

[U2] Re: Program Slowing Down/Named Common

2005-09-06 Thread David A Barrett
Sorry, but I have to disagree. Whether or not using the Named COMMON is basically a good practice is beside the point. There is something wrong somewhere when a subroutine takes progressively longer to execute each time it is called, even though there is nothing accumulating anywhere. The Named

[U2] Programs slowing down after many iterations

2005-09-01 Thread David A Barrett
Here's the situation. We noticed this first with a subroutine intended to be used as part of an I-descriptor in Universe. It's a program that we use all over the place because it looks into a number of places and comes up with the status of a policyholder on a particular date. It needs to open