Re: [UV] Ever wondered how something works...

2004-03-04 Thread Mats Carlid
uv System Administration manual chapter Adding Commands to the VOC File says for 'V' entries that field 4 K - Keep select list S - Uses select list Of course it doesn't bother with tiny details like wich behavioiur is default or what effect these settings have when the program isn't f

RE: U2 Maintenance

2004-03-04 Thread Claus Derlien
Hi Wally! Well here in Denmark we have had some outstanding good response from IBM regarding maintenance renewal our IBM contact person has really made a terrific job in following up on all issues. :-) now go see a doctor to patch up the hole in the foot :-))) best regards from sunny fro

RE: [UV] Does anyone know how to

2004-03-04 Thread Claus Derlien
There should be some SYSTEM() functions to prevent read/write from altering special chars in the record if im remembering right its SYSTEM(1017) best regards from Denmark Claus Derlien -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 1

RE: [UV] Ever wondered how something works...

2004-03-04 Thread Claus Derlien
Instead of CLEARSELECT you could use CS it does the same, this works on my system universe 9.5.1 and it looks like this : 01 ED VOC CS 4 lines long. : p 0001: V 0002: CS 0003: I 0004: BG best regards from Denmark Claus Derlien -Original Message- From: Barry Brevik [mailto:[EMAIL P

Phantom process.

2004-03-04 Thread Wade Sailor
Hi, I have written a program which run as a Phantom. PROGRAM TEST CONDITION = 0 LOOP UNTIL CONDITION DO READ R.RECORD FROM F.FILE, ID.RECORD ELSE NULL LOOP UNTIL R.RECORD<1> = '' DO DEL R.RECORD<1> REPEAT SLEEP 60 <> REPEAT Then I will run it as EXECUTE TEST Sometimes, the process does nothing.

SPOOLER NUMBER

2004-03-04 Thread Alan Yockey
I am also interested in ways to manipulate spool files in Universe? The spool number would be a big help so I could use usm commands to redirect output externally to the report program which produced the spool file. Universe 9.3 on DGUX Is there a function with universe / basic to tell me the

RE: Printing to "local" printer

2004-03-04 Thread Anthony Youngman
What I'd do ... This is UV, but I got the impression that UD might well work the same way ... A lot of our printers, rather than saying "AT DEVICE" in the SETPTR statement, say "AT \\windows\sharename". So each printer is set up on the local pc to which it is attached, and the UV server knows not

RE: [UV] Does anyone know how to

2004-03-04 Thread Anthony Youngman
Do you need to modify a document created by someone else? Or can you just spit out a Word document from UV? Some of our report programs generate rtf documents from scratch. It can be fun getting the format right (we make extensive use of tables to put stuff in the right place), and Word is not the

RE: Phantom process.

2004-03-04 Thread John Reid
Wade, You ARE opening the file, right? Are there any entries in the errlog file? When you say 'check the process at universe level', how are you checking it. Is there ever case where any response is required by the program? Any conditional DEBUG statements? john -Original Message- From:

Re: [UV] Variable never assigned a value warning

2004-03-04 Thread Mark Johnson
Not to mention the infidel CLEAR statement that does the same thing, hides errors. I believe the practice of variable assignment at the top is a practice brought over from other languages where all variables apparently need to be defined up front with DIM statements and variable types. I support s

Re: Phantom process.

2004-03-04 Thread Martin Phillips
Firstly, I assume that ID.RECORD is assigned somewhere. Secondly, do you have errlog enabled? If so, take a look in there for any UV errors that might have terminated your process. Martin Phillips Ladybridge Systems 17b Coldstream Lane, Hardingstone, Northampton NN4 6DB +44-(0)1604-709200 -

Re: [UV] Ever wondered how something works...

2004-03-04 Thread Martin Phillips
> From experience (including from this thread) I'd say that the list is > not kept unless there is a K. Absolutely right! The definition is that termination of a command clears any default select list unless the K processor mode is set in the VOC record. Many years ago, I wrote a command whose

RE: Sales Forecasting System

2004-03-04 Thread Ross Ferris
Barry, Give me a call at the office tomorrow - we may be able to help 02 4953 8050 Ross Ferris Stamina Software Visage – an Evolution in Software Development >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >Behalf Of Barry Brooks >Sent: Thursday, 4 March 2004 3

RE: [UV] Ever wondered how something works...

2004-03-04 Thread Gordon Glorfield
On our UV 10.0.8 on a Sun box there is no "L" VOC entry. "LD" is someones shortcut to LIST DICT. Gordon J. Glorfield Sr. Applications Developer MAMSI (A UnitedHealth Company) 301-360-8839 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barry Brevik Se

RE: Eclipse

2004-03-04 Thread Ross Ferris
Stuart, Is your interest more in "Web Services", or "Eclipse/Java" ? If the former, there may be other ways to achieve your goals - I suppose it then also depends on whether you are looking at simply consuming a web service, or publishing one FWIW, Viságe 6.50 will have a facility to enable you

RE: [UV] Does anyone know how to

2004-03-04 Thread Ross Ferris
Can one ask what you would actually DO with the word document once you have made your substitutions ? Print ? Fax ? Email ? We tackled this from the other end, and use Automation to drive word for production of standard forms. If this is perhaps of interest you can download an eval from our web

RE: [UV] Ever wondered how something works...

2004-03-04 Thread Stevenson, Charles
> Incidentally (Sorry Chuck, I'm at it again), I have come > across one user who thought CS was a shortform for > CLEARSELECT and reported it as a bug that it cleared the screen. I always thought CS meant "Chuck Stevenson" - Chuck Stevenson -- u2-users mailing list [EMAIL PROTECTED] http://www.

Re: [UV] Ever wondered how something works...

2004-03-04 Thread Glenn Herbert
The default behavior will be that upon completion of the command, ie incorrect syntax, correct working, etc, any active SELECT list will be cleared. The 'K' entry in field 4 overrides that so that when the command exits any active SELECT will NOT be cleared. This behavior is strictly flavor d

RE: Sales Forecasting System

2004-03-04 Thread Steve Kunzman
I have used a package called Demand Solutions www.demandsolutions.com with Epicor Dataflo. You initially export 30 months of sales history and then each month export the newest month and the oldest rolls off. The software generates a forecast which you can import back into the MPS/MRP system.

Clarion interface to Pick

2004-03-04 Thread Glenn W. Paschal
Does anyone know if there is an interface driver for Pick into Clarion, or if anyone has written such an interface? I have a client trying to use the Clarion ASP for web interface into a Pick database. Your help is appreciated. Thanks, Glenn W. Paschal PasTech LLC Computer Consulting ph. (931

RE: Sales Forecasting System

2004-03-04 Thread jasonp
We use Demand Solutions as well. It works great with our stock packaging division, not so great with our custom packaging division. The main reason for this is short life-cycle products in our custom packaging division. Extremely short life-cycles mean little historical data to forecast futur

RE: [UV] Ever wondered how something works...

2004-03-04 Thread jasonp
3 keystrokes... Q [Enter] [Enter] -Original Message- From: Tony Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 12:08 AM To: U2 Users Discussion List Subject: Re: [UV] Ever wondered how something works... > By the way, the fastest way to get rid of an unwanted Select list (

RE: Sales Forecasting System

2004-03-04 Thread Steve Moore
We also use Demand Solutions with Epicor's Dataflo product. Steve We are looking for a 'standalone' Sales Forecasting System including demand forecasting techniques and preferably using a MV database. Or alternately a Sales Forecasting System that can be integrated sensibly into a MV applicat

RE: How to start windows programs

2004-03-04 Thread uniVerse mailing list
>The simplest method to open a pdf is to write the pdf to a server then send >the URI of the pdf to the emulator via an escape sequence. For example, to >open a pdf in your browser using ftp using Netterm: CRT >CHAR(27):'[]ftp://user:[EMAIL PROTECTED]/invoice12345.pdf':CHAR(27):'[0*' note that i

Re: [UV] Ever wondered how something works...

2004-03-04 Thread Dianne Ackerman
Yes, but "Q" will subsequently log you off the system in UV, even if at the select list -Dianne [EMAIL PROTECTED] wrote: 3 keystrokes... Q [Enter] [Enter] -Original Message- From: Tony Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 12:08 AM To: U2 Users Discussion List Su

RE: Printing to "local" printer

2004-03-04 Thread Dana Baron
Wol, Thanks for the idea. Looks promising but we're on a Unix server. Is there a way to refer to the local printers across operating systems? My SETPTR documentation refers to mode 2 and the DEVICE setting as sending output to the Unix special file. Can the shared printer be defined as a unix spec

RE: Phantom process.

2004-03-04 Thread Wade Sailor
John, Thanks for your mail. Here is my response. You ARE opening the file, right? Yes, I do. Are there any entries in the errlog file? When you say 'check the process at universe level', how are you checking it. There was no errors in the uv errorlog. I check the process using PORT.STATUS comma

RE: How to start windows programs

2004-03-04 Thread Ian McGowan
On Thu, 2004-03-04 at 09:38, uniVerse mailing list wrote: > We currently use sbclient to do something similar, but keep ending up > with a dos prompt on the screen whilst the program (such as a > webbrowser) is being run - most annoying. > Andy you could try using "start ftp://username:[EMAIL PROT

[UD] 8 Bite Integers

2004-03-04 Thread Fawaz Ashraff
Good Afternoon. We are moving part of our application to Informix(From Unidata). I need to convert some of the data Fields to 8 bite Integers through a UniBasic program and write it to a flat file. Having problem converting data to 8 Bite Integers. Any suggestions would be highly appreciated. Che

[UV] Re: SPOOLER NUMBER

2004-03-04 Thread John Hester
Alan Yockey wrote: I am also interested in ways to manipulate spool files in Universe? The spool number would be a big help so I could use usm commands to redirect output externally to the report program which produced the spool file. Universe 9.3 on DGUX Is there a function with universe / ba

Re: [UV] Ever wondered how something works...

2004-03-04 Thread Scott Richardson
Proving yet once again, your actual VOC file entries may vary - greatly! Hence, why it's always important to periodically check out your VOC file, or MD, and find out (& understand) what actually is in there, and why. Customizations, or legacy leftovers, may no longer work if the account, or appl

RE: Printing to "local" printer

2004-03-04 Thread Ian McGowan
On Thu, 2004-03-04 at 10:53, Dana Baron wrote: > Thanks for the idea. Looks promising but we're on a Unix server. > Is there a way to refer to the local printers across operating > systems? My SETPTR documentation refers to mode 2 and the DEVICE > setting as sending output to the Unix special file.

RE: [UD] 8 Bite Integers

2004-03-04 Thread Logan, David (SST - Adelaide)
Hi Fawaz, Is this what you are looking for? SEQ function Syntax SEQ (expression) Description Use the SEQ function to convert an ASCII character to its numeric string equivalent. Expression evaluates to the ASCII character to be converted. If expression evaluates to the null value, null is retu

RE: [UV] Ever wondered how something works...

2004-03-04 Thread Jeff Schasny
Universe 10.0.10 >ED VOC VVOC 4 lines long. : P 0001: V 0002: vvoc 0003: E 0004: G Bottom at line 4. : Q > -Original Message- From: Scott Richardson [mailto:[E

RE: [UD] 8 Bite Integers

2004-03-04 Thread Fawaz Ashraff
Hi David, Thanks for the info. May be I didn't explain my problem correctly. I have a Unidata numeric field (Amount- 100.00 or -100.00) and I need to convert it to a 8 Bite integer so that Informix will recognise it. Cheers Fawaz --- "Logan, David (SST - Adelaide)" <> wrote: > Hi Fawaz, > > Is

RE: [UD] 8 Bite Integers

2004-03-04 Thread Peter Olson
INT( AMOUNT ) ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Fawaz Ashraff Sent: Thursday, March 04, 2004 2:43 PM To: U2 Users Discussion List Subject: RE: [UD] 8 Bite Integers Hi David, Thanks for the info. May be I didn't explain my problem correctly.

RE: [UD] 8 Bite Integers

2004-03-04 Thread Pingilley, Ron
If the number's an integer, how about using HEX.STRING = DTX(var) to get a hexadecimal equivalent of the number in question. Fill on the left with zeros to 16 characters (8 bytes worth). Then, pick off hex characters, 2 at a time (1 byte), then do: INFORMIX.CHAR = CHAR(XTD(thi

RE: [UD] 8 Bite Integers

2004-03-04 Thread Logan, David (SST - Adelaide)
Hi Fawaz, It really shouldn't matter. You should be able to write the data out to the flatfile and have it appear "100.00" or "-100.00" and the load programs (onpload, High Performance Loader etc.) will just convert according to the schema that you have defined for that table. Can you give an exa

Brower based terminal emulator

2004-03-04 Thread Vance Dailey
We are considering running Linux on our user desktops and I am looking for a recommendation for a terminal emulation solution. One possibility is to find a terminal emulation program which runs locally on each desktop under Linux. A second possibility is to setup a server and use a web browser (suc

RE: Brower based terminal emulator

2004-03-04 Thread Ross Ferris
The windows desktops could use AccuTerm - Internet Edition, that runs from a browser link BUT it is an ActiveX control, so no good for Linux. Have you tried a GOOGLE looking for Linux TE's Ross Ferris Stamina Software Visage – an Evolution in Software Development >-Original Message- >F

RE: [UV] Re: SPOOLER NUMBER

2004-03-04 Thread Ron Hutchings
Look at the basic manual for !GETPU. It gives you access to every field that SETPTR sets. _ Learn how to help protect your privacy and prevent fraud online at Tech Hacks & Scams. http://special.msn.com/msnbc/techsafety.armx -- u2-u

RE: Brower based terminal emulator

2004-03-04 Thread Vance Dailey
I have just started the search and I figured that this group was the best place to start. I am hoping to find a pioneer without too many arrows in their back that could steer me to a workable solution. Another option I have considered is to find a Windows solution that runs under Wine. Thanks for t

Re: [UV] Ever wondered how something works...

2004-03-04 Thread Allen Egerton
On Thu, 4 Mar 2004 13:53:31 +1100 , David Hona wrote: >PERFORM prompt (TCL). I believe field 3 "PR" indicated a PRIMOS command >under PI. Actually, if I remember correctly, the "PR" was short for PRIMITIVE. -- Allen Egerton [EMAIL PROTECTED] -- u2-users mailing list [EMAIL PROTECTED] http://w

RE: [UV] Re: SPOOLER NUMBER

2004-03-04 Thread Peter Olson
maybe SUBROUTINE( LONGID, USER ) LSCMD = 'ls -lt /uvwork/spool | grep USER SHCMD = 'sh -c ':QUOTE(LSCMD) EXECUTE SHCMD CAPTURING STUFF LONGID = TRIM( STUFF< 1,1 > ) LONGID = FIELD( LONGID , ' ' , DCOUNT( LONGID ,' ' )

RE: Brower based terminal emulator

2004-03-04 Thread Jefferson, Jim
Vance: I can't find the info just now, but I have seen a java implementation of a terminal emulator that runs in a browser. It should pop up in Google rather readily. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vance Dailey Sent: Thursday

Re: Brower based terminal emulator

2004-03-04 Thread John Hester
Vance Dailey wrote: We are considering running Linux on our user desktops and I am looking for a recommendation for a terminal emulation solution. One possibility is to find a terminal emulation program which runs locally on each desktop under Linux. A second possibility is to setup a server and u

RE: [UV] Re: SPOOLER NUMBER

2004-03-04 Thread Peter Olson
doh! LSCMD = 'ls -lt /uvwork/spool | grep ':USER -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Peter Olson Sent: Thursday, March 04, 2004 4:19 PM To: 'U2 Users Discussion List' Subject: RE: [UV] Re: SPOOLER NUMBER maybe SUBROUTINE( LONGID, USER )

Re: Clarion interface to Pick

2004-03-04 Thread Craig Bennett
Hi Glenn, >Does anyone know if there is an interface driver for Pick into Clarion, or >if anyone has written such an interface? you could use ODBC (erk) but I believe that sockets will be the simplest answer. Depending on the version of Clarion you may have to buy sockets libraries (see www.capes

Re: [UD] 8 Bite Integers

2004-03-04 Thread Craig Bennett
Fawaz, >I have a Unidata numeric field >(Amount- 100.00 or -100.00) and I need to convert it >to a 8 Bite integer so that Informix will recognise >it. Do you mean 8bit or 8byte? For an 8 bit integer you need to output CHAR(n) where n is a number between 0 and 255. For an 8 byte (64 bit) integer

RE: Phantom process.

2004-03-04 Thread John Jenkins
Wade Without seeing all the code it can be difficult, but anything which prompts for an unexpected INPUT in a PHANTOM will be canned. If you have a conditional DEBUG then if the DEBUG executes then the PHANTOM will can itself. Take it out and try again - put in some traces as well if you need to

RE: Clarion interface to Pick

2004-03-04 Thread Tony Gravagno
>-Original Message- >>Does anyone know if there is an interface driver for Pick >into Clarion, or if anyone has written such an interface? >From: Craig Bennett >Hi Glenn, >you could use ODBC (erk) but I believe that sockets will be >the simplest answer. Depending on the version of Clario

How to safely kill a runaway unidata process

2004-03-04 Thread Dave S
One of our users decided to run a report this morning at 9:30 and it still running. They lost the connection to the server, the process id is still out there and we are unable to kill it. We tried the DELETUSER PID command and it did not go away. The process is using 200 megs of memory. We ar

Re: [UD] 8 Bite Integers

2004-03-04 Thread Fawaz Ashraff
Hi All, Thanks for the input. It looks like Craig's suggestion would work for me. We have to test whether this will work with negative numbers. Once again, thanks! Cheers Fawaz --- Craig Bennett <[EMAIL PROTECTED]> wrote: > Fawaz, > > >I have a Unidata numeric field > >(Amount- 100.00 or -100.

RE: How to safely kill a runaway unidata process

2004-03-04 Thread Jeff Schasny
On Win32 you generaly have to "kill" the process from a DOS command line and "LOGOFF" the user (by PID) from within universe -Original Message- From: Dave S [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 3:55 PM To: [EMAIL PROTECTED] Subject: How to safely kill a runaway unidata

RE: Brower based terminal emulator

2004-03-04 Thread Cameron Booth
Ideally the solution will work on both Windows and Linux desktops given that some desktops will likely have to remain Windows based Have a look at http://javatelnet.org/ can be run as an applet or an application Cheers, Cam Booth Disclaimer Notice This message contains privileged and confi

RE: Eclipse

2004-03-04 Thread Stuart Boydell
> Is your interest more in "Web Services", or "Eclipse/Java" ? Hi Ross, I'm interested in all of the above but in the case of Eclipse, just the IDE. It's very cool, have you seen it? It should be simple to create a plug-in for it for U2. For those who aren't familiar with Eclipse (www.eclipse.org

Re: Eclipse

2004-03-04 Thread Craig Bennett
Stuart, I saw an IBM presentation on Eclipse in 2002 and thought the same as you. Trouble is I am not a Java programmer and my prefferred editor is vi (which I wouldn't change for all the good things in the far off place). But as a platform for U2 tools, I can't think of a better spot than open s

Re: [UD] 8 Bite Integers

2004-03-04 Thread Craig Bennett
Fawaz, >We have to test whether this will work with negative numbers. You need to find out how informix expects you to represent a negative number. Most likely 2s complement. For two's complement negatives, you need to invert the bit pattern and add 1. I think this will work ... MAKE8BYTE:

RE: [UD] 8 Bite Integers

2004-03-04 Thread Logan, David (SST - Adelaide)
Hi Fawaz, I must admit to being a little curious as to how the data is being loaded into informix. Which server are you using? Is this Dynamic Server? Regards David Logan Database Administrator HP Managed Services 139 Frome Street, Adelaide 5000 Australia +61 8 8408 4273 +61 417 268 665

Re: Unidata 6.05 - Redhat ES 2.1 (not AS) - solved

2004-03-04 Thread Adrian Merrall
Dear All, The patch Wally supplied runs the systest program during udtinstall and from our testing thus far all is well. Wally, thank you for such prompt service. Regards, Adrian Auckland, NZ -- __ S

Re: Sales Forecasting System

2004-03-04 Thread Will
Try searching for software under the heading of "Fashion Inventory" which is a demand forecasting system. IBM spent great gobs of money devising such a system for department stores eons ago when I worked for them as a systems engineer. Patrick - Original Message - From: [EMAIL PROT

RE: Eclipse

2004-03-04 Thread Ross Ferris
Stuart, I haven't looked at Eclipse for a while (don't tell Dawn I know how to spell cofe :-) Maybe I should revisit to see if there are any nice "things" that we should incorporate into Viságe (which is already a cool development environment for U2) At one stage we had a nice schema generator

Re: Eclipse

2004-03-04 Thread Results
Ross, [Warning: Let the flames begin] I don't see UML as a step that has value. There are many ways to shape a project that reflect practical considerations. My experience of UML is that it is a method for separating projects from common sense and practical results. - Charles "Rational R

Re: [UD] 8 Bite Integers

2004-03-04 Thread Robert Colquhoun
Hello, At 08:44 AM 5/03/2004, Craig Bennett wrote: LOWESTBYTE = BITAND(ININT, 255) ININT = INT(ININT/256) When trying to implement hash algorithms i noticed values > 32 bits do not work properly with some of the basic functions in unidata and i think universe. Defi

RE: How to start windows programs

2004-03-04 Thread Stuart Boydell
> >ftp://user:[EMAIL PROTECTED]/invoice12345.pdf > > note that if they have the latest patch from Microsoft installed, > then this solution *may* not work as it breaks the internet > standard of ftp://username:[EMAIL PROTECTED] > However, the principle is sound. You could work round this by > point

Re: [UD] 8 Bite Integers

2004-03-04 Thread Craig Bennett
>> LOWESTBYTE = BITAND(ININT, 255) >> >> ININT = INT(ININT/256) >When trying to implement hash algorithms i noticed values > 32 bits do not >work properly with some of the basic functions in unidata and i think >universe. Definitely MOD() and i think BITAND() had problems

RE: Eclipse

2004-03-04 Thread Ross Ferris
Chuck, Whilst on 1 hand I tend to agree, I think that anything that aids in the visualization of a process is useful. I've read history books that talk about an archaic art form called "flowcharting", though I believe the practitioners are all but extinct, even though they were prolific. UML i

Time milliseconds

2004-03-04 Thread Moderator
Posted for Sara, who was having email problems. Subject: TIME.MILLISECOND > > I got it wrong. As I am on leave today I have not had the chance to read > the digest from yesterday. > Further investigation has shown that I reached the wrong conclusion due > directly to my inability to type correctly

Re: VB primer help ?

2004-03-04 Thread FFT2001
In a universe database I have a file Customers. In an Access database I have some of the fields of that same file as well, populated from the source universe file via a flat file transport and import. Now however I need to just update those rows that have changed. So in Universe I already have a

RE: VB primer help ?

2004-03-04 Thread Ian McGowan
-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Maybe one of you has a trivial example of updating a row >in a VB macro? All the examples I can find are doing it >using a macro EXTERNAL to the database, when the one I'm >using is run from inside the project... did t

RE: VB primer help ?

2004-03-04 Thread Stuart Boydell
> In a universe database I have a file Customers. > In an Access database I have some of the fields of that same file > as well, populated from the source universe file via a flat file > transport and import. Have you not got ODBC available? > Now however I need to just update those rows that hav

SV: How to start windows programs

2004-03-04 Thread Björn Eklund
It works great, thanks Stuart! I run the UNC path (\\server\catalog\file) and that worked as a charm as a URL. /Björn -Ursprungligt meddelande- Från: Stuart Boydell [mailto:[EMAIL PROTECTED] Skickat: den 5 mars 2004 02:47 Till: U2 Users Discussion List Ämne: RE: How to start windows progr

Re: [UD] 8 Bite Integers

2004-03-04 Thread Robert Colquhoun
At 12:58 PM 5/03/2004, you wrote: That is because UV (and I presumed UD) work on two's complement integers, so the top bit flips you between a positive and a negative integer. This is why I work the algorithm with 8 bit blocks, so that bit 1 in the 32 bit integer is never 1 and so BITAND works as e