I have a requirement to convert the FB file into CSV format . I would like to do using DFSORT. Could you please help me how to achieve this using DFSORT.
000000000100 Anderson Adrian 1113 Peachtree Plaza, Suite 111 Atlanta GA26101
000000000200 Brown Billie 224 Baker Boulevard Baltimore MD35702
000000000300 Carson Cameron 336 Crenshaw Blvd. Cupertino CA96154
000000000400 Davidson Dion 448 Main Street Wilmington DE27323
The output of program should be as shown below
Sample Output
Code:
100,,Anderson,Adrian,1113 Peachtree Plaza, Suite 111,,Atlanta,GA,26101
200,,Brown,Billie,224 Baker Boulevard,,Baltimore,MD,35702
300,,Carson,Cameron,336 Crenshaw Blvd.,,Cupertino,CA,96154
400,,Davidson,Dion,448 Main Street,,Wilmington,DE,27323
If any field in the input file is blank then only ,(comma) should come there to represent that field. E.g In above example status and and Addr-02 is blank and hence you can
see additional commas for this field in output . Could you please help me?
people helping here are the same helping there,
double posting will not get double answers in the same time, or the same answers in half of the time
it will only bother people, and lower Your benevolence factor