Global variable application in writetarget

Used with -i option and business impact.