ebook img

Getting Started with SAS/AF(R) and Frames PDF

77 Pages·2006·7.902 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Getting Started with SAS/AF(R) and Frames

Getting Started with SAS/AF and Frames ® Preliminary Documentation The correct bibliographiccitation forthis manualis asfollows: SAS InstituteInc. 2006. Getting Startedwith SAS/AF®and Frames. Cary,NC: SASInstitute Inc. GettingStarted withSAS/AF®and Frames Copyright ©2006,SAS Institute Inc.,Cary, NC,USA ISBN-13: 978–1-59047-844-8 ISBN-10: 1-59047-844-4 Allrights reserved. Producedinthe UnitedStates ofAmerica. For ahard-copybook: Nopart of this publicationmaybe reproduced, stored ina retrieval system, or transmitted,inanyformor byanymeans, electronic, mechanical, photocopying, orotherwise,without theprior writtenpermissionof thepublisher, SAS Institute Inc. For aWeb download ore-book: Your useofthis publicationshall be governed bythe terms establishedbythe vendor atthe time youacquirethis publication. U.S.Government RestrictedRights Notice. Use,duplication,or disclosureof this software andrelated documentation bythe U.S.governmentis subjectto theAgreement with SASInstitute andthe restrictions setforthinFAR 52.227–19CommercialComputer Software-RestrictedRights (June1987). SAS InstituteInc., SAS CampusDrive,Cary, NorthCarolina 27513. 1stprinting, June2006 SAS Publishingprovidesa completeselectionofbooks andelectronicproducts to help customersuse SASsoftware toitsfullest potential. For moreinformation aboutour e-books,e-learning products,CDs,andhard-copybooks,visit theSASPublishingWebsite at support.sas.com/pubsor call1-800-727-3228. SAS®and allother SASInstituteInc. productorservicenamesareregistered trademarks or trademarksof SASInstitute Inc. intheUSA andother countries. ®indicates USA registration. Otherbrand and productnamesare registered trademarksor trademarksof their respective companies. Contents P A R T 1 The SAS/AF Development Environment 1 Chapter 1 (cid:0) Introduction to SAS/AF Software 3 Overview of SAS/AF Software 3 Purpose of This Document 3 Getting More Information 4 Software Requirements 4 Chapter 2 (cid:0) The Building Blocks of Frame Applications 5 Components, Controls, and Models 5 The SAS/AF Development Environment 6 A Simple Methodology for Frame Development 9 Using Models 9 Chapter 3 (cid:0) Adding SCL Programs to Frames 11 SAS Component Language (SCL) 11 The Fundamentals of Frame SCL 13 Dot Notation and SCL 14 Controlling the Execution of SCL Programs 16 Calling Other Frames 16 Saving Frame SCL Programs 17 Compiling Applications 17 Testing Applications 18 Chapter 4 (cid:0) Build a Frame Application 19 Overview of the Frame Application 19 Build the Display_data Frame 20 Build the Create_report Frame 29 Build the Start_menu Frame 36 P A R T 2 Appendixes 41 Appendix 1 (cid:0) Defining Attachments 43 Understanding Attachments 43 Define Attachments That Resize the Table Viewer 48 Test the Table Viewer Attachments 50 Define Attachments That Move the Close Window Button 51 Appendix 2 (cid:0) Deploying Applications 55 Launching an Application 55 Appendix 3 (cid:0) Defining a Subclass 59 iv Subclassing 59 Create a Close Window Button Subclass 59 Overriding Attributes 60 Add the Close Window Button Class to the Components Window 61 Test the New Close Window Button 62 Glossary 63 Index 67 1 1 P A R T The SAS/AF Development Environment Chapter 1. . . . . . . . . .Introduction to SAS/AF Software 3 Chapter 2. . . . . . . . . .The Building Blocks of Frame Applications 5 Chapter 3. . . . . . . . . .Adding SCL Programs to Frames 11 Chapter 4. . . . . . . . . .Build a Frame Application 19 2 3 C H A P T E R 1 Introduction to SAS/AF Software OverviewofSAS/AFSoftware 3 PurposeofThisDocument 3 GettingMoreInformation 4 Help 4 DocumentationAvailable ontheWeb 4 SoftwareRequirements 4 MainframeSupport 4 Overview of SAS/AF Software SAS/AF software is a set of tools for developing applications. Central to the SAS/AF development environment is the frame. You can think of a frame as an application window that contains the interface (the fields and buttons) of your application. With SAS/AF frame application development, you can build much of your application visually, using drag-and-drop components. And because SAS/AF applications are stored in SAS catalogs, they are portable to all SAS software platforms. Purpose of This Document This document is an introduction to the SAS/AF development environment. It guides you through the basic skills that you need to build a simple frame application. It also gives you a foundation with which you can transition to the larger reference manuals that fully cover SAS/AF software. Although this document is intended for new users of SAS/AF, you should be familiar with basic SAS concepts such as libraries, catalogs, and catalog entries. You do not need object-oriented programming experience to benefit from this document, but familiarity with object-oriented concepts will certainly help. Although specific to SAS/AF in SAS®9, the overall processes that are presented in this document also apply to versions of SAS/AF software starting with SAS 8.1. 4 GettingMoreInformation (cid:0) Chapter1 Getting More Information Help Help is always available when you are using the SAS/AF development environment. To access help, select Help (cid:0)SAS Help and Documentation, navigate to SAS Products and then navigate to SAS/AF. You can also get help on most windows and dialog boxes inside SAS/AF by pressing the F1 key when the window or dialog box is the active window, or by selecting Help (cid:0) Using This Window. To access Help on a component in the Components window, right-click on the component, and then select Help on Class. Documentation Available on the Web SAS documentation, available in HTML or PDF, is available on the Web at http://support.sas.com/documentation/onlinedoc/. The following books offer more information about developing applications using SAS/AF software: (cid:1) SAS Guide to Applications Development, Second Edition (cid:1) SAS Component Language 9.1: Reference (cid:1) SAS/AF 9.1 Procedure Guide The text of all three of these books is also available in the SAS/AF help. Software Requirements To build the frame applications in this document, you must have SAS/AF software installed, and you must have a monitor that is capable of displaying graphics. To run the frame applications in this document, you must have Base SAS software. Mainframe Support SAS/AF does not support frame application development on a mainframe. However, you can build a frame application on another platform and then port that application to a mainframe platform (see “Native Controls” on page 5). 5 C H A P T E R 2 The Building Blocks of Frame Applications Components,Controls,andModels 5 NativeControls 5 TheSAS/AFDevelopmentEnvironment 6 TheFrame 6 TheComponentsWindow 7 ThePropertiesWindow 7 TheSourceWindow 8 ASimpleMethodologyforFrameDevelopment 9 UsingModels 9 Components, Controls, and Models Components are pieces of software that you can use to build applications. SAS/AF provides severalcomponents that enable you to build graphical user interfaces and then link those interfaces to data. There are two basic types of components: controls and models. Controls constitute the graphical user interface, and include interface elements that you have seen in Web forms like Check Boxes, List Boxes, and Entry Fields. There are also controls that are specific to SAS/AF such as the Table Viewer (which displays SAS table data). Models are another type of component. In contrast to the controls that are displayed to the user in the interface, models work behind the scenes to distribute data to controls. For example, to get a List Box to display a list of SAS libraries, you would attach a Library List model to the List Box. Controls are sometimes called visual components, and models are sometimes called non-visual components. Controls and models are also generically called objects, especially in the context of object-oriented programming. Native Controls The controls that are supplied by SAS always appear as native controls on a platform, even if you ported your application to that platform. This means that if you wrote an application on Solaris, and then ported it to Windows XP, the application would look exactly like other Windows XP applications. However, if you run a graphical user interface application on a character-based display (usually on mainframes), the controls (for example, the entry fields and list boxes) are represented as characters, which means the controls will look different from the examples in this document.

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.