<div dir="ltr"><div>Here is the &#39;structure&#39; part of the file that&#39;s pertinent</div><div> </div><div>Field 1 = 4,#  is the client number   &#39; in the examples here, that is 2435, 3194 &amp; 5498  - this is what it should sort on - a new page for each unique client number</div>
<div>Field 2 = 4,allup  is the account number  &#39;in the examples here, that is what comes after the &quot;-&quot; 0001, 0002 for client 2435, 0143, 0144, 0145 for client 3194</div><div>Field 3 = 9,allup  is the two fields combined  with a &quot;-&quot; in middle   &#39;i.e. 2435-0001, 2435-0002, 3194-0143, etc</div>
<div> </div><div>So since the file has the client number in a field already, I have it sorting on field 1 with a length of 4 - which appears to be okay, since it&#39;s doing what I want it to do, except it&#39;s not finding the &#39;lowest&#39; account number...otherwise, everything works fine haha</div>
<div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 14, 2014 at 3:04 PM, Bruce Easton <span dir="ltr">&lt;<a href="mailto:bruce@stn.com" target="_blank">bruce@stn.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Scott - check the sort screen for this - did you sort on Account Number,<br>
but only for a length of four?<br>
<br>
Bruce<br>
<div><br>
On 7/14/14 2:55 PM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> wrote:<br>
&gt; adding &#39;end&#39; in @sbrk1 had no effect - aa is still equal to ab on all<br>
&gt; pages<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jul 14, 2014 at 2:47 PM, Bruce Easton &lt;<a href="mailto:bruce@stn.com">bruce@stn.com</a><br>
</div><div>&gt; &lt;mailto:<a href="mailto:bruce@stn.com">bruce@stn.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Ah yes, the lack of &quot;end&quot; for @sbrk1 is probably why your aa is being<br>
&gt;     set to your ab.<br>
&gt;<br>
&gt;     Bruce<br>
&gt;<br>
&gt;     On 7/14/14 2:33 PM, Kenneth Brody wrote:<br>
&gt;     &gt; On 7/14/2014 1:57 PM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a><br>
</div><div>&gt;     &lt;mailto:<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&gt; wrote:<br>
&gt;     &gt;&gt; Ken,<br>
&gt;     &gt;&gt;<br>
&gt;     &gt;&gt; Here is what my output processing looks, with sort on client<br>
&gt;     number (4<br>
&gt;     &gt;&gt; characters and subtotal) and then full account number<br>
&gt;     &gt;&gt; Everything works great except the &#39;starting (lowest)&#39; number -<br>
&gt;     that is<br>
&gt;     &gt;&gt; coming out blank<br>
&gt;     &gt;&gt;<br>
&gt;     &gt;&gt; :1=&quot;&quot;:end::gP*P|VW_L&amp;4foSDs:<br>
&gt;     &gt;&gt; @sbrk1::aa(4,#)=mid(3,&quot;6&quot;,&quot;4&quot;)  &#39;this is the lowest number:<br>
&gt;     &gt; aa(4,#,g)=mid(3,&quot;6&quot;,&quot;4&quot;) ; end<br>
&gt;     &gt;<br>
&gt;     &gt;&gt; @wbrk1::ab(4,#)=mid(3,&quot;6&quot;,&quot;4&quot;) &#39;this is the highest number:<br>
&gt;     &gt;&gt; ::lookup cli=client  k=1   i=A -nx:<br>
&gt;     &gt;&gt; ::ac(30,uplow)=cli(2) &#39; this grabs the name of the client:<br>
&gt;     &gt;&gt; ::end:<br>
&gt;     &gt; [...]<br>
&gt;     &gt;&gt; Any idea why &#39;aa&#39; starting number is coming back blank?<br>
&gt;     &gt; [...]<br>
&gt;     &gt;<br>
&gt;     &gt; No &quot;,g&quot; flag.<br>
&gt;     &gt;<br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Filepro-list mailing list<br>
&gt;     <a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
</div>&gt;     &lt;mailto:<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a>&gt;<br>
&gt;     Subscribe/Unsubscribe/Subscription Changes<br>
&gt;     <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
&gt;<br>
&gt;<br>
<div><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
</div>URL: <a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20140714/c48dae8d/attachment.html" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20140714/c48dae8d/attachment.html</a><br>

<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</div></div></blockquote></div><br></div>