Download presentation
Published byRobin Sharick Modified over 9 years ago
1
User Interfaces Made Easy With SAS Stored Processes
Tim Broeckert Systems Seminar Consultants Madison, WI User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
2
What is a SAS Stored Process?
SAS Program SAS Metadata Stored Process (called by web/client applications) This slide could be replaced w/ a simple picture like SAS PGM + SAS Metadata = Stored Process called by web/client applications User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
3
What is a SAS Stored Process?
What does the metadata define? How the SAS program will be executed How inputs/outputs will be handled Basic layout for the user interface This slide could be replaced w/ a simple picture like SAS PGM + SAS Metadata = Stored Process called by web/client applications User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
4
Defining a SAS Stored Process
Define Metadata in SAS Management Console (SMC) or Enterprise Guide (EG) Requirements - SAS Metadata server/repository - SAS Application Server(s) User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
5
Execution Metadata User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
6
Execution Metadata Cont.
App Server Server Type - Stored Process Server Workspace Server Source Code Location Result Capabilities - Stream - Package User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
7
Parameter Metadata User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
8
Parameter Prompts Associated with program macro variables
Varying data types Prompt Method - User provided Static/dynamic lists Number of values to be selected Variable constraints Default value Additional options which don’t fit on the slide: Hidden, required, read-only Possibly split this into multiple slides as there is a lot of info here User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
9
Parameter Groups All prompts are assigned to a group Standard Group
Transparent Group Selection Group - Static List Values Sub prompt members associated to each value Note: Both groups & prompts can be saved & shared among stored processes for ease of maintenance User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
10
STP Example Interface Example of Standard & Selection Groups, Date Inputs, Dynamic Dropdowns, Reset Defaults, Req’d checkbox User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
11
General Prompt Metadata
User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
12
Prompt Details User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
13
Multiple Value Handling
User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
14
Date Range Prompts User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
15
Date Value Handling User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
16
Dynamic Dropdowns User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
17
Dynamic Dropdown Dependencies
User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
18
Selection Groups If self_register = Y then set registrant_vars; if N then vars will be passed in User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
19
Managing Data Quality User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
20
Output Parameters Pass macro variables/values back to client
Output parameters are used mainly with SAS BI Web Services or with stored processes that are called using the Stored Process Service API. User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
21
Data Sources & Targets specifies an optional list of data sources and data targets for the stored process. Streams can be used to send data that is too large to be passed in parameters between the client and the executing stored process. Definitions for data sources and data targets can also include an XML schema specification. User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
22
Source Metadata Example
Allow the client application to pass in data - Define the content type & fileref in metadata - Refer to fileref and &_webin_sasname in program Fileref is defined in the metadata; SAS program contains: libname fileref XML; Data _null_; set fileref.&_webin_sasname; User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
23
Metadata Security Stored Processes reside in a SAS Folder defined in the metadata ReadMetadata provides access to run stored processes - Users must also have appropriate metadata permissions to data accessed by the stored process User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
24
SAS Program Considerations
% GLOBAL <input parms>; *ProcessBody; Set input parms %STPBEGIN;/%STPEND; Standaradized ODS handling Input data validation User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
25
Stored Process Interfaces
Enterprise Guide MS Office (via SAS add-in) Information Delivery Portal Web Report Studio Custom Built Web Applications User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
26
Stored Process Pro’s & Con’s
Provides a universal user interface which allows users to execute a tightly managed process UI is easily created/maintained Only minor program changes req’d UI functionality has limitations Requires BI infrastructure User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
27
Additional Resources Developer’s Guides 9.1.3
9.2 9.3 User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc.
28
SAS® Training, Consulting, & Support
Contact Information SAS® Training, Consulting, & Support (608) 2997 Yarmouth Greenway Drive Madison, WI User Interfaces Made Easy with SAS Stored Processes | Systems Seminar Consultants, Inc. 28
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.