I want to create a fixed length flat file (separated by ','), but when a field has a null value, the record moves. Please see illustration below (incorrect Jenny and Roland records):
Source Table:
Name Color Balance Zip Code ------- ------ ------- -------- Melissa Orange $200.00 40240 Karl Blue $150.00 40884 Jenny -null- -null- 45667 Roland -null- $110.00 53366 Vincent Green $285.00 45677
Output I want to get:
Correct_Ouput ---------------------------- Melissa,Orange,$200.00,40240 Karl ,Blue ,$150.00,40884 Jenny , , ,45667 Roland , ,$110.00,53366 Vincent,Green ,$285.00,45677
Output I want to get:
Wrong_Output ---------------------------- Melissa,Orange,$200.00,40240 Karl ,Blue ,$150.00,40884 Jenny ,,,45667 Roland ,,$110.00,53366 Vincent,Green ,$285.00,45677
I tried searching but I get the null to empty string result.
Please help. Thank you.