New suboption of WSCLEAR
Dan_Z 27000582KQ Visits (1944)
In earlier versions of COBOL for AIX, WSCLEAR cleared all of a program's WORKING-STORAGE data items. Beginning with Version 4, WSCLEAR clears a program's non-EXTERNAL data items in WORKING-STORAGE to binary zeros at initialization.
With COBOL for AIX, V4.1.1, you can use WSCLEAR with a new suboption, nnn (an integer between 0 and 255), to initialize each byte of WORKING-STORAGE data to a specific value. The storage is initialized before any VALUE clauses are applied.
See the syntax of WSCLEAR below:
The default value is NOWSCLEAR, which bypasses the storage-clearing process.
WSCLEAR with no value and WSCLEAR(0) have the same behavior as the previous WSCLEAR option behavior.
This feature eases porting of non-IBM COBOL files to COBOL for AIX, and makes it easier to debug COBOL for AIX applications.
For more information about WSCLEAR usages, see WSCLEAR in our information center.