The following example demonstrates how to save & load global variable (integer counter).
common shared my_counter as long
program
try
load my_counter.prg
catch else
end try
my_counter = my_counter + 1
SAVE file="my_counter.prg" type = long VARIABLENAME="my_counter" MODE= NEW