• Running SAS on Unix interactively using SAS Windowing Environment…

    Posted on May 7, 2012 by in Running SAS, SAS, SAS Tips & Tricks

    This tutorial assumes that SAS v 9.1.3 was installed on a Unix server at the location /opt/sas/ and the SAS interactive executable is /opt/sas/sasi on a Sun Solaris Unix server and Hummingbird Exceed software available on a PC.

    sas on unix

    In order to view the Interactive SAS Windowing environment on a Unix Box…One would require the X Windows display manager software like Humming Bird Exceed / Citrix Software or any similar software on his/her PC.

    Run the command from the computer’s Start |Run

    “C:\Program Files\Hummingbird\Connectivity\xxxx\Exceed\exceed.exe” -m query -w single -h UnixBox
    where xxxx is the version of Exceed

    SAS on Unix - Run Command

    Enter your login credentials…You would require access to “UnixBox” server

    SAS on Unix - Solaris Login

    SAS on Unix -- Solaris Login

    If you are doing this for the first time then choose either “Java desktop Environment or CDE Desktop” as your options.

    This would open like a desktop environment…

    SAS on unix - Desktop
    Then go to Launch | Applications | Utilities |Terminal…to open a MS DOS prompt like Unix terminal…

    SAS on Unix - Terminal

    SAS on unix - Terminal

    Then change directory to /opt/sas/ and then type “sasi” to invoke SAS..

    Alternatively, you could type “/opt/sas/sasi” at the $ prompt..

    SAS on Unix

    The next screen shots show how SAS looks like on Unix Box and an example SAS Code that I have executed.

    Look at the macro RecinDS @ http://technico.qnownow.com/ways-to-count-the-number-of-obs-in-a-dataset-and-pass-it-into-a-macro-variable

    SAS on unix - Code

    Look at the log for the output….
    SAS on unix -- Output

    You could run your SAS jobs in Batch mode…Read the article @ http://technico.qnownow.com/running-sas-on-unix-in-batch-mode

    Be Sociable, Share!
      Post Tagged with , ,

    Written by

    View all articles by

    Email : [email protected]

    Leave a Reply