WSCLEAR

Use WSCLEAR to clear a program's non-EXTERNAL data items in WORKING-STORAGE to binary zeros at initialization. The storage is cleared before any VALUE clauses are applied.

Read syntax diagramSkip visual syntax diagram
WSCLEAR option syntax

   .-NOWSCLEAR-.   
>>-+-----------+-----------------------------------------------><
   '-WSCLEAR---'   

Default is: NOWSCLEAR

Abbreviations are: None

Use NOWSCLEAR to bypass the storage-clearing process.

Performance considerations: If you use WSCLEAR and are concerned about the size or performance of an object program, also use OPTIMIZE(FULL). Doing so instructs the compiler to eliminate all unreferenced data items from the DATA DIVISION, which will speed up initialization.

related references
OPTIMIZE  
Initialization of EXTERNAL data