Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2010, SAS Institute Inc. All rights reserved. SAS ® Using the SAS Grid.

Similar presentations


Presentation on theme: "Copyright © 2010, SAS Institute Inc. All rights reserved. SAS ® Using the SAS Grid."— Presentation transcript:

1 Copyright © 2010, SAS Institute Inc. All rights reserved. SAS ® Using the SAS Grid

2 22 What is SAS Grid Computing Capabilities of SAS Grid Computing Exploring SAS Stored Processes SAS ® Using the SAS Grid

3 33 What is SAS Grid Computing Capabilities of SAS Grid Computing Exploring SAS Stored Processes SAS ® Using the SAS Grid

4 4 SAS BI Platform Reporting Data Management Analytics Clients and Solutions Enterprise Guide Enterprise Portals Web Based Application Ad-hoc Reports Excel PowerPointOutlookMobile Import and transform data from any source Create reusable data sets Manage a self-serve data environment Access all analytical functions used today Document analytic process/workflow Automatically generate reports/memos Easily explore patterns in the data Use patterns to drive new types of analysis Easily distribute results in a variety of formats

5 55 SAS ® Using the SAS Grid What is SAS Grid Computing Capabilities of SAS Grid Computing Exploring SAS Stored Processes

6 6 SAS Grid Environment 6 SAS Grid Manager …

7 7 Multi-User Workload Balancing delivers the following capabilities: The workload submitted by multiple users is spread out among the available machines. Balancing ensures that no machine becomes overloaded. The overall throughput of jobs is increased. SAS Grid Manager – Multi-User Workload Balancing

8 8 SAS Grid Manager Features Multi-User Workload Balancing...

9 9 Parallelized Workload Balancing can be described as the following: Taking a SAS program with many independent steps and dividing it into sections and adding code to enable the independent sections to run in parallel on multiple servers Enabling all servers to operate at optimal rates rather than having servers overloaded or underutilized SAS Grid Manager – Parallelized Workload Balancing

10 10 Serial versus Parallelized SAS Program 10 data MyData.us_txn; set CorpData.global_txn; run; proc freq data=ostar.us_emps; tables department*job_title gender / crosslist nocum norow nocol nopercent; title 'Counts Employees by Department'; run; proc means data=ostar.eur_emps mean min; var salary; class hiredate; format hiredate year4.; title 'Salaries of European Employees by Year Hired'; run; proc means data=ostar.us_emps mean min; var salary; class hiredate; format hiredate year4.; title 'Salaries of US Employees by Year Hired'; run; proc freq data=ostar.us_emps; tables department*job_title gender / crosslist nocum norow nocol nopercent; title 'Counts Employees by Department'; run; proc freq data=ostar.us_emps; tables department*job_title gender / crosslist nocum norow nocol nopercent; title 'Counts Employees by Department'; run; Elapsed Time: YY minutes Parallel Elapsed Time: X hours Serial

11 11 SAS Grid Manager Features Multi-User Workload Balancing Parallelized Workload Balancing C01- 11

12 12 Distributed Enterprise Scheduling has the following features: It enables jobs to be deployed for scheduling. It enables jobs to start running when triggered by an event (time or file event). It enables scheduled jobs to be released to the grid. SAS Grid Manager – Distributed Enterprise Scheduling

13 13 SAS Grid Manager Features Multi-User Workload Balancing Parallelized Workload Balancing Distributed Enterprise Scheduling C01- 13...

14 14 SAS Grid Manager Features Multi-User Workload Balancing Parallelized Workload Balancing Distributed Enterprise Scheduling High Availability Scalability C01- 14

15 15 High Availability can be defined as follows: It ensures that SAS and other services are available. It automatically restarts or “fails-over” SAS and other services. The goal is to provide business continuity for the SAS environment. SAS Grid Manager – High Availability

16 16 SAS Grid Manager Features Multi-User Workload Balancing Parallelized Workload Balancing Distributed Enterprise Scheduling High Availability Scalability C01- 16...

17 17 SAS Grid Manager Features Multi-User Workload Balancing Parallelized Workload Balancing Distributed Enterprise Scheduling High Availability Scalability C01- 17...

18 18 SAS Grid Manager Features Multi-User Workload Balancing Parallelized Workload Balancing Distributed Enterprise Scheduling High Availability Scalability C01- 18

19 19 SAS Grid Manager Features Multi-User Workload Balancing Parallelized Workload Balancing Distributed Enterprise Scheduling High Availability Scalability C01- 19...

20 20 SAS Grid Manager Features Multi-User Workload Balancing Parallelized Workload Balancing Distributed Enterprise Scheduling High Availability Scalability C01- 20...

21 21 SAS Grid Manager Features Multi-User Workload Balancing Parallelized Workload Balancing Distributed Enterprise Scheduling High Availability Scalability C01- 21

22 22 Copyright © 2012, SAS Institute Inc. All rights reserved. Running Parallel Sessions in the Grid Using the SAS language statements, you can run sections of your SAS program in multiple grid sessions running at the same time or in parallel. How do you do it? Using Enterprise Guide –Analyze Program Task 22

