You don't need to do the matbuild/write, you could simply do a MATWRITE
MATRECORD TO F.FILE,KEY 

Larry Hiscock
Western Computer Services

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dave Laansma
Sent: Monday, July 30, 2012 8:52 AM
To: [email protected]
Subject: [U2] MATREAD vs MATPARSE

I'm experimenting with dimension arrays in general and have a question.

 

I have a file with variable length records. To take advantage of the
performance of dimension arrays, is this the most effective logic?

 

READ RECORD FROM F.FILE,KEY ELSE ...

ATT.CNT = DCOUNT(RECORD,@AM)

DIM MATRECORD(ATT.CNT)

MATPARSE MATRECORD FROM RECORD,@AM

 

<update MATRECORD logic, which there is substantial>

 

MATBUILD RECORD FROM MATRECORD USING @AM

WRITE RECORD TO F.FILE,KEY

 

Sincerely,

David Laansma

IT Manager

Hubbard Supply Co.

 

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to