Sort/Selection processing

John Esak john at valar.com
Tue Jun 15 11:12:56 PDT 2010


There are probably a number of ways to do this. No, @done is for output
tables only. 

I will assume that @ts has no value either on the -v table. Although, who
knows (besides Ken :-) maybe it does. In which case, you could set an
incrmenting counter for every record encoutnerd selected or not and when @ts
equalled this counter, you'd be done with the -v processing.

But I can think of another way pretty quick. Make sure you have an automatic
table. If you don't have one, add one.  ON it set a global variable to tell
you whether to run your totalling/question or not.  If they don't want to
continue with the output part of the process, just EXIT.  Otherwise flip the
variable and let it proceed. Be sure to only do this check once... Which is
the purpose of the global var.... So I'm being redundant.

Automatic processing does not run during sort/select and would only happen
immediately after it's finished on the first record which is about to have
the output process done on it.  So it is esentially just after the -v table.
The values you want to show would have to be shared through the automatic
table... Or declared GLOBAL, since you are now on another table.

John


I can think  

> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com 
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.co
m] On Behalf Of Kroboth, Joe
> Sent: Tuesday, June 15, 2010 1:52 PM
> To: filepro-list at lists.celestial.com
> Subject: Sort/Selection processing
> 
> Is there any way to test that the last record has been 
> processed on a Sort/Selection processing table.   I want to 
> trigger a message to display some totals on the screen and 
> ask if the user wants to continue.  @done doesn't seem to 
> work and @TS doesn't seem to have a value.  Perhaps The only 
> option is to pass the totals to the output processing try to 
> do what I need from there (?)
> 
> Thanks.
> 
> Joe Kroboth
> Chernay Printing, Inc
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> http://mailman.celestial.com/pipermail/filepro-list/attachment
s/20100615/75faab1a/attachment.html 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
> 



More information about the Filepro-list mailing list