EXPORTING SAS OUTPUT ONTO THE WORLD WIDE WEB

Similar documents
Paper An Automated Reporting Macro to Create Cell Index An Enhanced Revisit. Shi-Tao Yeh, GlaxoSmithKline, King of Prussia, PA

What you will learn 2. Converting to PDF Format 15 Converting to PS Format 16 Converting to HTML format 17 Saving and Updating documents 19

The SAS System Release 6.11 (TS051) ABI+ for Intel Architecture

Adobe EXAM - 9A Adobe InDesign CS5 ACE Exam. Buy Full Product.

Image coding and compression

Final Study Guide Arts & Communications

Malco Products, SBC. Corporate Trademark Guidelines EXTERNAL USE ONLY

Data Representation From 0s and 1s to images CPSC 101

Fonts, text, and colour on the web. Sourcing, resizing, and inserting web site images MGMT 230 LAB

Chapter 27 Saving and Printing Graphics

AVS4YOU Programs Help

Making an RTF file Out of a Text File, With SAS Paper CC13

Part III: Survey of Internet technologies

Managing SAS Output. Printing CHAPTER 5

A Generalized Macro-Based Data Reporting System to Produce Both HTML and Text Files

Technical Communication A Practical Approach: Chapter 11: Web Pages and

Arthur L. Carpenter California Occidental Consultants, Oceanside, California

Understanding file formats

Prentice Hall. Learning Microsoft PowerPoint , (Weixel et al.) Arkansas Multimedia Applications I - Curriculum Content Frameworks

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Publication Quality Graphics

ODS Meets SAS/IntrNet

1.6 Graphics Packages

Designing Maps to Maximize Impact

Logo & Icon. Fit Together Logo (color) Transome Logo (black and white) Quick Reference Print Specifications

Frequently Asked Questions about Text and Graphics

Chapter 5 Images. Presented by Thomas Powell. Slides adopted from HTML & XHTML: The Complete Reference, 4th Edition 2003 Thomas A.

HOW TO SAVE YOUR DESIGN FILES

Exporting Data in Version 3.6

Print Services User Guide

The SAS System Release 6.12 (TS070) AIX on IBM RISC System/6000

GENERATING SAS HARD COpy OUTPUT UNDER THE VMS N VAX ENVIRONMENT

Quick Results with the Output Delivery System

DjVu Technology Primer

Media Types. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents. Erik Wilde, UC Berkeley School of

Interactive Graphs from the SAS System

ClipArt and Image Files

HTML/XML. XHTML Authoring

Paper SIB-096. Richard A. DeVenezia, Independent Consultant, Remsen, NY

The SAS System Release 6.12 (TS051) Digital UNIX

Displaying Multiple Graphs to Quickly Assess Patient Data Trends

Making Presentations More Fun with DATA Step Graphics Interface (DSGI) Hui-Ping Chen, Eli Lilly and Company, Indianapolis, Indiana

Electronic Artwork Information for Authors Glossary and definitions

Web Design, 5 th Edition

ABSTRACT MORE THAN SYNTAX ORGANIZE YOUR WORK THE SAS ENTERPRISE GUIDE PROJECT. Paper 50-30

The SAS System Release 6.12 (TS065) SunOS 4 and Solaris 2

SAMPLE COURSE OUTLINE APPLIED INFORMATION TECHNOLOGY ATAR YEAR 11

KEYWORDS Metadata, macro language, CALL EXECUTE, %NRSTR, %TSLIT

Webbed Documents 1- Malcolm Graham and Andrew Surray. Abstract. The Problem and What We ve Already Tried

How to make a PDF from inside Acrobat

III-6Exporting Graphics (Windows)

SAS Macros for Grouping Count and Its Application to Enhance Your Reports

Presentation Quality Graphics with SAS/GRAPH

Lecture 19 Media Formats

A Revolution? Development of Dynamic And Hypertext Linked Reports With Internet Technologies and SAS System

3.01C Multimedia Elements and Guidelines Explore multimedia systems, elements and presentations.

SAS/GRAPH Introduction. Winfried Jakob, SAS Administrator Canadian Institute for Health Information

Lesson 7 Working with Graphics

BEST BUDDIES DESIGN GUIDELINES. Advertising & General Applications

Creating Web Pages. Getting Started

Lotus Instant Messaging and Web Conferencing (Sametime) Conversion Services Setup Guide

21st-Century Image and Data Exchange Standards

Graphics File Formats

ABSTRACT INTRODUCTION THE ODS TAGSET FACILITY

Exam : 9A Title : Adobe InDesign CS5 ACE Exam. Version : Demo

GUIDELINES FOR WEB SITE DESIGN CHAPTER 10

Working with Images and Multimedia

Representing Graphical Data

Common Technology Words and Definitions

Computers Are Your Future Prentice-Hall, Inc.

