Re: [U2] Dynamic Array oddity very useful
Depending on undocumented behavior is usually a bad idea. Just because A<0> = 'ZZZ' happens to work in this release is no guarantee that the vendor will continue to support this behavior in the future. The fact this doesn't work in other Pick flavors or variants makes me want to shy away from this construct. rex --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Dynamic Array oddity very useful
Hi, [UV] However, there's no A to insert an MV, it just overwrites the attribute. A<2> = DEFvHIJ A<2,0> = ZZZ CRT A ;*-> aZZZ The language definition, common across all mv databases, says that a zero value or subvalue reference means "the whole of the element". It is exactly the same as missing it out completely. Martin Phillips Ladybridge Systems Ltd 17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB +44-(0)1604-709200 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Dynamic Array oddity very useful
[UV] However, there's no A to insert an MV, it just overwrites the attribute. A<2> = DEFvHIJ A<2,0> = ZZZ CRT A ;*-> aZZZ >-Original Message- >On UniVerse the output is: > >ZZZ]XXX]DEF]XYZ > >Which makes more sense, since the A<0> insert the value at the beginning > >After each step the result of A is as follows: > >A='DEF' DEF >A<2>='XYZ' DEF]XYZ >A<0>='XXX' XXX]DEF]XYZ >A<0>='ZZZ' ZZZ]XXX]DEF]XYZ ** This email message and any files transmitted with it are confidential and intended solely for the use of addressed recipient(s). If you have received this communication in error, please reply to this e-mail to notify the sender of its incorrect delivery and then delete it and your reply. It is your responsibility to check this email and any attachments for viruses and defects before opening or sending them on. Spotless collects information about you to provide and market our services. For information about use, disclosure and access, see our privacy policy at http://www.spotless.com.au Please consider our environment before printing this email. ** --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Dynamic Array oddity very useful
Anthony Youngman skrev: > I think you're muddling dynamic and dimensioned arrays - a dynamic array > can't have an element 0 :-) > Blushing:yes I did. -- mats > Sounds like somebody, when writing jBase, saw the "feature" of <-1> and > thought they'd be clever with <0>. > > Cheers, > Wol > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mats Carlid > Sent: 19 August 2008 14:53 > To: u2-users@listserver.u2ug.org > Subject: Re: [U2] Dynamic Array oddity very useful > > That is then flavour dependent - in information flavour there > is a zero element , that's where the overflowing elements go > ( if any) in a matparse. > > -- mats > > Martin Phillips skrev: > >> Hi Dennis, >> >> >>> So A<0> = X is a way quicker way of writing A = X : @fm : A >>> >> I'm not sure that this is a safe assumption. I have taken a quick look >> at the documentation for various mv products and they tend not to >> define what will happen. >> >> Trying your example with UV does not produce the result that you quote. >> >> I think that the real issue here is that there is no field zero. It is >> up to the different products to determine what they do in this case as >> there doesn't appear to be an agreed behaviour. >> > --- > 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/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Dynamic Array oddity very useful
Hi Mats, Yes, a dimensioned array has a zero element in Information/Ideal/PIopen flavours but a dynamic array has no such element. Martin Phillips Ladybridge Systems Ltd 17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB +44-(0)1604-709200 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Dynamic Array oddity very useful
I think you're muddling dynamic and dimensioned arrays - a dynamic array can't have an element 0 :-) Sounds like somebody, when writing jBase, saw the "feature" of <-1> and thought they'd be clever with <0>. Cheers, Wol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mats Carlid Sent: 19 August 2008 14:53 To: u2-users@listserver.u2ug.org Subject: Re: [U2] Dynamic Array oddity very useful That is then flavour dependent - in information flavour there is a zero element , that's where the overflowing elements go ( if any) in a matparse. -- mats Martin Phillips skrev: > Hi Dennis, > >> So A<0> = X is a way quicker way of writing A = X : @fm : A > > I'm not sure that this is a safe assumption. I have taken a quick look > at the documentation for various mv products and they tend not to > define what will happen. > > Trying your example with UV does not produce the result that you quote. > > I think that the real issue here is that there is no field zero. It is > up to the different products to determine what they do in this case as > there doesn't appear to be an agreed behaviour. --- 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/
Re: [U2] Dynamic Array oddity very useful
That is then flavour dependent - in information flavour there is a zero element , that's where the overflowing elements go ( if any) in a matparse. -- mats Martin Phillips skrev: Hi Dennis, So A<0> = X is a way quicker way of writing A = X : @fm : A I'm not sure that this is a safe assumption. I have taken a quick look at the documentation for various mv products and they tend not to define what will happen. Trying your example with UV does not produce the result that you quote. I think that the real issue here is that there is no field zero. It is up to the different products to determine what they do in this case as there doesn't appear to be an agreed behaviour. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Dynamic Array oddity very useful
Hi Dennis On UniVerse the output is: ZZZ]XXX]DEF]XYZ Which makes more sense, since the A<0> insert the value at the beginning After each step the result of A is as follows: A='DEF' DEF A<2>='XYZ' DEF]XYZ A<0>='XXX' XXX]DEF]XYZ A<0>='ZZZ' ZZZ]XXX]DEF]XYZ Louie Ps. Maybe there was a typo in the result given by jBase -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Bartlett Sent: 19 August 2008 12:07 To: u2-users@listserver.u2ug.org Subject: [U2] Dynamic Array oddity very useful Way back I was most impressed by the use of X=NOT(X) as a means of doing a toggle. Now I've found another wonder... Over on the jBase forum someone posted this: A = 'DEF' A<2> = 'XYZ' A<0> = 'XXX' A<0> = 'ZZZ' CRT A When run gives XXX]ZZZ]DEF]XYZ So A<0> = X is a way quicker way of writing A = X : @fm : A --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Dynamic Array oddity very useful
Dennis I agree with you, this work well in UniVerse, but I get ZZZ]XXX]DEF]XYZ as the ZZZ get's inserted last. Is this just a typo on your side? Bjorn Quote: " When run gives XXX]ZZZ]DEF]XYZ" Important Notice: This email is subject to important restrictions, qualifications and disclaimers ("the Disclaimer") that must be accessed and read at the following address or by copying and pasting the following address into your Internet browser's address bar: http://www.frstia.co.za/Disclaimer.asp The Disclaimer is deemed to form part of the content of this email in terms of Section 11 of the Electronic Communications and Transactions Act, 25 of 2002. If you cannot access the Disclaimer, please obtain a copy thereof from us by sending an email to mailto:[EMAIL PROTECTED] FirstRand STI Admin (Pty) Ltd is an Authorised Financial Services Provider --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Dynamic Array oddity very useful
Hi Dennis, So A<0> = X is a way quicker way of writing A = X : @fm : A I'm not sure that this is a safe assumption. I have taken a quick look at the documentation for various mv products and they tend not to define what will happen. Trying your example with UV does not produce the result that you quote. I think that the real issue here is that there is no field zero. It is up to the different products to determine what they do in this case as there doesn't appear to be an agreed behaviour. Martin Phillips Ladybridge Systems Ltd 17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB +44-(0)1604-709200 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Dynamic Array oddity very useful
On Tue, 19 Aug 2008, Dennis Bartlett wrote: A = 'DEF' A<2> = 'XYZ' A<0> = 'XXX' A<0> = 'ZZZ' CRT A So A<0> = X is a way quicker way of writing A = X : @fm : A This doesn't appear to work on Unidata (7.1.x). I get ZZZ XYZ Jeff Butera, Ph.D. Administrative Systems Hampshire College [EMAIL PROTECTED] 413-559-5556 "He works out of his home office doing technical training. I call it gambling." Overheard at grocery store. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Dynamic Array oddity very useful
Way back I was most impressed by the use of X=NOT(X) as a means of doing a toggle. Now I've found another wonder... Over on the jBase forum someone posted this: A = 'DEF' A<2> = 'XYZ' A<0> = 'XXX' A<0> = 'ZZZ' CRT A When run gives XXX]ZZZ]DEF]XYZ So A<0> = X is a way quicker way of writing A = X : @fm : A --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/