<div dir="ltr">Thanks. I knew there was a disconnect somewhere in the process. That really clarified the process to me. I'll see if I can skin the cat a different way. <br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 11, 2016 at 3:19 PM Kenneth Brody <<a href="mailto:kenbrody@spamcop.net">kenbrody@spamcop.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/11/2016 3:09 PM, daN baueR via Filepro-list wrote:<br class="gmail_msg">
> Just wondering if if this environment is too old for this trick. The OS is<br class="gmail_msg">
> AIX with a old version of filePro 4.5. Or is this just not possible?<br class="gmail_msg">
><br class="gmail_msg">
> The report in question was setup in a header file with the body of the<br class="gmail_msg">
> report pulling all of the detail lines from another file. This works but<br class="gmail_msg">
> the detail lines aren't sorted the way I'd like them to be.<br class="gmail_msg">
> The V sort/selection table prompts for a single building code and then the<br class="gmail_msg">
> report processing uses a loop and a print command to get and all of the<br class="gmail_msg">
> data lines.<br class="gmail_msg">
> I added a sort command to the -v table but it doesn't affect order of the<br class="gmail_msg">
> data lines. The print command can't go in the V table. So is it possible to<br class="gmail_msg">
> sort the report if all of the data uses dummy variables coded in the output<br class="gmail_msg">
> form?<br class="gmail_msg">
><br class="gmail_msg">
> I know I can recreate the report and base it in the detail file. The<br class="gmail_msg">
> problem is It's a larger than normal header and I'm trying not to recode<br class="gmail_msg">
> the whole thing.<br class="gmail_msg">
<br class="gmail_msg">
The SORT command will change the output order of the records being selected<br class="gmail_msg">
by the sort/select processing.  However, if the output processing then does<br class="gmail_msg">
a LOOKUP/GETNEXT/PRINT loop to print multiple detail items for each main<br class="gmail_msg">
record, this has nothing to do with the SORT from sort/select.  The records<br class="gmail_msg">
will print in the exact order that you PRINT them.  If you need the detail<br class="gmail_msg">
record printed in a different order, then you'll need to PRINT them in a<br class="gmail_msg">
different order.  Perhaps create an index in that order, and use that index<br class="gmail_msg">
for the LOOKUP?<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
Kenneth Brody<br class="gmail_msg">
</blockquote></div>