SAS® Explorer Use and Customization Richard A. DeVenezia.

Slides:



Advertisements
Similar presentations
Using Context Sensitive Menus to Enter Values in a SAS/AF Data Table Object Richard A. DeVenezia.
Advertisements

Tutorial 8: Developing an Excel Application
Microsoft Excel 2013 An Overview. Environment Quick Access Toolbar Customizable toolbar for one-click shortcuts Tabs Backstage View Tools located outside.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Getting Started with Windows ® XP 1 Getting Started with Windows ® XP By Robert T. Grauer Maryann Barber.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Hands-On Microsoft Windows Server 2003 Administration Chapter 5 Administering File Resources.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Installing Windows XP Professional Using Attended Installation Slide 1 of 41Session 2 Ver. 1.0 CompTIA A+ Certification: A Comprehensive Approach for all.
Introduction to Computers II A Presentation of the Elmhurst Public Library.
Copyright 2007, EMC Paradigm Publishing Inc. WINDOWS XP BACKNEXTEND 1-1 LINKS TO OBJECTIVES Starting Windows Using the Taskbar, opening & switching programs.
‘ {] Chapter 2 (HW01) Getting Started with Windows 7.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Microsoft Office 2007 FastFacts May 6, Topics The Microsoft Office Button The Quick Access Toolbar The Ribbon The Mini Toolbar.
Office 2013 and Windows 8: Essential Concepts and Skills
Microsoft Outlook 2007 Basics Distance Learning (860) 343 – 5756 Chapman 633/632 Middlesex Community College Visit
1 ADVANCED MICROSOFT WORD Lesson 16 – Customizing Features Microsoft Office 2003: Advanced.
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
Working with Data in Windows HRP223 – 2009 Sept 28 th, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
1 2 Lab 2: Organizing Your Work. 2 Competencies 3 After completing this lab, you will know how to: 1. Use Explorer to manage files. 2. Copy files. 3.
Microsoft Access Lesson 1 Lexington Technology Center February 11, 2003 Bob Herring On the Web at
Introducing Windows 95. Today’s Agenda n Overview n Windows for Workgroups v. Windows 95 n The Desktop –My Computer, Recycle Bin, Task Bar, Start Buttons.
Learningcomputer.com Introduction to Microsoft Word 2007 New Look and Feel.
Chapter 3 – Part 1 Word Processing Writer for Linux CMPF 112 : COMPUTING SKILLS.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Chapter 1: Introduction to SAS  SAS programs: A sequence of statements in a particular order  Rules for SAS statements: –Every SAS statement ends in.
Key Applications Module Lesson 21 — Access Essentials
With Windows 7 Introductory© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 Windows 7 Introductory Chapter 3 Advanced File Management and Advanced.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
1 EPIB 698E Lecture 1 Notes Instructor: Raul Cruz 7/9/13.
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Lesson 9: Windows Management Ms. Tracy Digital Literacy.
Microsoft Office XP Illustrated Introductory, Enhanced with Programs, Files, and Folders Working.
CMPF124: Basics Skills for Knowledge Workers Manipulating Windows GUI.
Separating the Interface from the Engine: Creating Custom Add-in Tasks for SAS Enterprise Guide ® Peter Eberhardt Fernwood Consulting Group Inc.
OBJECTIVES  Understand relational databases  Explore a database  Create a database  Create a table  Create primary keys  Relate two tables  Enter.
Lab 0 / Chapter 0 Windows XP Environment. 2 User Interfaces: A different perspective.
Copyright © 2010, SAS Institute Inc. All rights reserved. SAS ® Using the SAS Grid.
The Excel model for information processing The Excel model is a grid of cells in which items of information are stored and processed. Any information that.
Computer Skills Chapter 3. Computer Skills1 by Maram & Dareen windows It is a GUI (Graphical User Interface) operating system which is designed for personal.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 3 Using the Graphical User Interface.
1 Data Manipulation (with SQL) HRP223 – 2009 October 12, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
1 Lesson 9 Windows Management Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Today We Will Review: Operating Systems (Windows) (week 3 & 4) Starting up MS Windows Desktop and its contents Functions of the desktop components Brain.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office 2010 Fundamentals by Robert Grauer, Lynn Hogan, and Mary.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Installing and Using Evolve Evolve is written in Java and runs on any system with Java 1.6 Download Evolve from Unzip.
WINDOWS Part 2 – File Management. File Management Files - Electronic collections of data that you create and save on a computer Examples: –Resume created.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
5.2 Microsoft Excel.
International Computer Driving Licence Syllabus version 5.0
Computing Fundamentals
Chapter 4 MS ACCESS DATABASE.
Working with Data in Windows
5.2 Microsoft Excel.
3 Macro Storage.
Chapter 1: Introduction to SAS
Instructor: Raul Cruz-Cano
Lesson 9 Windows Management
Electronics II Physics 3620 / 6620
New Perspectives on Windows XP
3.1 Basic Concept of Directory and Sub-directory
Presentation transcript:

SAS® Explorer Use and Customization Richard A. DeVenezia

Dad 1. More caffenie 2. Work, then relax 3. Take 15 min nap every hour 4. Have fruit for snack instead of junk food 5. Splash water on face instead of rubbing your eyes 6. Soothing music while working A candle might help

Explorer Motif –Left hand side –Right hand side Windows, SAS, File Managers, Database Explorers, IDEs

SAS Environment Libraries File Shortcuts Favorite Folders My Computer Results Metadata

Active Components Customize First level nodes Registry CORE\EXPLORER\INIT

Viewing Modes Explorer –Tree and List Contents Only –Just List

