Blank Space is not appending in each row of CSV File - Shell Script

I am calling SQL script in my UNIX Shell script and trying to create the CSV file and my last column value of each row is 23 blank spaces.

In my SQL script,the last column is like below.

RPAD(' ',23,' ') -- Padding 23 blank Spaces

The CSV file is generated but the sapce(23 spaces) is not appending in each row of the CSV file.

I edited the CSV file and the cursor is not allowing to go last column(23 spaces).

Pls help me to resolve this issue.

I am able to edit last 23 spaces of each row in some other environment but in unix i am not able to edit the last 23 spaces.

Place the spaces in the last column between double quotes.

Regards