ANJ Solutions SAS programmer? SAS Vis isual Analyt ytics for SAS - - PowerPoint PPT Presentation

anj solutions
SMART_READER_LITE
LIVE PREVIEW

ANJ Solutions SAS programmer? SAS Vis isual Analyt ytics for SAS - - PowerPoint PPT Presentation

SAS Visual Analytics: Andrew Howell Whats in it for the ANJ Solutions SAS programmer? SAS Vis isual Analyt ytics for SAS Programmers Loading data into Visual Analytics Visual Tools Programming & traditional client tools


slide-1
SLIDE 1

Andrew Howell ANJ Solutions SAS Visual Analytics: What’s in it for the SAS programmer?

slide-2
SLIDE 2

SAS Vis isual Analyt ytics for SAS Programmers

  • Loading data into Visual Analytics
  • Visual Tools
  • Programming & traditional client tools
  • SAS EG, SAS DI, SAS code
  • Running SAS code in Visual Analytics reports
  • Create Stored Process in Enterprise Guide
  • Add Stored Process in a Visual Analytics report
  • Note:
  • This presentation is not VA version-specific
  • All screenshots are Visual Analytics v7.3
slide-3
SLIDE 3

Visual Analyt ytics Data Requirements

  • Data needs be to either:
  • Always available
  • Readily available
  • Different methods for:
  • Visual Analytics users
  • Analysts
  • Report Builders
  • Admins & Data Managers

VA User Data Manager Manual:

  • VA Explorer
  • VA Report Designer

Manual:

  • VA Data Builder

SAS clients:

  • Enterprise Guide
  • Data Integration Studio

SAS clients:

  • Data Integration Studio
  • Management Console

VA Autoload VA Autoload VA Reload-On-Start

slide-4
SLIDE 4

Loading data into Visual Analyt ytics

  • Two LASR servers are installed by default
  • LASR Analytics Server (Managed)
  • Public LASR Analytics Server (Flexible)
  • Each server has one library

(plus other associated libraries)

  • LASR Library (Managed) – may also have associated

Hadoop library for co-located data.

  • Public LASR Library (Flexible) – may also have

associated AutoLoad library

slide-5
SLIDE 5

Loading data into Visual Analyt ytics

  • In both cases, users can select:
  • Existing LASR tables, or
  • Self-service options:
  • Upload local files
  • Upload server-based files
slide-6
SLIDE 6

Usi sing code to lo load ad data in into Vis isual l Analy lytic ics

  • SAS Enterprise Guide task
  • SAS Data Integration Studio transformation
  • Both simply generate SAS code
  • 1. Load data into LASR library
  • 2. Register LASR table in metadata
slide-7
SLIDE 7

Loading data into Visual Analytics

slide-8
SLIDE 8

Vis isual Analyt ytics – AutoLoad lib library

  • Populates a Public Library from a designated

“drop folder” in disk storage

  • Default schedule 15 mins (once activated)
  • Flat files (*.csv, *.xlsx, etc) are imported, then

defined & loaded into memory.

  • SAS tables are defined as LASR tables and

loaded into memory

  • Other folders for appending & unloading data
  • SAS library defined in metadata
slide-9
SLIDE 9

Running SAS code in Visual Analyt ytics

  • Visual Analytics has a large collection
  • f web report objects
  • Bar charts,
  • Graphs
  • Geomap
  • etc.
  • When running VA report objects, these are run
  • n the LASR server - In memory, fast.
  • Other non-VA content
  • For example, a Radar chart?
  • Solution: Run SAS code in VA as a Stored Process.
slide-10
SLIDE 10

Run Stored Process

  • 3. Run Stored Process from Enterprise Guide
slide-11
SLIDE 11

Run Stored Process

  • 3. Run Stored Process from Office Add-In
slide-12
SLIDE 12

Run Stored Process

  • 3. Run Stored Process from Stored Process Web

Application

slide-13
SLIDE 13

Add St Stored Process to Visu isual l Analy lytic ics Report rt

  • Open an existing report
slide-14
SLIDE 14

Add St Stored Process to Visu isual l Analy lytic ics Report rt

  • Add Stored Process object to report
slide-15
SLIDE 15

Add St Stored Process to Visu isual l Analy lytic ics Report rt

  • Select alternate chart type
  • Stored Process prompt
slide-16
SLIDE 16

Summary ry

  • Loading data into LASR libraries
  • VA interface
  • SAS code
  • AutoLoad library
  • Running SAS code in VA reports
  • SAS Stored Process
  • Create in EG, deploy as Stored Process
  • Consider whether to run on Workspace Server or

Stored Process Server

slide-17
SLIDE 17

What is a SAS Stored Process?

  • “Metadata registered” SAS code
  • Waiting to run “on demand” by a SAS client
  • Metadata instructions
  • How to run the SAS code
  • Workspace Server, Stored Process Server
  • How to request prompt values from the SAS client
  • How to return results to the requesting SAS client
  • SAS Clients
  • Enterprise Guide
  • Office Add-In (Excel, Powerpoint, Outlook, etc)
  • Data Integration Studio
  • Visual Analytics
slide-18
SLIDE 18

Create a Stored Process in Enterprise Guide

  • 1. Create a regular EG task (or code node)
  • Can also create a Stored Process from an entire

process flow.

  • If requiring prompts, create these first at EG prompts
  • The prompt values will be passed to the SAS code as macro

values

  • 2. Register the task as a Stored Process
  • 3. Run the Stored Process from any SAS client.
slide-19
SLIDE 19

Create a Stored Process

  • 1. Create a regular EG task (or code node)
  • This example – Radar Chart (“wedge” chart type)
slide-20
SLIDE 20

Create Stored Process

  • Generated SAS code (simplified)
slide-21
SLIDE 21

Create Stored Process

  • Create Enterprise Guide prompt(s)
  • This example:
  • Different radar types
  • Prompt name “ChartType”

will populate a macro variable of the same name

slide-22
SLIDE 22

Create Stored Process

  • Modify code to use the prompt

values

  • Passed as macro variables
  • Throw in some “hand written”

SAS code

slide-23
SLIDE 23

Create Stored Process

  • Run EG task with prompt
slide-24
SLIDE 24

Create Stored Process

  • 2. Turn EG task into

a Stored Process

slide-25
SLIDE 25

Tips’n’Tricks

  • SAS Enterprise Guide Data Step Debugger
  • New with SAS EG v7.13
  • Similar to Display Manager debugger (only better!)
slide-26
SLIDE 26

Tips’n’Tricks

  • SAS Graphics Accelerator - Au

Audible ible graphs phs!! !!

  • SAS 9.4M4 (to create)
  • Google Chrome add-in (to view)
  • Download from Chrome web store