Example of calling Rebuild from a COBOL program

Note: On UNIX systems, Rebuild options must be preceded by a hyphen (-) character rather than a slash (/) character.

This example shows Rebuild being called from within a COBOL program.

 01 parameters pic x(600).
 01 status  pic xx comp-x.
  ...
     move "infile.dat,outfile.dat /s:lii /c:d1" to parameters
     call "CALLRB" using parameters,status
     end-call