CLEARCOMMON

CLEARCOMMON

Top  Previous  Next

 

The CLEARCOMMON statement sets all variables in the unnamed common area to zero. Used with a common block name, it clears the named common.

 

 

Format

 

CLEARCOMMON {name}

 

CLEAR COMMON {name}

 

 

If name is omitted, all variables in the unnamed common area are set to zero. Other variables are not affected.

 

If name is present, it must be the name of a common block defined in the program. All variables in this common block will be cleared.

 

 

Examples

 

COMMON A,B,C

CLEARCOMMON

 

All variables in the unnamed common area (A, B and C) are set to zero.

 

 

COMMON /MYDATA/P,Q,R

CLEARCOMMON MYDATA

 

All variables in the MYDATA common block (P, Q and R)are set to zero.

 

 

See also:

CLEAR, COMMON