>>go top >>do while not eof >> if condition >> replace field >> endif >> if not eof() >> skip >> endif >>enddo>>
scan for condition >> replace field >>>>
replace something for condition>>
>scan > lcClent = client > lcCarrier = carrier > scan while Client == m.lcClient and Carrier = m.lcCarrier > * some processing logic > endscan > skip -1 > * Create file, do some additional processing >endscan >>versus
>lcClient = client >lcCarrier = carrier > >for lnI = 1 to reccount('curProcess') + 1 > if Client <> m.lcClient or Carrier <> m.lcCarrier or m.lnI = reccount('curProcess') + 1 > ** Create file, do some additional processing > else > * do other processing logic > endif > if not eof() > skip > endif >next>