The clear statement sets all local and common variables to 0 in a main program.
clear
In a subroutine, only the local variables are affected. Named common variables are not affected by the clear statement.
assigned() function, Assignment, common statement, Statements and functions, subroutine statement, Variables