COBOL プログラムからの Rebuild の呼び出し例

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

次の例は、REBUILD を COBOL プログラム内から呼び出す例です。

 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