>>SELECT yourTable >>lcx = "" &&initial >>SCAN FOR [expression that filters out record b] >> TEXT to lcx TEXTMERGE NOSHOW ADDITIVE >><<field1>>,sometconstant <<fieldn>> >> >> ENDTEXT >>ENDSCAN >>STRTOFILE(lcx,YourFileName) >> >>*or within the scan anything else that will build the string, we had examples yesterday. >>>>
>>SELECT yourTable >>COPY TO YourFileName FOR [expression that filters out record b] TYPE SDF >>*or >>COPY TO YourFileName FOR [expression that filters out record b] TYPE CSV >>>>
>>SELECT; >> Cur1.*; >> FROM YoruTable AS Cur1; >> TO FILE YourFileName; >> WHERE [expression that filters out record b] >>>>
>>*could be replaced for SQL Server w/o changing te cursor >>SELECT; >> Cur1.*; >> FROM YoruTable AS Cur1; >> INTO CurOutPut; >> WHERE [expression that filters out record b] >> >>*this might be in some function that itself coud be replaced and be generic or what ever >>lcx = "" &&initial >>SCAN FOR [expression that filters out record b] >> TEXT to lcx TEXTMERGE NOSHOW ADDITIVE >><<field1>>,sometconstant <<fieldn>> >> >> ENDTEXT >>ENDSCAN >>*or something similar >> >>*final write >>STRTOFILE(lcx,YourFileName) >>>>This gives fine control over the output.
WHERE [expression that filters out record b] *or FOR [expression that filters out record b]from the examples above.