--- title: SAS published: true taxonomy: category: - docs external_links: process: true title: false no_follow: true target: _blank mode: active --- [toc] <!-- ## An issue about result viewing{#issue} Currently some failure occurs on the remote browser function, and accordingly SAS cannot show results directly on a browser. Instead, you can use the ods command to output results to a html file. Example: ```nohighlight ods html file='test.html';  a series of prucedure ods html close ``` --> ## License Agreement{#license_agreement} SAS can be used for education or research only. Researchers in private organizations are prohibited to use SAS to provide profit for specific organizations and must return the fruits obtained by SAS to society. ## Environment Settings{#enviroment} ### Software Version and System Requirements{#version} SAS is available in only a single node of system B’s login nodes. You need to log in to **sas.kudpc.kyoto-u.ac.jp** when using SAS. SAS cannot be used as a batch. Version | System A | System B | System C -------------- | -------- | -------- | -------- 9.4(default) | ― | AU | ― Key: AU = Available for academic users only, ― = Not available for use. ### Modules{#modules} Modules software package dynamically adjusts the environment settings for using applications, by using the module command. It also makes changing the environment settings easy when switching between different versions of applications. For details, see [Modules](/config/modules). Version | Module File --------------- | --------------- 9.4 (default) | sas/9.4 You can see the list of module files available by using the module avail command. ## Software Overview{#overview} SAS (Statistical Analysis System) is a software package for various data processing and analysis. The SAS system consists of the basic system and various optional products, each of which serving its own purpose. Each software product includes multiple statistical programs(procedures). ### Software Features{#functions} #### Base SAS Software Base SAS Software is the basic product of the SAS system, which integrates optional products. It has data processing functions such as data step processing, reporting, and descriptive statistics. #### SAS/STAT Software SAS/STAT Software is a product for statistical analysis such as regression analysis, variance analysis, multivariate analysis, discriminant analysis, cluster analysis, categorical analysis, and survival analysis. #### SAS/GRAPH Software SAS/GRAPH Software is used to draw plots, charts, 3D graphs, contour maps, and map graphs. #### SAS/ETS Software SAS/ETS Software is a product that performs statistical analysis of time-series data and modeling of economic systems by simultaneous equations. #### SAS/OR Software SAS/OR Software is a product of operations research for schedule control and mathematical programming. #### SAS/IML Software SAS/IML Software is a product that performs matrix operation through an interactive interface employing linear-algebra-style expressions. This product handles generalized inverse matrices, eigenvalue decomposition, FFT, QP(quadratic programming), time-series modeling, etc. SAS/IML is an interactive matrix operation language capable of file input/output, conditional judgment, repetition, and modules. ## How to Use{#usage} ### Access Requirements{#before} SAS works on only one login node “laurel2,” of system B. You need to log in to sas.kudpc.kyoto-u.ac.jp(host name: laurel2) to use SAS. ### Setting Up Environment (Executing the module Command){#env_set} Set up the environment by using the module command. (The module file you want is loaded.) ```nohighlight $ module load sas ``` ### How to Use in GUI{#gui} To start SAS, enter the following command in the X Window System environment. ```nohighlight $ sas_en ``` ![](sas_example_01.png) The following windows are displayed: **Change Notice**, **Output**, **Explorer**, **Results**, **Program Editor**, **Log**, **ToolBox**, and **Session Management**. First, make sure to close the **Change Notice** window. The **Change Notice** window might be hidden by another window. Program Editor cannot be operated before closing the **Change Notice** window. In the one of the these window: **Explorer**, **Results**, or **Program Editor**, select the **File** menu in the menu bar, then click **Exit** to exit SAS. #### Using Japanese Version You can use Japanese version by using the **sas_ja** command. ```nohighlight $ sas_ja ``` As for a character encoding, the supercomputer system uses the **UTF-8** form, but the **sas_ja** command uses the **EUC-JP** form. Thus, please convert a file including Japanese into the **EUC-JP** form by using the **nkf** command. **Example of the conversion into EUC-JP:** ```nohighlight $ nkf -eLu sample_utf8.sas > sample_eucjp.sas ``` The **man** command allows you to know how to use the **nkf** command. For details on the **man** command, see [Basics on UNIX / Linux](/linux#man). $ man nkf ### How to Use in CUI{#cui} To start SAS, enter the following command with the **-nodms** option. ```nohighlight $ sas_en -nodms NOTE: Copyright (c) 2002-2008 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software 9.2 (TS1M0) Licensed to KYOTO UNIVERSITY -BSC, Site 0010203989. NOTE: This session is executing on the SunOS 5.10 platform.You are running SAS 9. Some SAS 8 files will be automatically converted by the V9 engine; others are incompatible. Please see http://support.sas.com/rnd/migration/planning/platform/64bit.html PROC MIGRATE will preserve current SAS file attributes and is recommended for converting all your SAS libraries from any SAS 8 release to SAS 9. For details and examples, please see http://support.sas.com/rnd/migration/index.html This message is contained in the SAS news file, and is presented upon initialization. Edit the file "news" in the "misc/base" directory to display site-specific news and information in the program log. The command line option "-nonews" will prevent this display. NOTE: SAS initialization used: real time 0.30 seconds cpu time 0.12 seconds 1? endsas; NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 6.43 seconds cpu time 0.12 seconds ``` To omit displaying the news reports when startup, please specify the **-nonews** option. ```nohighlight $ sas_en -nodms -nonews ``` #### Using Japanese Version You can use Japanese version by using the **sas_u8** command after setting **up ja_JP.UTF-8** in the environment variable LANG. **Setting up the environment variable LANG.** ```nohighlight ## Setting environment variable LANG (for tcsh) $ setenv LANG ja_JP.UTF-8 ``` ```nohighlight ## Setting environment variable LANG (for bash) $ export LANG=ja_JP.UTF-8 ``` **Starting up Japanese version.** ```nohighlight $ sas_u8 ``` ### How to Use Without Interactive Processing{#cui_nottss} To execute SAS without using interactive processing, please specify a filename of SAS program in the argument. ```nohighlight $ sas_en sample.sas ``` ### If the letters on the window are overlapping{#error} That issue will be solved by selecting Passive_sas.cfg when specifying Xconfig on the Exceed onDemand. ## Reference Documents{#references} ### in Japanese{#ref_ja} No documents ### in English{#ref_en} No documents ## Links{#link} ### External Links{#ex_link} * [SAS Institute Inc.](http://www.sas.com/) ## Programming Seminars{#seminar} We periodically offer [programming seminars](http://www.iimc.kyoto-u.ac.jp/en/services/comp/support/course/), and distribute the handouts.