How to write spaces instead of null into a file while using CSV FileLayout and PeopleCode?
It is some times necessary to write spaces instead of nulls into CSV files.
By default CSV FileLayout writes "" (no content) instead of " " (space) where " is qualifier.
To avoid this we can use the property UseSpaceForNull.
Local File &MYFILE;
&MYFILE.SetFileLayout(FileLayout.FileLayoutName);
&FILE1.UseSpaceForNull = True;
This is False by default.
No comments:
Post a Comment