Using WRITE() on 5.0 - running on Linux

Jeff Harrison jeffaharrison at yahoo.com
Thu Jun 25 13:17:29 PDT 2009


--- On Thu, 6/25/09, Nancy Palmquist <nlp at vss3.com> wrote:

> From: Nancy Palmquist <nlp at vss3.com>
> Subject: Using WRITE() on 5.0 - running on Linux
> To: "filePro List" <filepro-list at lists.celestial.com>
> Date: Thursday, June 25, 2009, 3:43 PM
> I have the craziest thing happening
> and wondered if anyone else ever saw 
> this.
> 
> I have a report with 2 break points.
> 
> I open a file on a new account, create a header, then write
> detail lines 
> on each record until the account number break hits
> (@wbrk2). When each 
> detail line is written, I close the file. On the next
> record I run the 
> openit routine, below to open the file, and then write the
> next detail 
> record and close the file.
> 
> In the @wbrk2 logic, I open the file, move to the end and
> do the following:
> 
> 
> I get the last write - 4 times.
> </MetroIndex>
> 
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> <MetroIndex><Account>M05798</Account>
> <BuildDate>06/25/09</BuildDate>
> <BuildTime>14:34:28</BuildTime>
> <MetroDMV>
> <ClaimNumber>08-5037933</ClaimNumber>
> <RequestDate>10/20/2008</RequestDate>
> <L_RequestDate>20081020</L_RequestDate>
> </MetroDMV>
> <MetroDMV>
> <ClaimNumber>08-5037933</ClaimNumber>
> <RequestDate>10/20/2008</RequestDate>
> <L_RequestDate>20081020</L_RequestDate>
> </MetroDMV>
> </MetroIndex>
> </MetroIndex>
> </MetroIndex>
> </MetroIndex>
> 
> SEE This silly repeated line at the end.
> 
<Snip>

Nancy, is it possible that you are hitting @wbrk2 4 times and ofile is not blank?  I seem to recall that there was a bug or quirk with long field names in output processing not where the values were not carrying over properly.  Perhaps declaring ofile in automatic processing will clear this up.

You will probably be able to see what is going on with the debugger of course.

Good Luck.

Jeff Harrison
jeffaharrison at yahoo.com


      


More information about the Filepro-list mailing list