You aren't making this easy.
Also the fields all start in a fixed position.
What is the starting position, length and format of each field?
In the expected output, you show a blank before the last field (e.g. ' 03') instead of a comma. Is that what you really want or do you want a comma before the last field (e.g. ',03')?
I would like the SORT parms to be able to parse any FB file with similar input characteristics with only a change of the lrecl in the parms. fields separated by multiple spaces should have commas between them. Where there is a single space, no comma should be inserted(such as the name above).
If we know the positions of the fields with a single space, we can handle them. But DFSORT has no way of knowing automatically which fields those are. You have to tell it. I can give you a job to do what you want for a specific case, but I don't know if that will meet your criteria for just changing the LRECL. It depends on what the layout of the other FB files looks like (do they still have the fields in the same order and fixed positions, or not?). I'd need more detail about these other FB files to tell you if the same job will work for all of them.