Is there a way where I can make a variable visible to some procedures while making it invisible to some ?

e.g. three procedures


proc 1
proc2
proc3

and variable x

proc1 and proc2 can 'see' (i.e. modify the contents, read it etc) it but not proc3


Thanks.