Depending on undocumented behavior is usually a bad idea. Just because
A0 = '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
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'
A2 = 'XYZ'
A0 = 'XXX'
A0 = 'ZZZ'
CRT A
When run gives
XXX]ZZZ]DEF]XYZ
So A0 = X is a way quicker way of writing A = X
On Tue, 19 Aug 2008, Dennis Bartlett wrote:
A = 'DEF'
A2 = 'XYZ'
A0 = 'XXX'
A0 = 'ZZZ'
CRT A
So A0 = 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
Hi Dennis,
So A0 = 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
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
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
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 A0 = X is a way quicker way of writing A = X : @fm : A
I'm not sure that this is a safe
] 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
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
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
[UV] However, there's no An,0 to insert an MV, it just overwrites the
attribute.
A2 = DEFvHIJ
A2,0 = ZZZ
CRT A ;*- aZZZ
-Original Message-
On UniVerse the output is:
ZZZ]XXX]DEF]XYZ
Which makes more sense, since the A0 insert the value at the
beginning
After each step the result of A
11 matches
Mail list logo