I've written the following macro to combine two layers into one and purge out the second selected layer. We have trouble here with people using similar layer names and it would be useful to do this. The problem is that it seems to have difficulty remembering the environment variable "newlayer" and only works intermittently. can anyone help with a debug (Dean?)? Obviously the macro should all be on one line, but I can't get it to appear as such here! Thanks in advance. Paul. ^C^C_ai_molc;\setenv;newlayer;$m=$(getvar,clayer);_ai_molc;\-layer;freeze;*;;erase;all;;_oops;change;previous;;properties;la;$m=$(getenv,newlayer);;-layer;thaw;*;set;$m=$(getenv,newlayer);;-pu;la;;n;