01-18-2017 11:45 PM - edited 01-18-2017 11:51 PM
There was a discussion in which Dorfman explained the following code:
data _null_ ; retain c b a . ; array v a b c ; addra = input (addrlong (a), pib4.) ; addrb = input (addrlong (b), pib4.) ; addrc = input (addrlong (c), pib4.) ; put (addra addrb addrc) (:); run ;
I wanted to run it on SAS UE(under Windows 10). It resulted in the following error:
ERROR: The function ADDRLONG cannot be invoked when SAS is in the lockdown state.
Is there a way to reset the lockdown state to run this code?
01-19-2017 02:48 AM
According to the 9.4 documentation for the ADDRLONG function, this is intended and works as designed. Some SAS functions and abilities are simply not available in UE, which is in a permanent lockdown state.
What were you intending to do, anyway?
01-20-2017 08:21 AM
I was hoping there would be some options setting to enable to work with APP functions. I wish SAS provides these functions just for learning purposes.
Thanks for your reply.
01-20-2017 09:08 AM
Used SAS for 10+ years and never used those functions.
Also, unless you're an admin many companies with a SAS server have it locked down, beyond what's implemented in SAS UE.
So although it's not ideal you aren't going to miss out on anything.
01-20-2017 10:02 AM
The addrlong function has nothing to do with SAS arrays. SAS arrays work perfectly well in UE.