<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Yes.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>The issue is getting the variable to set prior to the heading being created with the proper name.  As of now, the name is the one for the previous person.  If the report is sorting on code and the code just printed is 1255 and the next code is 955, the name associated with 1255 prints and not 955.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Even doing a lookup using @sbrk1 which should execute prior to the report section running, has the incorrect name even after a lookup is done using the code to get the name.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Another interesting issue, the details start just under the header, with the page function added the details are starting about 2 line down.  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I have added to the detail the name and code and this prints correctly for each record.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Richard<o:p></o:p></span></p><p class=MsoNormal><a name="_MailEndCompose"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></a></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Richard Hane [mailto:yoresoft@sbcglobal.net] <br><b>Sent:</b> Wednesday, November 28, 2018 3:35 PM<br><b>To:</b> Richard Kreiss <rkreiss@verizon.net>; 'Richard D. Williams' <richard@appgrp.net>; filepro-list@lists.celestial.com<br><b>Subject:</b> Re: Header problem<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div id=yiv6061890430><div id="yui_3_16_0_ym19_1_1543436227015_28660"><div id="yui_3_16_0_ym19_1_1543436227015_28659"><div id="yiv6061890430yui_3_16_0_ym19_1_1543436227015_19158"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>Hi Richard,<o:p></o:p></span></p></div><div id="yiv6061890430yui_3_16_0_ym19_1_1543436227015_19159"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div id="yiv6061890430yui_3_16_0_ym19_1_1543436227015_19160"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>Just a quick thought...<o:p></o:p></span></p></div><div id="yiv6061890430yui_3_16_0_ym19_1_1543436227015_19161"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div id="yiv6061890430yui_3_16_0_ym19_1_1543436227015_19131"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>I assume you are setting the name variable after each break.  If so, have you tried to clear the variable before resetting it?<o:p></o:p></span></p></div><div id="yiv6061890430yui_3_16_0_ym19_1_1543436227015_19129"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div id="yiv6061890430yui_3_16_0_ym19_1_1543436227015_19128"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>Hope it helps,<o:p></o:p></span></p></div><div id="yiv6061890430yui_3_16_0_ym19_1_1543436227015_19126"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>Rick Hane<o:p></o:p></span></p></div><div id="yiv6061890430yui_3_16_0_ym19_1_1543436227015_19162"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div id="yiv6061890430yui_3_16_0_ym19_1_1543436227015_19124"><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div></div></div></div><div><div><div><div><p class=MsoNormal style='background:white'><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:black'>On Wednesday, November 28, 2018 2:10 PM, Richard Kreiss via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>> wrote:</span><span style='font-family:"Helvetica",sans-serif;color:black'><o:p></o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p><div><div><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'>I originally was but changed it to a dummy field.  <br><br>The problem is the mane in not changing when the code for the break changes.<br>All on the name belong to the proper person but the name in the header is<br>still incorrect.  It remains one name behind in the run of about 200<br>individuals with different code.  There is a code field in the record plus a<br>full name field.<br><br>I know when the break occurs the output is sitting on the last record of the<br>grouping for that break.  That is why the name in the heading is that of the<br>associated record.  I am going to try a getnext after the pafe command to<br>see if that corrects the problem.<br><br>Richard<br><br>> -----Original Message-----<br>> From: Filepro-list [mailto:filepro-list-<br>> bounces+rkreiss=<a href="mailto:verizon.net@lists.celestial.com" target="_blank">verizon.net@lists.celestial.com</a>] On Behalf Of Richard D.<br>> Williams via Filepro-list<br>> Sent: Wednesday, November 28, 2018 1:08 PM<br>> To: <a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a><br>> Subject: Re: Header problem<br>> <br>> Richard,<br>> <br>> Are you using a real field for the Person's Name in the header?<br>> <br>> Richard D. Williams<br>> <br>> On 11/28/2018 10:40 AM, Richard Kreiss via Filepro-list wrote:<br>> > I have an output which creates a text file.<br>> ><br>> > In the header portion the birthday month and the primary name associated<br>> with the individuals whose birthday it is.  The issue I am having is<br>getting the<br>> name appearing in the header to be correct.  This only happens on the<br>first page.<br>> ><br>> > When to the first break occurs on the primary person's code, the program<br>> forces a page to happen and the page number is reset to one.  This happens<br>but<br>> the name appearing in the header belongs to the previous person.<br>> ><br>> > As an example if the list was for Carl Smythe, then the name appearing<br>the<br>> name appearing in the header would be for the person whose list was just<br>be for<br>> his list.  The only time the proper name appears is for the first person.<br>After that<br>> each new page is one person behind.<br>> ><br>> > How do I get the proper name to appear in the header of the new page?<br>> ><br>> ><br>> > Richard Kreiss<br>> > GCC Consulting<br>> ><br>> ><br>> > -------------- next part -------------- A non-text attachment was<br>> > scrubbed...<br>> > Name: winmail.dat<br>> > Type: application/ms-tnef<br>> > Size: 15207 bytes<br>> > Desc: not available<br>> > URL:<br>> > <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20181" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20181</a><br>> > 128/f67306f3/attachment.bin><br>> > _______________________________________________<br>> > Filepro-list mailing list<br>> > <a href="mailto:Filepro-list@lists.celestial.com" target="_blank">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>> ><br>> <br>> <br>> ---<br>> This email has been checked for viruses by AVG.<br>> <a href="https://www.avg.com/" target="_blank">https://www.avg.com</a><o:p></o:p></span></p><div id=yiv6061890430yqtfd75298><p class=MsoNormal style='background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><br>> <br>> _______________________________________________<br>> Filepro-list mailing list<br>> <a href="mailto:Filepro-list@lists.celestial.com" target="_blank">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><br>_______________________________________________<br>Filepro-list mailing list<br><a href="mailto:Filepro-list@lists.celestial.com" target="_blank">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><o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-family:"Helvetica",sans-serif;color:black'><o:p> </o:p></span></p></div></div></div></div></div></div></div></body></html>