<div dir="ltr"><div>A little stumped here</div><div>I have a temp file we put records in during day....and I&#39;d like to print a summary &#39;cover sheet&#39; nightly based on what is in this file</div><div> </div><div>So I have records that will look like this (all based on client number, which is first 4 numbers of our &#39;Account Number&#39;)</div>
<div> </div><div>2435-0001        John Smith</div><div>2435-0002        Jane Doe</div><div>3194-0143        John Consumer</div><div>3194-0144         Billy Carter</div><div>3194-0145         Ronald Reagan</div><div>5498-0254         George Bush</div>
<div>5498-0255         Bill Clinton</div><div> </div><div>So, at night, I want to print 3 &#39;CoverSheets&#39; (one for each unique client number: 2435, 3194 &amp; 5498)</div><div> </div><div>The CoverSheet report will basically say:</div>
<div> </div><div>Client Number:    2435</div><div>Client Name    :   *aa  (this will lookup the client file using 2435 and grab the client name)</div><div># of Records    :   2     (this should count 2435-0001 &amp; 2435-0002 and total unique records)</div>
<div>Starting acct     :  0001  (lowest &#39;acct&#39; for 2435)</div><div>Ending acct      :  0002   (highest &#39;acct&#39; for 2435)</div><div> </div><div><div>Client Number:   3194 </div><div>Client Name    :   *aa  (this will lookup the client file using 2435 and grab the client name)</div>
<div># of Records    :   3     (this should count 2435-0001 &amp; 2435-0002 and total unique records)</div><div>Starting acct     :  0143  (lowest &#39;acct&#39; for 2435)</div><div>Ending acct      :  0145   (highest &#39;acct&#39; for 2435)</div>
</div><div> </div><div>etc</div><div> </div><div> </div><div>Can&#39;t seem to figure out how to get this to work -- do I need to do an @wbrk and just select all records at night or do I need add&#39;l output processing to segregate this data &#39;by client&#39;?</div>
<div> </div><div> </div><div> </div></div>