Git Product home page Git Product logo

sas-py's Introduction

MELPA MELPA Stable Build Status License

sas-py

Equip SAS in Emacs with SASPy.

It runs an interactive python shell and wraps the utilities from SASPy to make it convenient to work with SAS for any kind of SASPy supported SAS deployments, for example, IOM for local installed SAS on Windows, IOM for remote workspace server (e.g. SAS OA), and HTTP for SAS Viya. For more access method, please refer to the documents of SASPy.

Pre-installation

Install SASPy in Python

pip install saspy

It requires Emacs package ESS as well.

Installation

Clone this repository. Add the following to your .emacs:

(require 'sas-py)

Usage

  1. Set sas-py-cfgname to the config.
  2. Call run-sas-py
  3. sas-py-submit-file or sas-py-submit-region

Customization

Customization Description
sas-py-cfgname cfgname. 'default' or the one defined in 'sascfg_personal.py', e.g. 'win_local'
sas-py-results-format "TEXT", "HTML" or "Pandas"
sas-py-batchp Sets the batch attribute for the SASsession object or not
sas-py-remote-name-ip-map A pair of server name and IP address
  • sas-py-cfgname can be set buffer-local, for example, set it in .dir-locals. So that we can use different config for different files or projects.

Command

Command Description
run-sas-py Call run-python and init SASPy Session
sas-py-submit-file Submit SAS code file
sas-py-submit-region Submit region with temporary SAS code file
sas-py-submit-to-pyshell Submit to interactive python shell without create temporary SAS code file
sas-py-submit-in-context Submit in contex, ie, in a separate SAS session
sas-py-grep-log Grep the log file for error or warnings
sas-py-disconnect Disconnect
sas-py-reconnect Reconnect
sas-py-endsas End SAS session
sas-py-lastlog Show lastlog
sas-py-assigned_librefs Show assigned librefs
sas-py-list_tables Show the list of tables in a library (libref)
sas-py-datasets Show the list of datasets in a library (libref) using PROC DATASETS
sas-py-get-dataset Get a dataset
sas-py-lib_path Show lib_path of the libref
sas-py-saslog Show the full saslog
sas-py-set_results Set the format of results
sas-py-set_batch Toggle batch mode
sas-py-submit-string Submit a string or a piece of SAS code
sas-py-getwd Show current working directory
sas-py-setwd Change current working directory
sas-py-list-options List SAS options
sas-py-list-macro-vars List macro variables
sas-py-sascfg Show the config file used in this session
sas-py-list_configs List config files
sas-py-data-describe Show describe/means of SAS data

Note:

  • sas-py-reconnect is not stable and need to be improved in this package.
  • sas-py-data-describe need to be improved.

sas-py's People

Contributors

shuguangsun avatar

Watchers

 avatar

Forkers

emacsmirror

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.