Friday, March 15, 2013

Open an OLAP Cube through SAS Portal

http://www2.sas.com/proceedings/forum2008/183-2008.pdf

 

_____________________________________________________________________

Dan Strickland

Inland Fisheries Division

Texas Parks and Wildlife

3407-A S.Chadbourne Street

San Angelo, TX  76903

 

Phone:  512-666-4546

DanwStrickland@gmail.com

 

Learn how you can help Texas State Parks


Thursday, March 14, 2013

SAS Add-In 4.3 Microsoft Office unexpected exception error

Error:
 System.ArgumentException: Input string is not in valid format for decryption
   at SAS.Shared.SASCrypt.Decrypt(String inString)
   at SAS.OfficeAddin.Options.OptionsCore.LoadSmtpPassword()
   at SAS.OfficeAddin.Options.OptionsCore.Read(String fileName)
   at SAS.OfficeAddin.Options.OptionsCore.Load()
   at SAS.OfficeAddin.Options.OptionsGeneral..ctor()
   at SAS.OfficeAddin.OfficeAddinBase..ctor(Object application)
   at SAS.OfficeAddin.ExcelAddin..ctor(Object application)
   at SAS.OfficeAddin.OfficeAddinBase.Create(Object application, ScriptInterface scriptInterface)
   at SAS.OfficeAddin.Connect.CreateAddIn()
   at SAS.ExcelAddIn.VstoExcelAddIn.CreateAddIn()

To correct the problem, rename or remove the Smtpspa file. It will be re-created the next time that the add-in is loaded into Microsoft Office. In the Windows XP operating environment, the Smtpspa file is located in the following location:
C:\Documents and Settings\userid\Application Data\Add-InForMicrosoftOffice\4.3

In the Windows 7 operating environment, the Smtpspa file is located in the following location:
C:\Users\userid\AppData\Roaming\SAS\Add-InForMicrosoftOffice\4.3

SAS had this possible fix documented at:  http://support.sas.com/kb/41/948.html
_____________________________________________________________________
Dan Strickland - SAS Platform Adminstrator -512.666.4546_IF/Reg1__________
Texas Parks and Wildlife Department, 3407 S Chadbourne, San Angelo, TX 76903 danwstrickland@gmail.com 

SAS Add-in - How to remove from Outlook - switcher utility

You can have multiple installations of the SAS Add-in for Microsoft Office installed on the same computer. See SAS Note 35181 "Managing multiple installations of the SAS® Add-In for Microsoft Office" for more information. Because only one release of the SAS Add-in for Microsoft Office can be used at a time, the SAS Add-in for Microsoft Office Utility offers the capability to select or switch the active Add-in for Microsoft Office.
You can start the SAS Add-in for Microsoft Office Utility by selecting SwitcherUtility.exe. Here is an example installation path to the SAS Add-In 4.2 for Microsoft Office Utility:
   "C:\Program Files\SAS\Add-InForMicrosoftOffice\4.2\SwitcherUtility.exe"  
which opens the utility interface:
image label
The SAS Add-in for Microsoft Office Utility also supports command line usage that can be helpful in various install scenarios for administrators.
When SAS Add-in for Microsoft Office 4.2 is installed on a machine where the SAS Add-in for Microsoft Office 2.1 is already installed, then the SAS Add-in for Microsoft Office 4.2 installation will be the active installation. The SAS Add-in for Microsoft Office Utility interface can be used to switch between the add-in releases or you can run a command via a DOS prompt. For example, if you run this command, the active release of SAS Add-in for Microsoft Office will become 2.1:
   "C:\Program Files\SAS\Add-InForMicrosoftOffice\4.2\SwitcherUtility.exe" 2.1  
If you run this command, the active SAS Add-in for Microsoft Office release will become 4.2:
   "C:\Program Files\SAS\Add-InForMicrosoftOffice\4.2\SwitcherUtility.exe" 4.2  
Other commands and usage examples