View Mode With icons –Large or Small –Left to right List –Small icons –Newspaper style Details –My favorite

Sorting Contents Details mode –click column header –no direction indicator like Windows Explorer View menu –Sort choice

Libraries node Contains a list of Library Items –One item per assigned LIBREF –Aka the list of LIBNAMES

Library node Contains a list of Member Items Tables Views Catalogs MDDBs

Catalog member node Contains a list of Catalog Entries Log, Output, Source Screen, Form Frame, SCL, Class More than 60 catalog entry types!

Context Menu Every item listed in a “Contents of” Window has a right click popmenu Specific menu shown depends on item type –“Context” menu

Context Menus SAS Supplied Menu Items –Numerous –Sensible –Neat (View in Excel) Items also known as –Choices –Actions

Create a Menu Choice Menu: Tools / Options / Explorer... Command: EXPOPTS

Choices of an Item Know an Actions Action Command –Meat of an action

Item name parts Library Member –LIBNAME, MEMNAME Catalog Entry –LIBNAME, MEMNAME, OBJNAME, OBJTYPE

Item type Explorer knows the type Library Members –TABLE, VIEW, MDDB, CATALOG –not surfaced to Action Command Catalog Entries –FRAME, SCL, OUTPUT, SLIST,... –At least 60 entry types –surfaced to Action Command

Action Command SAS Command –{Command} {Arguments} Arguments will want to deliver context to the command –The item name parts

Delivering Item Name Parts Library Member –%8b is replaced with LIBNAME –%32b is MEMNAME Catalog Entry –%8b is LIBNAME –%32b is MEMNAME –%32b is OBJNAME –%8b is OBJTYPE

Simple Action Command Library Member –DIR %8b Opens a DIRECTORY window, of which the member is in. –FSVIEW %8b.%32; FORMULA Opens the member in FSVIEW and loads the default formula from SASUSER.PROFILE.

Action Commands and Macro % is reserved for %8b and %32b % passes % to command tokenization Catalog Entry –%put picked:%8b.%32b.%32b.%8b Writes the catalog entry information to the SAS Log

Submitting Code GSUBMIT command Library Member –gsubmit ‘data _null_; put ”You picked: %8b.%32b.%32b.%8b”;run;’ Runs a DATA step that writes the library members name information to the SAS Log

Running SAS/AF programs AFA command Library Member –afa c=sasuser.myhandlers.foo.scl entry=%8b.%32b Runs a SAS/AF SCL program that is passed the name information of the library member right clicked on.

SAS/AF arguments Passed in the local environment list declare char NAME='entry'; declare char VALUE = getNitemC ( getNitemL ( envlist('L'), '_CMDLIST_' ), NAME, 1, 1, '‘ ); put NAME= VALUE=;

Running SAS/AF programs Some interesting SAS actions are implemented in SAS/AF Copy_to_clipboardCopy a Table to the Clipboard as HTML Excel_table_openOpen a SAS Table in Excel Save_as_htmlSave a SAS Table as HTML Open_html_entryOpen an HTML entry with WBROWSE Open_sas_fileOpen a SAS7BDAT or SAS7BCAT file Open_fileExample Action for processing a file Open_catalog_entryExample Action for Processing a Catalog Entry

Autocall Macros Centralize the Action Command coding task Proper place for lengthy amounts of code –Do not want to clutter SAS registry with lots of code that is hard for a coder to reach Deployable to other users

Programmatic Customization Avoid tedious mousing around Insert Action Commands directly into registry keys CORE\EXPLORER\MENUS\MEMBERS CORE\EXPLORER\MENUS\ENTRIES CORE\EXPLORER\MENUS\FILES CORE\EXPLORER\MENUS\METAEXPLORE\TypeFilters

Programmatic Customization Proc REGISTRY c:\temp\foo-actions.txt [CORE\EXPLORER\MENUS\MEMBERS\TABLE] "Foo 1"="VT %8b.%32b” "&Foo 2"="VT %8b.%32b” "10;&Foo 3"="VT %8b.%32b” "09;&Foo 4;100"="VT %8b.%32b” SAS Session Proc REGISTRY IMPORT="c:\temp\foo-actions.txt"; run;

Where’s my SAS Actions? In the SASHELP Registry! Copy them into your SASUSER registry Proc REGISTRY USESASHELP STARTAT='CORE\EXPLORER\MENUS\MEMBERS\TABLE’ EXPORT='c:\temp\factory-table-actions.sasreg'; Proc REGISTRY IMPORT='c:\temp\factory-table-actions.sasreg';

I want to go home Remove customizations by deleting entries in the SASUSER registry Proc REGISTRY STARTAT='CORE\EXPLORER\MENUS\MEMBERS\TABLE’ EXPORT='c:\temp\sasuser-table-actions.sasreg'; Proc REGISTRY UNINSTALL='c:\temp\sasuser-table-actions.sasreg'; If a SASUSER branch is empty then SAS Explorer will use the SASHELP branch (home)

Automacros II %macro action_members_table_A1 (lib,mem,pos3,pos4) / des='FS Browse'; /* browse a table using the likenamed screen stored * in sasuser.profile */ fsbrowse &lib..&mem sasuser.profile&lib..&mem..screen; %mend; Programmatically realizable

Automacros II – Realizable? Read Metadata –DICTIONARY.CATALOGS –NAME is action_{branch}_{type} –DES is {text} Write import file and import [CORE\EXPLORER\MENUS\{branch}\{type}] “{DES}”=“%{NAME}(%8b,%32b,%32b,%8b)”

Conclusion SAS Explorer is –essential –full featured –extensible Download a wide variety of actions from /actions/main.phphttp:// /actions/main.php