<font face="tahoma" size="3"><p style="margin:0;padding:0;font-family: tahoma; font-size: 12pt; word-wrap: break-word;">I have a text file that I need to process with the separation character of '^'.</p>
<div id="SafeStyles1469025931">
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">It has over 300 columns and my test file has 95 lines.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">I use fp 5.01.13R4 on centos 5.4</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">and the line to read the db.txt file is</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">import ascii fff=/u/tob/db.txt r=^J f=\^</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">I can generate a report to examine the fields but it appears that when a line is read into fff it will not fill each field even though I know there is data there.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">For example the first record is the header and has 322 columns yet fff(60) and thereafter contain || when I use debug to examine it. In fact, fff(59) is the first field to be truncated from " OtherInsuredGroupOrFecaNumber" to |OtherInsuredGr|.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">Yet when processing other records it will go as far as needed (say fff(275)). </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">It seems like there is some limit on characters since the header has many characters in every field while the data lines have many empty fields.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">I have already tried a csv using word syntax with exactly the same results.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">I have also renamed variables in the prc.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">I have tried both rreport and dreport with same results.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">Perhaps I'll need to do some workaround.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">Thanks</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;">tob@b-e-s-t.com</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: tahoma; font-size: 12pt; word-wrap: break-word;"> </p>
</div></font>