Note: These commands can easily be used as bat files.
Turns the SAS Add-in for Microsoft Office off in Microsoft Word:
  "C:\Program Files\SAS\Add-InForMicrosoftOffice\4.2\SwitcherUtility.exe" 4.2 -Word  
Turns the SAS Add-in for Microsoft Office on in Microsoft Word:
       "C:\Program Files\SAS\Add-InForMicrosoftOffice\4.2\SwitcherUtility.exe" 4.2 +Word  
Turns the SAS Add-in for Microsoft Office on in Microsoft Excel, off in Microsoft Word:
   "C:\Program Files\SAS\Add-InForMicrosoftOffice\4.2\SwitcherUtility.exe" 4.2 +Excel -Word  
Same commands in silent mode

You can add silent to the command if you do not want to see the output written to the DOS prompt windows:
   "C:\Program Files\SAS\Add-InForMicrosoftOffice\4.2\SwitcherUtility.exe" 4.2 -word silent  
"C:\Program Files\SAS\Add-InForMicrosoftOffice\4.2\SwitcherUtility.exe" 4.2 +Word silent
"C:\Program Files\SAS\Add-InForMicrosoftOffice\4.2\SwitcherUtility.exe" 4.2 +Excel -Word silent
Easy changes between releases

Any of the above example commands can do the same thing working with the SAS Add-in for Microsoft Office 2.1 by changing the command to reference 2.1 rather than 4.2. Here is an example:
       "C:\Program Files\SAS\Add-InForMicrosoftOffice\4.2\SwitcherUtility.exe" 2.1 -Word  
Note: It is best practice to use the the latest product release of SAS Add-in for Microsoft Office Utility with the latest release of SAS Add-In for Microsoft Office. For example, if you have SAS Add-In for Microsoft Office 2.1, 4.2, and 4.3, use the SAS Add-in for Microsoft Office Utility from the 4.3 installation because it is the latest release installed.
More information
  1. Open Microsoft Office. For example, open Excel, Word, or PowerPoint.
  2. Select the SAS menu and then Help.
  3. Select SAS Add-In for Microsoft Office Help and then the Index tab.
  4. Type switching.
_____________________________________________________________________
Dan Strickland - SAS Platform Adminstrator -512.666.4546_IF/Reg1__________
Texas Parks and Wildlife Department, 3407 S Chadbourne, San Angelo, TX 76903 danwstrickland@gmail.com 

Personal Login Manager crashing (How to create a log)

For SAS 9.2 BI servers

Make a backup copy of the mrloginmgr.ini file located in
C:\Program Files\SAS\SASPersonalLoginManager\9.2

The modify the original mrloginmgr.ini's last line to look like this:

MainClass=com.sas.security.loginmanager.LoginManager -debug -serverlog

Save the file.

Bring up the Personal Login Manager, reproduce the error, exit the Personal Login Manager,

Then send the following file mrloginmgr*.log (for example: mrloginmgr_2012-12-4-12.28.36.log)
from :
C:\Users\<userid>\AppData\Local\SAS\SASDeploymentWizard

Or

another suggestion is to use the one of Microsoft's process uutilities (for example: Process Monitor or Process Explorer). http://technet.microsoft.com/en-us/sysinternals/bb795533
_____________________________________________________________________
Dan Strickland - SAS Platform Adminstrator -512.666.4546_IF/Reg1__________
Texas Parks and Wildlife Department, 3407 S Chadbourne, San Angelo, TX 76903 danwstrickland@gmail.com 

Wednesday, March 13, 2013

Passwords- Disabling from being saved on the local client

How to disable Passwords from being saved on the local client when those clients are using a BI server.

Change your passwords without locking out your connection

