<div dir="ltr"><div>Should my output format be &#39;subtotaled&#39; on BOTH client number AND full account number?</div><div>Currently it&#39;s only subtotaled once in Sort options....</div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Mon, Jul 14, 2014 at 2:43 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, I would think that @sbrk1 would only execute once at the start of<br>
the sub-total break level defined for the sort (in the same way as<br>
@wbrk1).  That would lead me to think that if aa was global, it would<br>
hold the value you set once in @sbrk1 until the next subtotal break(1)<br>
is reached.<br>
<br>
Bruce<br>
<div><br>
<br>
On 7/14/14 2:31 PM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> wrote:<br>
&gt; If I make it global, then aa is always equal to ab....even though it<br>
&gt; shouldn&#39;t be<br>
&gt; the ending # is right on all of them, just not the starting one<br>
&gt; So making aa global makes aa=ab on all of them.....<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jul 14, 2014 at 2:19 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;     Scott - maybe aa just needs to be global (4,#,g).<br>
&gt;<br>
&gt;     Bruce<br>
&gt;<br>
&gt;<br>
</div>&gt;     On 7/14/14 1:58 PM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a> &lt;mailto:<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&gt;<br>
<div>&gt;     wrote:<br>
&gt;<br>
&gt;         Oops - meant to only send that last email to you with the<br>
&gt;         processing in it<br>
&gt;         - my mistake :(<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         On Mon, Jul 14, 2014 at 1:57 PM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a><br>
</div>&gt;         &lt;mailto:<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&gt; &lt;<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a><br>
&gt;         &lt;mailto:<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&gt;&gt;<br>
<div>&gt;         wrote:<br>
&gt;<br>
&gt;             Ken,<br>
&gt;<br>
&gt;             Here is what my output processing looks, with sort on<br>
&gt;             client number (4<br>
&gt;             characters and subtotal) and then full account number<br>
&gt;             Everything works great except the &#39;starting (lowest)&#39;<br>
&gt;             number - that is<br>
&gt;             coming out blank<br>
&gt;<br>
&gt;             :1=&quot;&quot;:end::gP*P|VW_L&amp;4foSDs:<br>
&gt;             @sbrk1::aa(4,#)=mid(3,&quot;6&quot;,&quot;4&quot;)  &#39;this is the lowest number:<br>
&gt;             @wbrk1::ab(4,#)=mid(3,&quot;6&quot;,&quot;4&quot;) &#39;this is the highest number:<br>
&gt;             ::lookup cli=client  k=1   i=A -nx:<br>
&gt;             ::ac(30,uplow)=cli(2) &#39; this grabs the name of the client:<br>
&gt;             ::end:<br>
&gt;<br>
&gt;             My simple output on form just looks like this:<br>
&gt;<br>
&gt;             Client Number:  *1<br>
&gt;<br>
&gt;             Client Name   :  *ac<br>
&gt;<br>
&gt;             Starting #        :  *aa<br>
&gt;<br>
&gt;             Ending #         :  *ab<br>
&gt;<br>
&gt;             Total Records :  *@rs<br>
&gt;<br>
&gt;<br>
&gt;             Any idea why &#39;aa&#39; starting number is coming back blank?<br>
&gt;<br>
&gt;             thanks<br>
&gt;<br>
&gt;             Scott<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;             On Mon, Jul 14, 2014 at 10:51 AM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a><br>
</div>&gt;             &lt;mailto:<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&gt; &lt;<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a><br>
&gt;             &lt;mailto:<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&gt;&gt;<br>
<div>&gt;             wrote:<br>
&gt;<br>
&gt;                 Thanks Ken - I&#39;ll give that a shot<br>
&gt;<br>
&gt;<br>
&gt;                 On Mon, Jul 7, 2014 at 10:40 AM, Kenneth Brody<br>
</div>&gt;                 &lt;<a href="mailto:kenbrody@spamcop.net">kenbrody@spamcop.net</a> &lt;mailto:<a href="mailto:kenbrody@spamcop.net">kenbrody@spamcop.net</a>&gt;&gt;<br>
<div>&gt;                 wrote:<br>
&gt;<br>
&gt;                     On 7/2/2014 11:18 AM, <a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a><br>
</div><div><div class="h5">&gt;                     &lt;mailto:<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;                         A little stumped here<br>
&gt;                         I have a temp file we put records in during<br>
&gt;                         day....and I&#39;d like to<br>
&gt;                         print a<br>
&gt;                         summary &#39;cover sheet&#39; nightly based on what is<br>
&gt;                         in this file<br>
&gt;<br>
&gt;                         So I have records that will look like this<br>
&gt;                         (all based on client number,<br>
&gt;                         which is first 4 numbers of our &#39;Account Number&#39;)<br>
&gt;<br>
&gt;                         2435-0001        John Smith<br>
&gt;                         2435-0002        Jane Doe<br>
&gt;                         3194-0143        John Consumer<br>
&gt;                         3194-0144         Billy Carter<br>
&gt;                         3194-0145         Ronald Reagan<br>
&gt;                         5498-0254         George Bush<br>
&gt;                         5498-0255         Bill Clinton<br>
&gt;<br>
&gt;                         So, at night, I want to print 3 &#39;CoverSheets&#39;<br>
&gt;                         (one for each unique<br>
&gt;                         client<br>
&gt;                         number: 2435, 3194 &amp; 5498)<br>
&gt;<br>
&gt;                         The CoverSheet report will basically say:<br>
&gt;<br>
&gt;                         Client Number:    2435<br>
&gt;                         Client Name    :   *aa  (this will lookup the<br>
&gt;                         client file using 2435 and<br>
&gt;                         grab the client name)<br>
&gt;                         # of Records    :   2     (this should count<br>
&gt;                         2435-0001 &amp; 2435-0002 and<br>
&gt;                         total unique records)<br>
&gt;                         Starting acct     :  0001  (lowest &#39;acct&#39; for<br>
&gt;                         2435)<br>
&gt;                         Ending acct      :  0002   (highest &#39;acct&#39; for<br>
&gt;                         2435)<br>
&gt;<br>
&gt;                     [...]<br>
&gt;<br>
&gt;                     There are several ways I see to do this.  Here is<br>
&gt;                     one method:<br>
&gt;<br>
&gt;                     Sort on the first 4 digits of the client number<br>
&gt;                     (ie: &quot;2345&quot;, &quot;3194&quot;,<br>
&gt;                     &quot;5498&quot;), with a subtotal break, followed by the<br>
&gt;                     entire 9-digit number.<br>
&gt;                       This way, while you break on the 4-digit client<br>
&gt;                     number, it will also be<br>
&gt;                     sorted by account number.<br>
&gt;<br>
&gt;                     Using @SBRK1, save the first (ie: &quot;lowest&quot;)<br>
&gt;                     account number for that<br>
&gt;                     client, using MID.<br>
&gt;<br>
&gt;                     Within @WBRK1, grab the account number, which will<br>
&gt;                     be the &quot;highest&quot;<br>
&gt;                     number for that client.  Then, @RS will be the<br>
&gt;                     number of records for that<br>
&gt;                     account.<br>
&gt;<br>
&gt;                     You now have &quot;# of records&quot; (@RS), &quot;starting acct&quot;<br>
&gt;                     (saved in @SBRK1),<br>
&gt;                     and &quot;ending acct&quot; (the &quot;current&quot; account number,<br>
&gt;                     while in @WBRK1).<br>
&gt;<br>
&gt;                     --<br>
&gt;                     Kenneth Brody<br>
&gt;<br>
&gt;<br>
&gt;         -------------- next part --------------<br>
&gt;         An HTML attachment was scrubbed...<br>
&gt;         URL:<br>
&gt;         <a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20140714/459ce583/attachment.html" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20140714/459ce583/attachment.html</a><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></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>
&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/ad3dc2d2/attachment.html" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20140714/ad3dc2d2/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>