Use WSCLEAR to clear a program's WORKING-STORAGE to binary zeros when the program is initialized. The storage is cleared before any VALUE clauses are applied.
| WSCLEAR option syntax |
|---|
|
Default is: NOWSCLEAR
Abbreviations are: None
Use NOWSCLEAR to bypass the storage-clearing process.
Performance considerations: If you use WSCLEAR and you are concerned about the size or performance of the object program, then you should also use OPTIMIZE(FULL). Doing so instructs the compiler to eliminate all unreferenced data items from the DATA DIVISION, which will speed up initialization.