The manual states :-
Description
Use the MATWRITE statement to write data from the elements of a dimensioned
array to a record in a UniVerse file. The elements of array replace any data
stored in the record. MATWRITE strips any trailing empty fields from the record.
I've run the following
UniVerse also has ways of interfacing with a proxy.
I do not have access to the code at the moment
... david ...
David L. Wasylenko
President, Pick Professionals, Inc
w) 314 558 1482
d...@pickpro.com
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
0001: OPEN VOC TO F.VOC ELSE STOP
0002: A = DOG:@AM:@AM:@AM:@AM
0003: PRINT CONVERT(@AM,!,A)
0004: WRITE A ON F.VOC,DOG
0005: READ B FROM F.VOC,DOG ELSE B = ''
0006: PRINT CONVERT(@AM,!,B)
0007: *
0008: DIM R.DOG(1)
0009: MATREAD R.DOG FROM
Will, your code gets the results you're seeing when I try it on UV, but
if I change your code to have a large DIM of 100, it works the way you
want it to!
-Dianne
On 5/16/2012 12:40 PM, Wjhonson wrote:
0001: OPEN VOC TO F.VOC ELSE STOP
0002: A = DOG:@AM:@AM:@AM:@AM
0003:
Oh
The DIM has to be *larger* than the attribute size.
How curious.
-Original Message-
From: Dianne Ackerman dia...@aptron.com
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Wed, May 16, 2012 10:36 am
Subject: Re: [U2] Trim trailing attributes off records
Will,
Not if I remember correctly
To prevent lost data, attributes above the DIM size are stuffed as dynamic
array elements within the last element.
... david ...
David L. Wasylenko
President, Pick Professionals, Inc
w) 314 558 1482
d...@pickpro.com
-Original Message-
From:
Universe puts the extra ones into the header, and then writes them back out if
the array is *smaller*
You have to read back in this thread where we covered that point.
However, stuffing the extras into the *last* element *was* how the Ultimate
system used to work. (Maybe Ult-Plus still does?)
What system are you running?
-Original Message-
From: David L. Wasylenko d...@pickpro.com
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Wed, May 16, 2012 10:56 am
Subject: Re: [U2] Trim trailing attributes off records
I've just run a test...
OPEN FILE...
IM REC(100)
ATREAD REC
RELLEVEL
001 X
002 10.1.23
003 REALITY
004 REALITY.FORMAT
005 10.1.23
... david ...
David L. Wasylenko
President, Pick Professionals, Inc
w) 314 558 1482
d...@pickpro.com
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org]
You missed the last sub-part where the *size* of the array actually affects
your below.
In Information flavor
IF the DIM is smaller than the record, it will write all the trailing
attributes back out
However, IF the DIM is larger than the record, it will *truncate* any trailing
attributes
So
Reality flavor must use the *stuff it all into the end* logic.
Don't have any Reality flavor accounts here.
I wonder if when you MATWRITE it, if it will truncate the trailing attributes?
-Original Message-
From: David L. Wasylenko d...@pickpro.com
To: U2 Users List
Ran it in Reality flavor, it still works the same way; the DIM needs to
be large.
-Dianne
On 5/16/2012 2:10 PM, Wjhonson wrote:
Reality flavor must use the *stuff it all into the end* logic.
Don't have any Reality flavor accounts here.
I wonder if when you MATWRITE it, if it will truncate the
12 matches
Mail list logo