title: Spaces filled when value is null
body: <p>I am doing a flat file writing on cobol.
  but when the variable is null , it will not fill with spaces. Please help.</p>
  
  <p>Here is some of the part of flat file structure declaration.</p>
  
  <pre><code>01 Fs-IL494-REC.
     03 FX-IL494-TRXN-1-10                     PIC X(410) VALUE SPACES.
  
  01 Wx-TRXN-INFO-BUF                PIC X(410) VALUE SPACES.
  01 Ws-TRXN-INFO REDEFINES Wx-TRXN-INFO-BUF OCCURS 10 TIMES.
  03 Wx-TRXN-DT                   PIC X(8).
  03 Wx-TRXN-CDE                  PIC X(3).
  03 W9-TRXN-AMT                  PIC S9(13)V9(2)
                                      SIGN LEADING SEPARATE.
  03 Wx-TRXN-DESC                 PIC X(14).
  
  Doing some query to retrive the records from database.
  
  INITIALIZE Wx-TRXN-INFO-BUF.
  INITIALIZE FX-IL494-TRXN-1-10.
  
  ADD 1 TO W9-ARR-CNT
  MOVE F9-IRC-TXN-DT TO Wx-TRXN-DT(W9-ARR-CNT)
  MOVE F9-IRC-TXN-CDE TO Wx-TRXN-CDE(W9-ARR-CNT)
  MOVE F9-IRC-TXN-AMT TO W9-TRXN-AMT(W9-ARR-CNT)
  MOVE FX-IRC-TXN-DESC TO Wx-TRXN-DESC(W9-ARR-CNT)
  
  MOVE Wx-TRXN-INFO-BUF TO FX-IL494-TRXN-1-10
  </code></pre>