I would not try to do that.
Put the CLID node it at the entry point (I assume that all calls from the PSTN enter through the one script and are then distributed). Set an ECC variable to the two letter code for the States. Do this once, and once only. Now you can write custom functions to your heart's content to look at the ECC variables.
If you don't have a single PSTN entry script that acts as a distributor (typically on Dialed Number) you don't have the most optimal design (in my opinion). There are some things you want to do just once. Like the CLID (Region), the Send to VRU, the setup of ECC variables for CVP. Allowing dialed numbers to enter a number of scripts is sub-optimal - but people do things their own way.
After nearly 20 years with ICM I have found my way. May the force be with you.
(Hey - who are you? Do you work for TTEC? I am at eLoyalty also - send me an email geoff_thompson@eloyalty.com)
Regards,
Geoff