Let us say you have declared a variable WS-COUNTRY PIC X(25).
The WS-COUNTRY has value 'CHINA' in it. You just want to flush out and replace with spaces. Then you just do MOVE SPACES TO WS-COUNTRY. Now the value of WS-COUNTRY is SPACES. I am thinking the question may not be as simple as I answered here.