Yeah; I'm a bit confused by the subject line, though. Type 30 or distributed? In UV, type 30 is dynamic.

Anyways...

Assuming a clean & accurate &PARTFILES& (often not a good assumption, and here's where it costs you a little something), you can use that to determine how many parts there are currently. The more accurate way is to query the dist file header (IIRC, it's an mv attribute returned by SYSTEM). If that's wrong, you can get sloppy & execute a LIST.DF CAPTURING to parse out.

So, for each part, execute a phantom which reads the part, does the evaluation, & writes to an &SAVEDLISTS& item, perhaps one named for the part. Then you can just either write another short program to merge them, or do it in the editor. The trick is to make sure that you wait until the individual lists are finished building.



"Our greatest duty in this life is to help others. And please, if you can't help them, could you at least not hurt them?" - H.H. the Dalai Lama
"When buying & selling are controlled by legislation, the first thing to be bought & sold are the legislators" - P.J. O'Rourke
Dan Fitzgerald





From: [EMAIL PROTECTED]
Reply-To: u2-users@listserver.u2ug.org
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [UV] Distributed SELECTs for distributed (Type30)  files
Date: Tue, 22 Mar 2005 19:42:58 -0500

Hopefully Dan F can add more, and provide better information than I am able to
remember.


There was some claims processing programs that utilized this, or some
similar technique where the nbr of threads, or nbr of program instances, would
be passed in to a driver program, and that would split up the processing by
spawning that number of phantoms. Back at that time there may have been
something around 40 parts. I don't remember if it was based on the nbr of part
files or if there was an algorithm that split up the record keys into a
designated instance nbr.



Quoting "Stevenson, Charles" <[EMAIL PROTECTED]>:

> Has anyone written a utility to split out selects for distributed files,
> 1 phantom for each partfile, then pin the results into 1 select or saved
> list?
-------
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/

Reply via email to