Presenta(on Tools Adobe Illustrator. November 6, 2017

Ramani A.V 2 HEAD OF CS & SRMV CAS, Coimbatore, Tamilnadu, India

Chapter 12 Creating Web Pages

Vector Bitmap EPS Encapsulated PostScript Vector EPS EPS CDR CMX CGM DXF WMF scalable objects independent of resolution (unlimited)

Autodesk Moldflow Adviser AMA Reports

A Dynamic Imagemap Generator Carol Martell, Highway Safety Research Center, Chapel Hill, NC

AIM Mail Centers Style Guide

IMMERSIVE TERMS AND DEFINITIONS

HTML for the SAS Programmer

Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA

SAS INSTITUTE INC. WORLD HEADQUARTERS SAS CAMPUS DRIVE CARY, NC TEL: FAX: U.S. SALES:

Elementary Computing CSC 100. M. Cheng, Computer Science

Website Planning Worksheets

color bit depth dithered

Presentation Goals. Now that You Have Version 8, What Do You Do? Top 8 List: Reason #8 Generation Data Sets. Top 8 List

ADOBE 9A Adobe Acrobat Professional 8.0 ACE.

Creating Web Pages with SeaMonkey Composer

General Methods to Use Special Characters Dennis Gianneschi, Amgen Inc., Thousand Oaks, CA

Overview 14 Table Definitions and Style Definitions 16 Output Objects and Output Destinations 18 ODS References and Resources 20

MULTIMEDIA DESIGNING AND AUTHORING

BOXOFT Image to PDF s allow you scans paper documents and automatically s them as PDF attachments using your existing software

Advanced High Graphics

SCHOOL OF DISTANCE EDUCATION UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION D M A INTRODUCTION TO MULTIMEDIA QUESTION BANK

Scientific Communication CITS4008. Designing and Writing Web Pages Rachel Cardell-Oliver 2013 Based on notes by Robyn Owens

Graphics in IT82. Representing Graphical Data. Graphics in IT82. Lectures Overview. Representing Graphical Data. Logical / Physical Representation

Your Own Web Page; Quick and Dirty Via Mashup Reminder: Next Quiz on 4/15

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

Tutorials by All Creative Designs. Picasa 5 (3.9) Photo Editing Tutorial. How to download, install and use the Picasa Photo Editor

ABSTRACT: INTRODUCTION: WEB CRAWLER OVERVIEW: METHOD 1: WEB CRAWLER IN SAS DATA STEP CODE. Paper CC-17

How to Create a PDF. Using Acrobat Distiller. Acrobat Distiller settings. Adobe Acrobat Professional 8.0 Guide

Transcription:

EXPORTING SAS OUTPUT ONTO THE WORLD WIDE WEB Shi-Tao Yeh, EDP Contract Services Andrew C. Yeh, Relyt Technologies Inc. ABSTRACT This paper presents a step by step demostration of exporting SAS list and graphics output onto the World Wide Web. The discussion includes : * Preparing SAS list and graphics output, * Inserting your SAS list into HTML code, * Providing a SAS macro code to generate HTML code automatically, * Converting SAS graphics format to GIF format, * Illustrating a point and click Web pages with SAS output. As a SAS programmer and consultant, publishing Web pages with SAS output presents a platform from which SAS output and data listing can be share with the rest of SAS user community, colleagues, business clients, and the general public. Web pages provide instant output to an unlimited internet audience. Companies can also utilize this tool as a single central electronic repository for all document management. To export SAS output to the World Wide Web, some background knowledge about the internet universe and HTML will be supplied. This paper is organized as a step by step demonstration for each of the subject discussed. SAMPLE DATA INPUT AND OUTPUT LIST The SAS products used in this paper are: SAS BASE and SAS/GRAPH with no limitation of operating systems. The following sample data are used as input to generate the SAS list output. INTRODUCTION The World Wild Web (WWW) is just a segment of the vast internet that can be accessed through any internet navigator. It is composed of interlinking Hyper Text Markup Language (HTML), documents that look similar to that of pages in a book. HTML provides the working grounds and underpinnings for information search and navigation. Taking advantage of technologies superior data transfer rates, it has gone beyond the static look of book pages. Its evolution has become the driving force behind the myriad of colorful interactive screens of text, graphics, and multimedia sprouting over the internet. Height Weight Sex 69.0 112.5 M 56.5 84.0 F 65.3 98.0 M 62.8 102.5 F 63.5 103.5 M 57.3 83.0 F 1

59.4 84.5 M and converted to a Word document. 62.5 111.0 F This Word document of SAS output is referred as LIST1.doc. 62.8 98.0 M 59.0 99.0 F 51.3 50.9 M 64.3 92.3 F 56.3 78.0 M 66.5 113.2 F 72.0 150.3 M HTML CODE In HTML BODY block, you can insert Preformatted Text Tag <PRE> </PRE>.The functionality of this Tag is to preserve spacing and layout of original text in monospaced font. The default background color is gray. When capturing the window we would suggest that one has the background white or very light and the foreground black or very dark. The contrast makes the image appear sharper on paper and on screen. The following HTML code illustrated here will produce the Web pages with SAS list output.(see Figure 1) 64.8 127.0 F 67.0 133.0 M <BODY BACKGROUND=whiteb.gif><PRE> insert LIST1.doc here Table 1. Sample Data </PRE></BODY> The SAS procedures PROC PRINT and PROC TABULATE are used to produce list output. These two output lists are transported to Microsoft Word for Windows for processing. The file under Word environment needs to change to the following setup parameters: SAS MACRO TO GENERATE SAS LIST PAGES Parameter Name Value The alternative approach is to create a SAS macro module which accepts user supplied SAS output file name with its subdirectory location, the module will generate a complete HTML code for the SAS output pages. Page Size Orientation Landscape Font Name Courier New Font Size 8 The arguments for this macro are: ifile: SAS output list name and its location, ofile: HTML code and where to store it. 2

%macro html1(ifile=, ofile= ); %LET H1 ='<HTML><HEAD><TITLE><H1>'; %LET H2 ='</H1></TITLE></HEAD> <BODY BACKGROUND=whiteb.gif><P5><B><PRE>'; %LET H3 ='</PRE></B></P5></BODY></HTML>'; SAS GRAPHICS OUTPUT Figure 2 shows a sample SAS graphics output. This graphics output entitled "Lorenz Curve and Concentration Ratio" was presented at SUGI 18 Posters section and published in SUGI 18 Proceedings [3]. data _null_; infile &ifile END=EOF; file " &ofile:; input; if _n_ = 1 then put @1 &H1 @24 &H2 ; if not EOF then do; put _infile_ ; end; else put @1 &H3 ; run; %mend; The following example shows how to invoke this macro. Figure 2 SAS Graphics Output %html1(ifile=c:\sugi22\list1.lis, ofile=c:\sugi22\html1.htm); WEB PAGES WITH SAS LIST OUTPUT Figure 1 shows Web pages with SAS list output. SAS GRAPHICS FORMAT CONVERSION The graphics output produced from SAS/GRAPH software can be stored as a sequential graphics stream file (GSF). GSFs are used to capture data streams in the form in which they are sent to a graphics device. The following table shows SAS device names and their descriptions. SAS Device Name Description CGM Computer Graphics Metafiles HPGL HP Graphic Language PS PostScript Figure 1. SAS List Output on Web Pages 3

If you include SAS graphics output in Web pages, you must convert SAS graphic format to Web graphic format. This makes it possible for a Web server to deliver multiple forms of data to your browser in a single transfer. The Web graphic formats commonly used are: GIF (Graphics Interchange Format), JPEG (Joint Photographic Expert Group), PDF (Portable Document Format), PS (PostScript), and XBM (X-Window Bitmap). GIF is chosen for this presentation because of it compressed format and compact nature. Using different graphics format for the same sample graphics output produces different size of the graphic file. Figure 3. SAS Graphics Output on Web Pages Format Size (Byte) BMP 1277118 HPGL 132282 PS 86146 PCX 65053 GIF 8042 CGM 6570 CONCLUSION This paper uncovered several findings: * Exporting SAS output onto the WWW takes minimal effort and time, and involves no extra hardware equipment. * WWW is a key environment because the SAS output is instant and conveniently displayed to a mass audience. The GIF format can compress the sample image from BMP format up to 159 to 1. * Evolution of the WWW application is unlimited, with the future holding animated and multimedia SAS outputs. You need to use a Image Editor or Converter to convert your SAS graphics output. It loads SAS graphics files and then lets you save or convert them with the graphics format you want. The following HTML code will produce SAS graphics output within Web Pages. <BODY > <IMG SRC=sugig2.gif> </BODY> REFERENCES [1] Williams, Edmond, Shi-Tao Yeh: Importing and Exporting SAS Output with Microsoft Word for Windows, NESUG 8th Annual Conference Proceedings, pp. 728-734, October 1995 [2] Shi-Tao Yeh and Williams, E., "Using PROC GPRINT and Enhancing the Printed Output" NESUG 8th Annual Conference Proceedings, pp. 742-746 October 1995 [3] Shi-Tao Yeh, "Estimation of the Lorenz Curve and Concentration Ratio", SUGI 18 Proceedings, pp. 873-877, SAS Institute Inc., May 1993 Table 2. HTML code for Graphic Output 4

[4] SAS Institute Inc., SAS/GRAPH Software. Version 6. 1990 SAS Institute Inc., Cary, N C, USA Trademark Acknowledgments SAS and SAS/GRAPH are registered trademarks of SAS Institute Inc., in the USA and other countries. Authors: Shi-Tao Yeh, Ph. D. (610)917-5883(W) E-mail: yeashi@erols.com Microsoft is registered trademark and Windows, Word for Windows are trademarks of Microsoft Corporation. GIF is a service mark of CompuServe Incorporated. indicates USA registration. Andrew C. Yeh (609) 784-6752 E-mail:relyt_tech@hotmail.com 5