W-DATA W 15 A OCCURS 100 W-NAME W-DATA 6 A W-SURYO W-DATA +6 4 N 0 W-TANKA W-DATA +10 5 N 0 I W 2 P * JOB START INIT-PROC ~ * INIT-PROC. PROC I = 1 DO WHILE I <= 100 W-NAME(I) = ' ' W-SURYO(I) = 0 W-TANKA(I) = 0 I = I + 1 END-DO END-PROC
(例2) RESETパラメータに代わる処理を行う W-DATA W 15 A OCCURS 100 W-NAME W-DATA 6 A W-SURYO W-DATA +6 4 N 0 W-TANKA W-DATA +10 5 N 0 I W 2 P * JOB I = 1 DO WHILE I <= 100 W-NAME(I) = '******' W-SURYO(I) = 9999 W-TANKA(I) = 99999 I = I + 1 END-DO