SAS On Unix/Linux- From The Terminal To GUI.

1y ago
46 Views
2 Downloads
1.05 MB
25 Pages
Last View : 2d ago
Last Download : 3m ago
Upload by : Aliana Wahl
Transcription

SAS on Unix/Linux- from the terminal to GUI.L Gakava & S Kannan – October 2015

AgendaAll about the terminaloooooCustomising your terminalBasic Linux terminal commandsRunning SAS in non-interactive modeAvailable SAS file editorsWhat to look out for on Unix/Linux platformAll about Graphical User Interface (GUI)ooooLaunching SAS GUI.Changing SAS default behaviourSAS ToolBox commandsSAS editor commands.

Motivation - Why Use SAS On Unix/Linux?Using SAS on UNIX/Linux Platformo Company migrating to UNIX/Linuxo Joining a company which is using SAS on the Linux platformChallengeToo many commands to learn!Why Use SAS On Unix/Linuxo Customising Linux sessions will ensure you increase work efficiency by takingadvantage of the imbedded Linux tools. In general transferring and running large fileswill be quicker in Linux compared to PC*.

TerminalWhat to expect when you login?% pwd/home/username% lsCustomise: Update .bashrc file with this line PS1 ' IV PWD EE ' will change your prompt to show thefollowing:/home/username

Terminal NavigationCommandMeaninglslist files and directoriesls -alist all files and directoriesmkdirmake a directorycd directorychange to named directorycdchange to home-directorycd change to home-directorycd .change to parent directory

Terminal NavigationCommandMeaningcp file1 file2copy file1 and call it file2mv file1 file2move or rename file1 to file2rm fileremove a filermdir directoryremove a directorycat filedisplay a fileless filedisplay a file a page at a timehead filedisplay the first few lines of a filetail filedisplay the last few lines of a filegrep 'keyword' filesearch a file for keywordswc filecount number of lines/words/characters in file

Terminal useful commandsHow do you find out if a version of a file has changed?/home/username diff file1.txt file2.txtCommand to compare two files.This is useful to compare outputs that have been re-run with an olderversion. This will compare line by line, hence it’s only useful tocompare different versions of the same file. This command cannotbe used to compare datasets.

Terminal useful commandsHow do I search for text in multiple files?/home/username grep -i string filename How do I run SAS in non-interactive mode/batch?/home/username sas filename How do I run code that is resource intensive?/home/username sas –memsize max mysascode.sas

Editing SAS filesHow do I edit SAS files?Linux editors for plain text can be divided into twocategories:1. Console text editors- include emacs, jed, nano, picoand vim.2. Graphical GUI editors - include gvim, gEDIT, Nedit,Slick edit, Tea and SublimeThe advantage of the GUI editor is intuitive user friendly interface while thebenefit of the console text editor is the suitability over long distancenetwork connections which may or may not provide suitable bandwidthor reliability which would both be required by the GUI editors for remoteoperation. Console based text editors. GUI editors Face to face meetingor teleconference.

What to look out for?LINUX platform is case sensitive and file directories and external filenames called within SAS are case sensitive but the SAS session isnot.Code written in PC SAS might not run on SAS because the MicrosoftWindows and Linux operating systems store text files in a differentformat. It is good practice convert a file from Microsoft Windows toLinux format by using a ‘dos2unix’ command on the terminal./home/username dos2unix mysascode.sas

Still other thingsOther things to keep in mindUse the ‘&’ at the end of Linux commands. This means thecommand will be executed in the background and you cancontinue using the terminal. Otherwise you will have to waitfor the command to execute before you can use the terminal.If you have a 3-button mouse you can copy text by highlightingthe text using your mouse. This automatically copies the textand you can paste the text by pressing down the wheel on themouse.

Terminal helpIf in doubt man it!!!Type man or fman command to access the system's reference manuals. It can beused to search for occurrences of specific text and other useful functions.

ALL ABOUT GUI/home/username sas&

Changing default behaviorSelecting and copying text

Changing default behaviorTruncation of inserted text?Text is not split at the cursor when you press ENTER or RETURN?I cannot use PC shortcuts to copy and paste texts?Modify the entries in the SAS: KEYS window

Changing default behavior

Remember my configuration settings?

SAS ToolBox

Program editor commands

Editing ]i[N]ib[N]Mark 1 or N lines to be copiedMark boundary of block to be copiedMark 1 or N lines to be movedMark boundary of block to be movedMark 1 or N lines to be deletedMark boundary of block to be deletedInsert 1 or N lines after this pointInsert 1 or N lines from this pointInsert 1 or N lines before this point

Other useful editing commandsChanging casecu[N]cl[N]ccucclmcumclChange 1 or N lines to upper caseChange 1 or N lines to lower caseChange block to upper caseChange block to lower caseChange marked text to upper caseChange marked text to lower t justify line to position NLeft justify block to position NCentre justify to line length NCentre justify block to line length NRight justify 1 or N linesRight justify block

