Yes, I'm sorry I have to mangle the subject line, but it's a requirement in our mail gateway. No external email will go out unless I attest to the suitability of the contents by including the word "Unclassified" near the beginning. :-(
And if you want to know more about SEQ or MOD, try "HELP BASIC MOD" (or "HELP BASIC SEQ") at the TCL prompt, or look them up in the Basic Reference Guide. You can download this and all the other manuals from the IBM web-site (go to http://www-306.ibm.com/software/data/u2/pubs/library/, the 10.1 version of the complete set is called is about 50MB). I always load a copy onto our UniVerse Development server for easy reference. HTH Mike -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of LeRoi Keiller Sent: Wednesday, 8 September 2004 08:53 To: [EMAIL PROTECTED] Subject: RE: Unclassified RE: [U2] Part file algorithms - am I correct? Thanks Mike! I only just saw this (I have the list emails ordered by subject). That's great. Thanks. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of HENDERSON MICHAEL MR Sent: Tuesday, 7 September 2004 12:49 To: [EMAIL PROTECTED] Subject: Unclassified RE: [U2] Part file algorithms - am I correct? Importance: Low LeRoi, Your interpretation is mostly right. UniVerse allows syntax "@ID[1]" instead of "@ID[LEN(@ID),1]" for "the last character of @ID". You are using that in some but not other of the formulas. To simplify a bit * the 2-part file could be "@ID[1]; IF @1 LT 5 THEN 1 ELSE 2", and * the 10-part "INTERNAL @ID[1]+1" For consistency alone, you could use the same syntax for all these types of distribution: "@ID[1]; IF NUM(@1) THEN MOD(@1,<number of parts>)+1 ELSE <dumping ground>" Although the use of CONVERT does allow specific numbers to be spread amongst specific parts E.g. 4-part "@ID[1]; IF NUM(@1) THEN MOD(@1,4)+1 ELSE 2" Note that this gives a different distribution, though! And part files start with 1, not 0: your last example is "INTERNAL "@ID[LEN(@ID),1]+1" - note the '+1' on the end, giving a part number from (0+1) to (9+1) i.e. 1 to 10 Hope this helps Mike The information contained in this Internet Email message is intended for the addressee only and may contain privileged information, but not necessarily the official views or opinions of the New Zealand Defence Force. If you are not the intended recipient you must not use, disclose, copy or distribute this message or the information in it. If you have received this message in error, please Email or telephone the sender immediately. ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