23 23 Copyright © 2012, SAS Institute Inc. All rights reserved. Using the Analyze Program Task

24 24 SAS ® Using the SAS Grid What is SAS Grid Computing Capabilities of SAS Grid Computing Exploring SAS Stored Processes

25 25 Benefits of Stored Processes SAS Stored Processes provide many benefits. Stored processes can prompt users for input through parameters. This enables reports that are not static and that can be easily run with different values. Every application that runs a stored process always receives the latest version of the results. Stored process programs use security to ensure that each user has access only to the information that he or she is allowed to see. In many cases, the stored process program code can be created using the point-and-click functionality of SAS Enterprise Guide.

26 26 Copyright © 2012, SAS Institute Inc. All rights reserved. What Is a SAS Stored Process? A SAS Stored Process is a special type of SAS program. Stored processes enable you to run a SAS program and view the results in many different types of SAS applications. Stored processes consist of SAS program code and a metadata definition that describes how the stored process should execute.

27 27 Stored Processes and Enterprise Guide When using SAS Enterprise Guide, you can create the stored process program and register the associated stored process metadata. += A stored process can be invoked from various applications. Using SAS Enterprise Guide, you create a project that performs both these actions. Create the stored process program. Register the stored process metadata.

28 28 Copyright © 2012, SAS Institute Inc. All rights reserved. Creating a Stored Process from a Process Flow Stored processes can be created from a single task or all of the tasks in a process flow. For a single task, right-click the task and select Create Stored Process. For all of the tasks, right-click in the background of the Process Flow window and select Create Stored Process.

29 29 Copyright © 2012, SAS Institute Inc. All rights reserved. Create New Stored Process Wizard Steps Whether you create a stored process from a single task or all of the tasks in a process flow, the Create New Stored Process Wizard guides you through the process. This wizard has seven steps as outlined below: 1.name and description 2.SAS code, code options, or both 3.execution options 4.library references (librefs) 5.prompts 6.data sources and targets 7.summary

30 30 Copyright © 2012, SAS Institute Inc. All rights reserved. Create New Stored Process Wizard: Step 1 In Step 1 of the Create New Stored Process Wizard, you provide the name and other descriptive information. At any point in the wizard, you can preview the code that is used for the stored process by clicking (the Code Preview icon).

31 31 Copyright © 2012, SAS Institute Inc. All rights reserved. Create New Stored Process Wizard: Step 2 When you create a stored process from all of the tasks in a project, the SAS code from all of the tasks is displayed in Step 2. By default, code is added for the stored process macros, global macro variables, and LIBNAME references.

32 32 Copyright © 2012, SAS Institute Inc. All rights reserved. Create New Stored Process Wizard: Step 3 In Step 3, you specify the execution options. By default, the server type is set at Default server, indicating that the application selects the server to run on. You can choose to store the source code in the metadata or in a source code repository.

33 33 Copyright © 2012, SAS Institute Inc. All rights reserved. Create New Stored Process Wizard: Step 4 Step 4 enables you to modify the LIBNAME statement for the selected library. The default is to include all libraries referenced by tasks that are used to create the stored process. 33

34 34 Copyright © 2012, SAS Institute Inc. All rights reserved. Create New Stored Process Wizard: Step 5 Step 5 displays the input prompts for the stored process. You can organize these prompts into groups. 34

35 35 Copyright © 2012, SAS Institute Inc. All rights reserved. Create New Stored Process Wizard: Step 6 In Step 6, you list any data sources that you want to use as input when the stored process runs. 35

36 36 Copyright © 2012, SAS Institute Inc. All rights reserved. Create New Stored Process Wizard: Step 7 The final step is where you review all the settings before creating the stored process. You can show the full SAS code and control how information is shown by clicking one of these icons: page mode two-page mode scroll mode 36

37 37 Copyright © 2012, SAS Institute Inc. All rights reserved. Running a Stored Process from SAS Enterprise Guide The SAS Folders choice in the Resources pane provides a convenient way to navigate through SAS Folders and select a stored process. You can also select File  Open  Stored Process to add a stored process to a project. continued...

38 38 Copyright © 2012, SAS Institute Inc. All rights reserved. What Are Prompts? Prompts enable you to request input from the user when code is run. Without prompts, the code that you run is static although the data might change. You can define prompts that require the user to select or enter one or more values when a task, query, program, or stored process is run.

39 Demo Create a simple SAS Stored Processes 39

40 End User Training Using SAS Client Applications with SAS Grid Manager Ottawa Training Dates: French – 4 January, 2016 English – 15 January, 2016 https://support.sas.com/edu/schedules.html?ctry=us&id=2172 Creating Stored Processes Using SAS 1: Essentials Ottawa Training Dates: French – 25 April, 2016 English – 26 April, 2016 https://support.sas.com/edu/schedules.html?id=1817&ctry=CA#s1=1 SAS ® Using the SAS Grid

41 Have follow-up questions? Please contact: Carmine Verrelli Technical Training Specialist Carmine.Verrelli@sas.com (613)-755-2316


Download ppt "Copyright © 2010, SAS Institute Inc. All rights reserved. SAS ® Using the SAS Grid."

Similar presentations


Ads by Google