Did you change your LinkedIn password yesterday? (If you didn’t, you should!) But did it happen to be the same as your corporate password? First, tisk tisk. Second, change your corporate password NOW!
Ok, now that this is done ~ don’t let your saved connection profile for SAS applications lock your corporate account out later today. (The SAS connection profile is used in thick client applications including SAS Information Map Studio, SAS OLAP Cube Studio and SAS Management Console.) Before clicking the OK button to start a SAS connection, select Edit... and enter your new corporate password.

Select Edit Button on Connection Profile Screen

Next through the connection wizard until you see the password box.
Now SAS Administrators are probably going to be interested in ensuring that passwords are never saved in this system (especially after the LinkedIn fiasco). If this functionality was not disabled during the initial SAS configuration, administrators can go back and make that modification. Modify the XML property SASSEC_LOCAL_PW_SAVE from "T" to "1" to SASSEC_LOCAL_PW_SAVE "F" or "0" within the omaconfig.xml file located in the SAS Metadata Server configuration (Lev1/SASMeta/MetadataServer) and then restart the SAS services. Now the button 'Save user ID and password in this profile' (as seen in the 2nd screenshot above) will not be available for your SAS users and they will be forced to enter their password each time they initiate a connection.

Dan Strickland - SAS Platform Adminstrator -512.666.4546_IF/Reg1__________
Texas Parks and Wildlife Department, 3407 S Chadbourne, San Angelo, TX 76903 danwstrickland@gmail.com 

EG workaround on resetting prompts on egp files


Problem:

I have a stored process that multiple different users will need to run from within an enterprise guide project and am having some problems with settings on the prompts.

When one user has run the stored process it retains the values selected in the prompts so that when the next user runs the process the prompts are filled in with the last used values.
This is causing a problem as one of the prompts is for a password which not all the users will have and I would rather it not be filled in by default.

I know that from enterprise guide I can choose to reset the prompts on the stored process but is there a way to do this automatically when the project opens for example?

Workaround:


Because every enterprise guide project is basically a zip file i changed the extension of my project to .zip from .egp and had a poke around.
looking at some of the contents I discovered that the prompt values are (as i suspected) being stored within the project itself and not in the metadata object. This is backed up by the fact that if I add the stored process to a new project or run it through the web server the prompts are not pre-filled for me.
The other thing I spotted was that if I run the stored process and then close the project without saving, when I re-open the project the prompts are set back to the previous time I ran them.

Whilst this has not helped me to find a way to automatically reset the prompts it does mean that I have half a workaround as follows;
  • Reset the prompts myself and save the project
  • Make the project read only (properties on the file in windows)
  • Then release the project to the users
This has drawbacks because the users get the horrible 'this project is read only' message every time they open it and they have to remember to export the log files whenever they hit errors, however it does mean that the stored processes are always blank and they cannot accidentally delete any of the code I have written for them.

_____________________________________________________________________
Dan Strickland
Inland Fisheries Division
Texas Parks and Wildlife
3407-A S.Chadbourne Street
San Angelo, TX  76903

Phone:  512-666-4546



Example of creating an info map from code


Creating an info map from code

Example 1: Creating a Basic Information Map

The following example shows you how to use the INFOMAPS procedure to create an information map:
proc infomaps metauser="your-user-ID"
metapass="your-password"
metaserver="your-server-name"
metaport=8561;

/* Open a new information map. The specified location is */
/* where, by default, the information map is saved when a */
/* SAVE statement issued. The information map exists only */
/* in memory until a SAVE statement is issued. */
new infomap "xmp_simple"
mappath="/Users/sasdemo/My Folder"
auto_replace=yes;

/* Make the specified table on the specified server accessible. */
insert datasource sasserver="SASApp"
table="Sample Data"."CLASS" _all_;

/* Save the information map that is currently open. Because */
/* no location is specified in the SAVE statement, it is saved */
/* in the location specified in the NEW INFOMAP statement. */
save;

run;
The following window shows the resulting information map opened in SAS Information Map Studio. Note that the folder CLASS was created automatically because the INSERT DATASOURCE statement includes the _ALL_ option.
Basic information map example