Sometimes we have some variables that we define and use as macros, for example:
$os = split(@ProductType)[1]
$csd = val(right(@csd,1))
$admin = ingroup('@wksta\'+sidtoname('S-1-5-32-544'))-1+@INWIN

I'd like it if a variable could be defined as 'read only'... something like the SET command...

hmmm. perhaps that would be the simplest way to go.
setl('csd = val(right(@csd,1))')
? %csd%
_________________________
How to ask questions the smart way <-----------> Before you ask