Download presentation
Presentation is loading. Please wait.
Published byShanon Alexis Gilbert Modified over 9 years ago
1
SAS/AF ® Application Development New Hampshire / Vermont SAS ® Users Group 18 June, 2004 Stephen Kearing, MS
2
Overall Aim An introduction to application development using SAS/AF ® V8.2
3
SAS/AF ® Software I. Overview II.Tiered application design III.Example
4
I. SAS/AF ® Overview Object Oriented Programming (OOP) History: first released in 1985 enhanced for V8 no new features in V9 SAS/AF license for development Base SAS required to run application
5
SAS/AF ® controls Longthorn, NESUG 16.
6
1. AF Frames: provide a Graphic User Interface (GUI) for application development 2.SAS Component Language (SCL): provides the code interface between GUI and SAS SAS/AF ® has 2 components
7
Frame Entries The user interface Stored in a Catalog Consists of Objects (the widgets) Attributes control behavior Event driven interface for SCL code
8
Frame Example
9
SCL Entries Compiled code Stored in a Catalog Interface between Frame and SAS code SCL runs behind the frame and on-top of SAS (SCL Data Vector)
10
SCL Entries, cont. Similar to SAS statements Include functions, expressions, lists End with a semicolon Can pass macro variables and submit existing SAS programs
11
SCL variables 1.Window Variables linked to Frame widget variable = widget name 2.Non-Window Variables declared in SCL program 3.System Variables _BLANK_ _VALUE_ _STATUS_
12
SCL Programs INIT: (Execute when the frame opens) SCL Statements; RETURN; MAIN: (User event driven code) SCL Statements; RETURN; TERM; (Execute when frame closes) SCL Statements; RETURN;
13
II. SAS/AF ® Software Tiered Application Design
14
3-tier Design Presentation Layer Business Logic Layer Data Layer User Interface Presentation Layer Business Logic Layer Data Layer Business rules and operations the application performs on its data Manages the data used by the application Rajandram ©, 2003.
15
3-tier design Presentation Layer Business Logic Layer Data Layer SCL Code SAS/AF Frame Window Rajandram ©, 2003.
16
2-tier vs. 3-tier 2-tier vs. 3-tier Data Separated Broader range of skill set Separated All Layers Development Environment had distinct GUI and Server Coding Coding Complexity was reduced Larger groups of developers Business Layer Data Presentation + Business PresentationBusiness Rajandram ©, 2003.
17
III. SAS/AF ® Software Application Example
18
References Vijay Rajandram, Design Considerations When Developing Applications Using SAS, © 2003 Amadeus Software Limited. Anders Longthorn, Creating Effective Graphical User Interfaces Using Version 8 SAS/AF ®, NESUG 16, PS001. J. Patrick McDonald, An Introduction to SAS Application Programming Using Frame and SCL Entries, © 1999 by SPIKEware, Inc. SAS Institute Inc., SAS Component Language: Reference, Version 8, Cary, NC: SAS Institute Inc., 1999. SAS/AF ® Software: Application Development I, Course Notes, Book code 57692, 12 October 2000
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.