x – Notes to Self

Things I need to remember!

Mirror Mirror on the wall, where am I running?

Jun
01

We have been doing some trouble shooting with the new Grid environment, and one of the guys on the customers site found this great piece fo SAS code:

%put _all_;

Run it in EG and the log will tell you a whole heap about what and where you are running your code on!

Example results from SAS 9.2 (GRID)

Read More »

Share
Posted by  
1 Comment

Capturing Screenshots on a Mac

Nov
06

Because I always forget!

  • To capture the entire desktop, press Command-Shift-3. The screen shot will be automatically saved as a PNG file on your desktop.
  • To copy the entire desktop, press Command-Control-Shift-3. The screen shot will be placed on your clipboard for you to paste into another program.
  • To capture a portion of the desktop, press Command-Shift-4. A cross-hair cursor will appear and you can click and drag to select the area you wish to capture. When you release the mouse button, the screen shot will be automatically saved as a PNG file on your desktop. (The file is saved as PDF in Mac OS 10.3 and earlier.)
  • To capture a specific application window, press Command-Shift-4, then press the Spacebar. The cursor will change to a camera, and you can move it around the screen. As you move the cursor over an application window, the window will be highlighted. The entire window does not need to be visible for you to capture it. When you have the cursor over a window you want to capture, just click the mouse button and the screen shot will be saved as a PNG file on your desktop. (The file is saved as PDF in Mac OS 10.3 and earlier.)
  • Add Control to the two shortcuts above to place the screen shot on the clipboard instead of saving it to the desktop.
  • Another method for capturing screen shots in Mac OS X is by using the bundled Apple utility, Grab, located in the Applications > Utilities folder. Grab is useful if you need to include a cursor or a menu in your screen shot, or if you want to save your screen shot to TIFF format. To include a cursor, first go to Grab Preferences and select the cursor icon you wish to have in your screen shot. To capture the screen with Grab, run Grab, then choose of the capture modes from the “Capture” menu: Selection, Window, Screen, Timed Screen.
  • When you choose the Selection mode in Grab, you can capture a specific region of the screen by dragging around it. Grab will display a tooltip showing the size of the region you have selected and the screen shot will open in a window when you release the mouse button. The cursor will not be included.
  • When you choose the Window mode in Grab, an instruction window will appear asking you to select the window you wish to capture, then click the “Choose Window” button. When you click the button, the instructions will disappear and the window you click ill be captured, including the mouse cursor at the position where you click (if a cursor was selected in Preferences).
  • When you choose the Screen mode in Grab, an instruction window will appear asking you to click the screen when you are ready to capture. The mouse cursor will be included in your screen shot at the position where you click (if a cursor was selected in Preferences).
  • When you choose the Timed Screen mode in Grab, an instruction window will appear, allowing you to prepare your screen for capture. When you are ready, press the “Start Timer” button and you will have ten seconds before the screen is captured. This allows you to open menus and sub-menus, if necessary. After ten seconds the entire screen will be captured. The mouse cursor will be included in your screen shot if a cursor was selected in Preferences.
  • Share
    Posted by  
    0 Comments

    SAS 9.2 Third Party Sofwtare Dependencies and Versions

    May
    03

    I have been doing a bit more Solution Architecture work around SAS 9.2 lately, and I keep needing to validate what versions of Operating System works with what version of SAS etc.

    So here are the links (please note I have only included links to SAS 9.2 TM2Mx, not TM1M0):

    Share
    Posted by  
    0 Comments

    Transforming SAS Dates – From here to there, funny things are everywhere

    Apr
    29

    Every now and again I get to right some SAS code.

    And every know and again I need to transform SAS dates, from Date/Time to Date9 or from Date to Date/Time etc.

    Its one thing that I always end up looking at SAS support for the correct syntax.  So Im going to post each one I use here so I can find them easily.

    SAS Date to Date/Time

    To convert a SAS date to a SAS Date/Time, by adding a time of 00:00:00 to it use:

    dhms(<date_variable_name>,0,0,0)

    Share
    Posted by  
    1 Comment

    SAS 9.2 Users Connection profiles

    Apr
    05

    In SAS 9.2 two different typos of connection profiles are stored for each user, one for windows applications (AMO, EG etc) and the pother for Java applications (DI Studio, Info Map Studio etc).

    Java Applications:

    Connection profiles are stored on the hosts of the desktop applications at C:\Documents and Settings\user name\Application Data\SAS\MetadataServerProfiles. In the Windows Vista operating environment, the path is C:\Users\user name\AppData\Roaming\SAS\MetadataServerProfiles. The names of the profiles use the file extension.swa.

    Windows Applications:

    These profiles are stored in the ConfigurationV42.xml file in the users home directory C:\Documents and Settings\user name\Application Data\SAS\MetadataServerProfiles.

    And of course recommended good practice is to only change these files via the profile editing capability provided within each of the SAS client applications.

    Share
    Posted by  
    0 Comments

    SAS 9.2 Migration – Migrating Formats

    Mar
    19

    And following on with the theme of migrating SAS formats …..

    SAS Support article here:

    http://support.sas.com/kb/22/194.html

    Outlines how to migrate formats across SAS systems.

    Basically you just:

    1) Export the formats to a transport file by using the follwing code:

      libname library 'location-of-existing-formats-catalog';
      libname trans xport 'transport-file-name';
      proc format library=library cntlout=trans.cntlfmt;
    
    2) Import the formats from the transport file using the following code:
    
      libname library 'output-library-for-format-storage';
      libname trans xport 'transport-file-name-from-sending-site';
      proc format library=library cntlin=trans.cntlfmt;
    

    This is of course assuming you don’t have the code that originally created teh formats, because you could just run that instead. But bet you dont as you have just searched for something that made you find this blog post ;-)

    
    
    Share
    Posted by  
    0 Comments

    A list of SAS 9.2 procedures

    Mar
    17

    If you are ever looking for a list of SAS 9.2 procedures or trying to work out what SAS product you need to buy to use a certain procedure, you can find them here on the SAS support site:

    SAS Procedures by Name
    SAS Procedures by Product

    Share
    Posted by  
    0 Comments

    SAS Access – Who plays nicely with who(m)

    Mar
    06

    Just saw this post on Chris H’s blog here and I am replicating it so I can find it when I need it. (cause half my posts are there so I can find them when I need them)

    If you want to know what version of SAS/Access works with what operating system and what release and what database etc, then look here:

    http://support.sas.com/matrix/list?SAS=All&Engine=All&OS=All&googleTrack=on

    Share
    Posted by  
    0 Comments

    Summary of SAS 9.2 Migration Course Tweets

    Dec
    02

    Well course is over and I passed, so wahoo for me!

    I am blogging all my tweets from the course so it is easier for me to search them in the future.

    Read More »

    Share
    Posted by  
    0 Comments

    SAS 9.2 External Identities

    Dec
    02

    SAS 9.2 now has the concept of External Identities against a user or group.

    The following is an extract of the online help:

    Read More »

    Share
    Posted by  
    0 Comments