I have a file I am trying to read that is 1 long line. The length of this line will vary all the time. It is actually a 210 file. I wanted to read the file and write a new file with a new row for each identifier. The end of each new identifier row has a carrot - '^'. I tried using the FIND or INSTR function but both of these functions died after I got to the 1000th position because they return a FLOAT. Is there any other function I can try or do you have any suggestions? My file I am trying to read is usually over 20000 characters in length. I tried the declare-variable but it didn't do anything for me. Below is my code. Any help is greatly appreciated.
While #count <> 0
let #end_pos = instr($CHR-Data,'^',#start_pos)
! FIND '^' IN $CHR-Data #start_pos #end_pos
let #start_pos = #end_pos + 1
write 2 from $Line_Data
If #end_pos = 0
let #count = 0
end-if
end-while
Amy Sablatura
281/490-9546
asablatura@imperialsugar.com