In the screen editor (machscreen or Screen4) place a DRO and give it a number in the 'Standard code' section of 1800 to 1850 you can then add a label saying what it is.
In your macro you read it by
var = GetOEMDRO(1800)
and update it by
SetOEMDRO(1800,val)
That is the short version