Web Development With SAS by Example - Pratter_ Frederick.pdf

(9772 KB) Pobierz
Web Development with SAS by Example
528227215.003.png
Web Development
with SAS ®
by Example
Second Edition
Frederick E. Pratter
528227215.004.png 528227215.005.png 528227215.006.png
The correct bibliographic citation for this manual is as follows: Pratter, Frederick E. 2006. Web Development with
SAS ® by Example, Second Edition . Cary, NC: SAS Institute Inc.
Web Development with SAS ® by Example, Second Edition
Copyright © 2006, SAS Institute Inc., Cary, NC, USA
ISBN-13: 978-1-59047-501-0
ISBN-10: 1-59047-501-1
All rights reserved. Produced in the United States of America.
For a hard-copy book : No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission
of the publisher, SAS Institute Inc.
For a Web download or e-book: Your use of this publication shall be governed by the terms established by the
vendor at the time you acquire this publication.
U.S. Government Restricted Rights Notice: Use, duplication, or disclosure of this software and related
documentation by the U.S. government is subject to the Agreement with SAS Institute and the restrictions set forth in
FAR 52.227-19, Commercial Computer Software-Restricted Rights (June 1987).
SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513.
1st printing, August 2006
SAS Publishing provides a complete selection of books and electronic products to help customers use SAS software
to its fullest potential. For more information about our e-books, e-learning products, CDs, and hard-copy books, visit
the SAS Publishing Web site at support.sas.com/pubs or call 1-800-727-3228.
SAS ® and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS
Institute Inc. in the USA and other countries. DataFlux and all other DataFlux Corporation product or service names
are registered trademarks or trademarks of, or licensed to, DataFlux Corporation in the USA and other countries.
® indicates USA registration.
Other brand and product names are registered trademarks or trademarks of their respective companies.
Contents
Preface ix
Acknowledgments xiii
Part 1 Getting Started with Web
Programming
Chapter 1 SAS and the Internet 3
Introduction 3
TCP/IP and the Internet 5
Markup Languages 7
Deploying Content on the Web Server 8
Using the Apache Web Server on Windows 10
Using the Apache Web Server on UNIX/Linux 11
Using Microsoft Internet Information Server 12
References 12
Chapter 2 Introduction to HTML 15
Hypertext Markup Language 15
HTML vs. XHTML 19
Formatting HTML Using Style Sheets 22
Including User-supplied Information with Forms 25
References 29
Chapter 3 Creating Static HTML Output 31
Introduction 31
Creating Static HTML Output with SAS Tools 34
Displaying Preformatted Text 34
DATA Step Programming for Web Output 36
Macros for HTML Formatting 38
Using the Output Delivery System to Create HTML 48
The ODS HTML Statement in SAS ® 9 53
Creating Multiple Pages with a Single Program 54
Creating a Table of Contents for Procedure Output 57
Listing the Contents of a Data Set 59
Using Styles to Format ODS Output 60
Using the ODS Markup Statement to Create XHTML 64
PROC TEMPLATE: Not Just for Geeks Anymore 67
References 70
528227215.001.png
iv Contents
Part 2 Access to SAS with SAS/IntrNet
Software
Chapter 4 Remote Access to SAS 75
Client/Server Computing 75
Remote Data Services with SAS/SHARE 77
Editing the TCP Services File 77
Configuring TCP Security 78
Starting and Stopping the SAS/SHARE Server 79
Managing SAS/SHARE as a Windows Service 81
SAS AppDev Studio Service Manager 83
Managing Servers with SAS Management Console 83
Access to Remote Library Services 84
Remote SQL Pass-Through (RSPT) 85
Remote Compute Services with SAS/CONNECT 86
Distributed Computing with the Integrated Object Model 89
References 90
Chapter 5 Web Applications Programming 91
Server-Side or Client-Side? 91
The Common Gateway Interface 92
A CGI Example 94
Passing Parameter Values to Web Applications 96
References 100
Chapter 6 SAS/IntrNet: the Application Dispatcher 101
Overview 101
Installing the Application Broker 102
Creating an Application Dispatcher Service 106
Defining an Application Dispatcher Service for UNIX or
Linux 106
Defining an Application Dispatcher Service for
Windows 108
Configuring the Default Application Service 109
Starting and Stopping the Application Server 110
Testing the Application Service 112
Defining Application Server Libraries 117
Debugging SAS Output 119
Generating Dynamic Output with the Output Delivery System 122
References 125
528227215.002.png
Zgłoś jeśli naruszono regulamin