Other useful editing commandsRepetitionr[N]rrIndentation [N] [N])[N]))[N] [N] [N]([N](([N]Repeat 1 or N timesRepeat blockRight shift 1 or N spacesRight shift block 1 or N spacesRight shift destructive 1 or N spacesRight shift destructive block 1 or N spacesLeft shift 1 or N spacesLeft shift block 1 or N spacesLeft shift destructive 1 or N spacesLeft shift destructive block 1 or N spaces

CONCLUSION§ This presentation gives the basis for a lesspainful transition to using SAS on Linuxfrom PC.o There is greater flexibility in using Linux and the readeris encouraged to explore this in more detail to increasetheir productivity when using SAS on Linux.

ReferencesAssignment.essayshark.com,. (2015). Retrieved 24 September 2015, pe.com,. (2015). Linux and Unix diff command help and examples. Retrieved 22 September 2015,from i.biz,. (2015). How to: Change / Setup bash custom prompt (PS1). Retrieved 22 September 2015, -bash-shell-setup-prompt.htmlEe.surrey.ac.uk,. (2000). UNIX Tutorial - Introduction. Retrieved 22 September 2015,from .htmlIppolito, G. (2015). Linux Text Editors. Yolinux.com. Retrieved 22 September 2015,from htmlSupport.sas.com,. (2015). AUTOSPLIT, AUTOFLOW Command. Retrieved 25 September 2015, Support.sas.com,. (2015). Browsing and Editing SAS Data Sets. Retrieved 25 September 2015, Support.sas.com,. (2015). Getting Started with SAS in UNIX Environments. Retrieved 25 September 2015, t.sas.com,. (2015). SAS Windowing Environment in UNIX Environments. Retrieved 25 September 2015, Support.sas.com,. (2015). The SAS ToolBox in UNIX Environments. Retrieved 25 September 2015, Wikipedia,. (2015). Bash (Unix shell). Retrieved 22 September 2015,from https://en.wikipedia.org/wiki/Bash %28Unix shell%29Wikipedia,. (2015). Diff utility. Retrieved 22 September 2015,from https://en.wikipedia.org/wiki/Diff utilityWilliam Shotts, J. (2015). LinuxCommand.org: Learn the Linux command line. Write shell scripts. Linuxcommand.org. Retrieved 22 September 2015, shington.edu,. (2015). Unix Tutorial. Retrieved 22 September 2015,from l#files

o Company migrating to UNIX/Linux o Joining a company which is using SAS on the Linux platform Challenge Too many commands to learn! Why Use SAS On Unix/Linux o Customising Linux sessions will ensure you increase work efficiency by taking advantage of the imbedded Linux tools. In general transferring and running large files will be quicker in .

Related Documents:

POStERallows manual ordering and automated re-ordering on re-execution pgm1.sas pgm2.sas pgm3.sas pgm4.sas pgm5.sas pgm6.sas pgm7.sas pgm8.sas pgm9.sas pgm10.sas pgm1.sas pgm2.sas pgm3.sas pgm4.sas pgm5.sas pgm6.sas pgm7.sas pgm8.sas pgm9.sas pgm10.sas 65 min 45 min 144% 100%

SAS OLAP Cubes SAS Add-In for Microsoft Office SAS Data Integration Studio SAS Enterprise Guide SAS Enterprise Miner SAS Forecast Studio SAS Information Map Studio SAS Management Console SAS Model Manager SAS OLAP Cube Studio SAS Workflow Studio JMP Other SAS analytics and solutions Third-party Data

Both SAS SUPER 100 and SAS SUPER 180 are identified by the “SAS SUPER” logo on the right side of the instrument. The SAS SUPER 180 air sampler is recognizable by the SAS SUPER 180 logo that appears on the display when the operator turns on the unit. Rev. 9 Pg. 7File Size: 1MBPage Count: 40Explore furtherOperating Instructions for the SAS Super 180www.usmslab.comOPERATING INSTRUCTIONS AND MAINTENANCE MANUALassetcloud.roccommerce.netAir samplers, SAS Super DUO 360 VWRuk.vwr.comMAS-100 NT Manual PDF Calibration Microsoft Windowswww.scribd.com“SAS SUPER 100/180”, “DUO SAS SUPER 360”, “SAS .archive-resources.coleparmer Recommended to you b

Linux in a Nutshell Linux Network Administrator’s Guide Linux Pocket Guide Linux Security Cookbook Linux Server Hacks Linux Server Security Running Linux SELinux Understanding Linux Network Internals Linux Books Resource Center linux.oreilly.comis a complete catalog of O’Reilly’s books on Linux and Unix and related technologies .

Both SAS SUPER 100 and SAS SUPER 180 are identified by the “SAS SUPER 100” logo on the right side of the instrument. International pbi S.p.AIn « Sas Super 100/180, Duo Sas 360, Sas Isolator » September 2006 Rev. 5 8 The SAS SUPER 180 air sampler is recognisable by the SAS SUPER 180 logo that appears on the display when the .File Size: 1019KB

Jan 17, 2018 · SAS is an extremely large and complex software program with many different components. We primarily use Base SAS, SAS/STAT, SAS/ACCESS, and maybe bits and pieces of other components such as SAS/IML. SAS University Edition and SAS OnDemand both use SAS Studio. SAS Studio is an interface to the SAS

SAS Stored Process. A SAS Stored Process is merely a SAS program that is registered in the SAS Metadata. SAS Stored Processes can be run from many other SAS BI applications such as the SAS Add-in for Microsoft Office, SAS Information Delivery Portal, SAS Web

Samy T. (Purdue) Rough Paths 4 Aarhus 2016 27 / 67. Russo-Vallois’symmetricintegral Let φbearandompath Then Z b a φ w d Bi w L 2 lim ε 0 1 2ε Z b a φ w Bi w ε B i w ε dw, providedthelimitexists. Definition9. gralcoincideswith Young’sintegralifH 1/2andφ C1 H ε Stratonovich’sintegralintheBrowniancase Samy T .