<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Ah yes…. I am a total doofus…. I looked at the manual specifically with use of the “0” and while I know what truncate means, I was thinking it was doing the complete opposite of truncating. However, the SEEK also appears to be necessary, but your guys help, it is now working. <div class=""><br class=""></div><div class="">In unrelated news, I have my tickets and hotel all set for Orlando and am looking forward to meeting those of you who may be going. I cannot wait. </div><div class=""><br class=""></div><div class="">And thanks again…. <br class=""><div class=""><div class="">
<div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(121, 121, 121);"><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">James Flanagan</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(0, 106, 227);"><span class="" style="text-decoration: underline;"><a href="http://Flantec.com/" class="">Flantec.com</a></span></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(121, 121, 121); min-height: 14px;"><br class=""></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(0, 106, 227);"><span class="" style="color: rgb(121, 121, 121);">email:<span class="Apple-tab-span" style="white-space: pre;"> </span><a href="mailto:James@Flantec.com" class=""><span class="" style="color: rgb(0, 106, 227);">James@Flantec.com</span></a></span></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(121, 121, 121);">mobile:<span class="Apple-tab-span" style="white-space: pre;"> </span>760-458-8498</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(121, 121, 121);">home: <span class="Apple-tab-span" style="white-space: pre;"> </span>219-221-6219</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(0, 106, 227);"><span class="" style="color: rgb(121, 121, 121);">text:<span class="Apple-tab-span" style="white-space: pre;"> </span><a href="mailto:7604588498@txt.att.net" class=""><span class="" style="color: rgb(0, 106, 227);">7604588498@txt.att.net</span></a></span></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(121, 121, 121); min-height: 14px;"><br class=""></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(121, 121, 121);">Skype:<span class="Apple-tab-span" style="white-space: pre;"> </span>Flantec</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(0, 106, 227);"><span class="" style="color: rgb(121, 121, 121);">ichat:<span class="Apple-tab-span" style="white-space: pre;"> </span><span class="" style="color: rgb(0, 106, 227);"><a href="mailto:James@Flantec.com" class="">James@Flantec.com</a><span class="Apple-tab-span" style="white-space: pre;"> </span></span></span></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(121, 121, 121); min-height: 14px;"><br class=""></div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(121, 121, 121);">home:<span class="Apple-tab-span" style="white-space: pre;"> </span>1901 Cidermill Road</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; orphans: 2; widows: 2; margin: 0px; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; color: rgb(121, 121, 121);"><span class="Apple-tab-span" style="white-space: pre;"> </span>Michigan City, IN 46360</div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class="Apple-interchange-newline"></span><span><img apple-inline="yes" id="5AA81CF9-511C-44FB-834B-7BA381F27F08" src="cid:E6A45117-C06D-4883-A671-77F5B7D04E70" class=""></span>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Sep 16, 2019, at 1:35 PM, Brian K. White via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com" class="">filepro-list@lists.celestial.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Oh yeah, remove the 0 from "rwc0" too.<br class="">If you need to do that potentially sometimes, do that in @once.<br class=""><br class="">Thanks Walter.<br class=""><br class="">-- <br class="">bkw<br class=""><br class="">On 9/16/19 4:30 PM, Walter Vaughan Jr via Filepro-list wrote:<br class=""><blockquote type="cite" class="">Maybe I am missing something, but isn't your 0 (zero) by definition truncating the file if it sees data, so that loop 2 erases loop 1, loop 3 erases loop 2, loop 4 erases loop 3, etc....?<br class=""><br class="">Also I see this in the release notes: In Version 5.7.04, a new flag "A" was added.<br class="">Anything written to the file will be appended to the end of the file.<br class=""><br class="">-----Original Message-----<br class="">From: Filepro-list <<a href="mailto:filepro-list-bounces+wvaughan=steelerubber.com@lists.celestial.com" class="">filepro-list-bounces+wvaughan=steelerubber.com@lists.celestial.com</a>> On Behalf Of James Flanagan via Filepro-list<br class="">Sent: Monday, September 16, 2019 4:02 PM<br class="">To: Filepro_List <<a href="mailto:filepro-list@lists.celestial.com" class="">filepro-list@lists.celestial.com</a>><br class="">Subject: File handler not appending to file<br class=""><br class="">Filepro 5.7.00.09D4<br class="">FreeBSD 10.3<br class=""><br class="">I have used filepro’s file handlers (open, writeline, and close) many times successfully, but always as a one stop shop for the file creation.<br class=""><br class=""><br class="">Now, I want to (if possible) use these same functions in a dreport where it would append the file with another line for each record processed, but presently, each iteration overwrites the existing line with its single output line, despite using the “0”, which according to the manual “0 - truncate if already exists” .<br class=""><br class="">Up until now, I have been using system commands and elaborate echo commands, but the data is getting filled with some characters that are problematic without having to encapsulate in single quotes, etc.<br class=""><br class="">Below is a sample where I would expect /tmp/test to have 9 lines, numbered 1-9 when complete, but Instead only has the last iteration of the loop saved to line #1 of the file.<br class=""><br class="">@wef1::':<br class="">::fi="/tmp/test":<br class="">::li="1":<br class="">loop::':<br class="">::aa=open(fi,"rwc0")<br class="">::ab=writeline(aa,li):<br class="">::ac=close(aa):<br class="">::li=li+"1":<br class="">:li lt "10":goto loop:<br class="">::end:<br class=""><br class="">Please let me know if this can be done. Thank you.<br class=""><br class=""><br class=""><br class=""><br class="">James Flanagan<br class=""><a href="http://Flantec.com" class="">Flantec.com</a> <<a href="http://flantec.com/" class="">http://flantec.com/</a>><br class=""><br class="">email:<span class="Apple-tab-span" style="white-space:pre"> </span><a href="mailto:James@Flantec.com" class="">James@Flantec.com</a> <<a href="mailto:James@Flantec.com" class="">mailto:James@Flantec.com</a>><br class="">mobile:<span class="Apple-tab-span" style="white-space:pre"> </span>760-458-8498<br class="">home: <span class="Apple-tab-span" style="white-space:pre"> </span>219-221-6219<br class="">text:<span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span><a href="mailto:7604588498@txt.att.net" class="">7604588498@txt.att.net</a> <<a href="mailto:7604588498@txt.att.net" class="">mailto:7604588498@txt.att.net</a>><br class=""><br class="">Skype:<span class="Apple-tab-span" style="white-space:pre"> </span>Flantec<br class="">ichat:<span class="Apple-tab-span" style="white-space:pre"> </span><a href="mailto:James@Flantec.com" class="">James@Flantec.com</a> <<a href="mailto:James@Flantec.com" class="">mailto:James@Flantec.com</a>><span class="Apple-tab-span" style="white-space:pre"> </span><br class=""><br class="">home:<span class="Apple-tab-span" style="white-space:pre"> </span>1901 Cidermill Road<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>Michigan City, IN 46360<br class=""><br class=""><br class=""><br class="">-------------- next part --------------<br class="">An HTML attachment was scrubbed...<br class="">URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20190916/9106fc28/attachment.html" class="">http://mailman.celestial.com/pipermail/filepro-list/attachments/20190916/9106fc28/attachment.html</a>><br class="">-------------- next part --------------<br class="">A non-text attachment was scrubbed...<br class="">Name: PastedGraphic-1.tiff<br class="">Type: image/tiff<br class="">Size: 19328 bytes<br class="">Desc: not available<br class="">URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20190916/9106fc28/attachment.tiff" class="">http://mailman.celestial.com/pipermail/filepro-list/attachments/20190916/9106fc28/attachment.tiff</a>><br class="">_______________________________________________<br class="">Filepro-list mailing list<br class=""><a href="mailto:Filepro-list@lists.celestial.com" class="">Filepro-list@lists.celestial.com</a><br class="">Subscribe/Unsubscribe/Subscription Changes http://mailman.celestial.com/mailman/listinfo/filepro-list<br class="">_______________________________________________<br class="">Filepro-list mailing list<br class="">Filepro-list@lists.celestial.com<br class="">Subscribe/Unsubscribe/Subscription Changes<br class="">http://mailman.celestial.com/mailman/listinfo/filepro-list<br class=""></blockquote><br class="">_______________________________________________<br class="">Filepro-list mailing list<br class=""><a href="mailto:Filepro-list@lists.celestial.com" class="">Filepro-list@lists.celestial.com</a><br class="">Subscribe/Unsubscribe/Subscription Changes<br class="">http://mailman.celestial.com/mailman/listinfo/filepro-list<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>