E-Mail OS/390 SAS/MXG Computer Performance Reports in HTML Format



Similar documents
Automated distribution of SAS results Jacques Pagé, Les Services Conseils HARDY, Quebec, Qc

Report Customization Using PROC REPORT Procedure Shruthi Amruthnath, EPITEC, INC., Southfield, MI

Paper Hot Links: Creating Embedded URLs using ODS Jonathan Squire, C 2 RA (Cambridge Clinical Research Associates), Andover, MA

Tips and Tricks for Creating Multi-Sheet Microsoft Excel Workbooks the Easy Way with SAS. Vincent DelGobbo, SAS Institute Inc.

Post Processing Macro in Clinical Data Reporting Niraj J. Pandya

You have got SASMAIL!

Utilizing Clinical SAS Report Templates with ODS Sunil Kumar Gupta, Gupta Programming, Simi Valley, CA

Using Macros to Automate SAS Processing Kari Richardson, SAS Institute, Cary, NC Eric Rossland, SAS Institute, Dallas, TX

SAS ODS HTML + PROC Report = Fantastic Output Girish K. Narayandas, OptumInsight, Eden Prairie, MN

Creating Word Tables using PROC REPORT and ODS RTF

RoboMail Mass Mail Software

Choosing the Best Method to Create an Excel Report Romain Miralles, Clinovo, Sunnyvale, CA

FIRST STEP - ADDITIONS TO THE CONFIGURATIONS FILE (CONFIG FILE) SECOND STEP Creating the to send

SUGI 29 Tutorials. Paper Using Styles and Templates to Customize SAS ODS Output Sunil K. Gupta, Gupta Programming, Simi Valley, CA

Methodologies for Converting Microsoft Excel Spreadsheets to SAS datasets

CICS Transactions Measurement with no Pain

SENDING S IN SAS TO FACILITATE CLINICAL TRIAL. Frank Fan, Clinovo, Sunnyvale CA

Capacity Planning Techniques for Growing SAS Workloads

A SAS Based Correspondence Management System Bernd E. Imken, Patented Medicine Prices Review Board, Ottawa, Canada

Utilizing Clinical SAS Report Templates Sunil Kumar Gupta Gupta Programming, Thousand Oaks, CA

Sending s in SAS to Facilitate Clinical Trial Frank Fan, Clinovo, Sunnyvale, CA

Integrating SAS and Excel: an Overview and Comparison of Three Methods for Using SAS to Create and Access Data in Excel

DiskPulse DISK CHANGE MONITOR

Determine What SAS Version and Components Are Available

Let SAS Write Your SAS/GRAPH Programs for You Max Cherny, GlaxoSmithKline, Collegeville, PA

How to Color Your Report? By Xuefeng Yu, Celgene Co., Summit, NJ

Tales from the Help Desk 3: More Solutions for Simple SAS Mistakes Bruce Gilsen, Federal Reserve Board

Application Note RMF Magic 5.1.0: EMC Array Group and EMC SRDF/A Reporting. July 2009

SysPatrol - Server Security Monitor

One problem > Multiple solutions; various ways of removing duplicates from dataset using SAS Jaya Dhillon, Louisiana State University

Switching from PC SAS to SAS Enterprise Guide Zhengxin (Cindy) Yang, inventiv Health Clinical, Princeton, NJ

Customer Tips. Configuration and Use of the MeterAssistant Option. for the user. Purpose. Xerox Device Configuration. Xerox Multifunction Devices

Setup Guide. network support pc repairs web design graphic design Internet services spam filtering hosting sales programming

Advanced Event Viewer Manual

Scheduling in SAS 9.3

CA MICS Resource Management r12.7

Efficient Techniques and Tips in Handling Large Datasets Shilong Kuang, Kelley Blue Book Inc., Irvine, CA

SAS IT Resource Management 3.2

Let There Be Highlights: Data-driven Cell, Row and Column Highlights in %TAB2HTM and %DS2HTM Output. Matthew Flynn and Ray Pass

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

Using Version Control and Configuration Management in a SAS Data Warehouse Environment

Beyond the Basics: Advanced REPORT Procedure Tips and Tricks Updated for SAS 9.2 Allison McMahill Booth, SAS Institute Inc.

NDA ISSUE 1 STOCK # CallCenterWorX-Enterprise IMX MAT Quick Reference Guide MAY, NEC America, Inc.

Using Pharmacovigilance Reporting System to Generate Ad-hoc Reports

Essential Project Management Reports in Clinical Development Nalin Tikoo, BioMarin Pharmaceutical Inc., Novato, CA

Create an Excel report using SAS : A comparison of the different techniques

Instant Interactive SAS Log Window Analyzer

ODS for PRINT, REPORT and TABULATE

Vodafone Business Product Management Group. Hosted Services Announcer Pro V4.6 User Guide

Search and Replace in SAS Data Sets thru GUI

REx: An Automated System for Extracting Clinical Trial Data from Oracle to SAS

Tips and Tricks SAGE ACCPAC INTELLIGENCE

SAS Visual Analytics 7.1 for SAS Cloud. Quick-Start Guide

Presentation Reporting Quick Start

Innovative Techniques and Tools to Detect Data Quality Problems

THE POWER OF PROC FORMAT

Simply Accounting Intelligence Tips and Tricks Booklet Vol. 1

Hands-On Workshops HW003

PharmaSUG Paper AD11

Information Systems. Capacity Planning Monthly Report

Carl R. Haske, Ph.D., STATPROBE, Inc., Ann Arbor, MI

Importing Excel File using Microsoft Access in SAS Ajay Gupta, PPD Inc, Morrisville, NC

SAS Add-In 2.1 for Microsoft Office: Getting Started with Data Analysis

UNIX Comes to the Rescue: A Comparison between UNIX SAS and PC SAS

SAS Add in to MS Office A Tutorial Angela Hall, Zencos Consulting, Cary, NC

Perfecting Report Output to RTF Steven Feder, Federal Reserve Board, Washington, D.C.

Paper TT09 Using SAS to Send Bulk s With Attachments

Settings 1 September 2015

An macro: Exploring metadata EG and user credentials in Linux to automate notifications Jason Baucom, Ateb Inc.

Microsoft Dynamics GP. Project Accounting Cost Management Guide

Paper RIV15 SAS Macros to Produce Publication-ready Tables from SAS Survey Procedures

Using SAS to Create Graphs with Pop-up Functions Shiqun (Stan) Li, Minimax Information Services, NJ Wei Zhou, Lilly USA LLC, IN

Histogram of Numeric Data Distribution from the UNIVARIATE Procedure

PO-18 Array, Hurray, Array; Consolidate or Expand Your Input Data Stream Using Arrays

Paper PO03. A Case of Online Data Processing and Statistical Analysis via SAS/IntrNet. Sijian Zhang University of Alabama at Birmingham

CB Advanced: Innovative Document Templates

Scheduling in SAS 9.4 Second Edition

IBM Unica emessage Version 8 Release 6 February 13, User's Guide

IT Service Level Management 2.1 User s Guide SAS

Make it SASsy: Using SAS to Generate Personalized, Stylized, and Automated Lisa Walter, Cardinal Health, Dublin, OH

Microsoft Expression Web

TouchBase Pro. Users Guide

Let SAS Modify Your Excel File Nelson Lee, Genentech, South San Francisco, CA

NEC Express5800 Series NEC ESMPRO AlertManager User's Guide

Forms Printer User Guide

Normalizing SAS Datasets Using User Define Formats

Creating Basic Custom Monitoring Dashboards Antonio Mangiacotti, Stefania Oliverio & Randy Allen

KM-Net ServiceGateway Quick Start Guide. Version # November 2004

Transcription:

SAS Users Group International (SUGI29) May 9-12,2004 Montreal, Canada E-Mail OS/390 SAS/MXG Computer Performance Reports in HTML Format ABSTRACT Neal Musitano Jr Department of Veterans Affairs Information Technology Center Philadelphia, Pennsylvania This paper displays a user example to generate and to e-mail an OS/390 SAS report in HTML format The report is created and e-mailed via a batch job using BASE SAS Input to this example is from the daily OS/390 SAS/MXG Performance Database, but e-mail reports can be generated from your choice of input data The example e-mail report is generated as an HMTL file using the Version82 BASE SAS Output Display System (ODS) and PROC REPORT Reports can also be generated via other procedures such as PROC PRINT INTRODUCTION The SAS/MXG software processes the OS/390 SMF/RMF performance data into daily, weekly and monthly MXG Computer Performance Databases These databases contain numerous SAS datasets Each SAS dataset contains performance variables in a SAS readable format The advantage of using MXG software is that it converts raw performance data from IBM and third party computer vendors into SAS readable format for processing by SAS jobs MXG provides numerous examples of SAS analyze examples and plots, from utilizing SAS/BASE to using SAS/GRAPH PREPARATION Figure #1 displays the JCL used for this example Two e-mail options were used The option EMAILSYS=SMTP specifies the SMTP e-mail interface and EMAILHOST=1234567892 specifies the TCP/IP address of the mainframe e-mail server The option EMAILPORT=25 to identify the default e-mail port number, might be needed at some sites These options worked for this example However; depending on your base SAS procedure setup and system TCP/IP installation you may want to check with your computer site if specifying the parameters is necessary or to verify your computer site s specific parameter information Figure #1 OS/390 SAS JCL //***************************************** //S1 EXEC SASV82, // OPTIONS='EMAILSYS=SMTP EMAILHOST=1234567892' //*** //LIBRARY DD DSN=MXGFORMATS,DISP=SHR //SOURCLIB DD DSN=MXGSOURCLIB,DISP=SHR //PDB1 DD DSN=MXGPDBDAILY(-1),DISP=SHR //PDB2 DD DSN=MXGPDBDAILY(0),DISP=SHR //*** //*** USE SAS TO SEND E-MAIL //*** E-MAIL REPORT //*** //SYSIN DD DSN=MXGUSERSOURCLIB(PMXGMAIL), // DISP=SHR The SAS web site is often a good place to begin a search for information The following link http://supportsascom/admin/mainframe/os390/tips/indexhtml provided an excellent reference for examples and tips on OS/390 e-mail

SAS Users Group International (SUGI29) May 9-12,2004 Montreal, Canada Figure #2 E-Mail Report in HTML Format - From OS/390 Base SAS SAS E-MAIL REPORT ON CPU USE Figure #2 displays an e-mail report generated from BASE/SAS Version 82 using the Output Delivery System (ODS) The code to produce the e-mail report is displayed in Figure#3A-F A modified test MXG PDB was used for input data, no actual values of detailed computer performance data were used in the paper The HTML e-mail display is being viewed from Microsoft Outlook Note that some internet service providers, have firewalls that prevent HTML e-mails or have their own e-mail set up that might perform unexpected edits on HTML e-mail The e-mail report displays the OS/390 CPU usage for each shift for two days of input The date variable with the label date of startime is used as a break variable The TO, CC, REPLYTO, and SUBJECT are specified in the SAS program that writes the TEXT/HTML file Note that for this example the from-id is the user of the batch job, but a different REPLYTO id can be specified The min, mean and max values of CPU usage are displayed for each shift of each date displayed The OS/390 value for the computer sysplex-id is taken from the input data and is displayed in the second title line by using #BYVALS The footnote displays the OS/390 job name that generated the report and the date that the job started execution - 2 -

SAS Users Group International (SUGI29) May 9-12,2004 Montreal, Canada E-MAIL Program Details The SAS code for the report is displayed in Figures #3A-F and used ODS and PROC REPORT to generate the e- mail report The SAS code is one program but is sectioned into Figures #3A-F for display purposes The NOBYLINE option is used, since the program will use #BYVALS in the TITLE statement to print the BY values Optionally PROC TEMPLATE was used to edit the default style to change the background color of the HTML report from a gray background to a light blue color CXCCFFFF Figure #3A /* USE SAS TO SEND E-MAIL */ /* MEMBER PMXGMAIL */ OPTIONS NOBYLINE ; /* change HTML background color */ PROC TEMPLATE; edit stylesdefault as stylestesta1; style color_list / 'bga' = CXCCFFFF; end; The daily MXG pdbrmfintrv data was used for input to the program Interval computer performance data is summarized in this dataset The DATA step creates a MYRMFDATA SAS dataset and uses the SET statement to reference two OS/390 DD cards in the JCL of Figure#1 Each PDB1 and PDB2 file contains the SAS/MXG dataset RMFINTRV Since two days of input to the data step were used, the date variable was used as a break variable in the report PROC SORT is used with the NODUP option, as a precautionary double check to prevent duplicate data being used in the report The input data MYRMFDATA is then sorted by sysplex, date, and shift for the report Figure #3B /* input two days data into report */ /* select sysplex */ /* sort by sysplex date shift */ DATA MYRMFDATA; SET PDB1RMFINTRV PDB2RMFINTRV (where=(sysplex='sugplex') ); PROC SORT NODUP DATA=MYRMFDATA; BY SYSPLEX DATE SHIFT; - 3 -

SAS Users Group International (SUGI29) May 9-12,2004 Montreal, Canada PROC MEANS is used to find the min, mean and maximum values of the variable PLATBUSY for each daily shift The noprint option was used to prevent undesired printing of output from the means procedure Output is directed to a work SAS dataset named MYEMAILDATA Figure #3C /* find min mean max platbusy */ /* for each daily shift */ PROC MEANS NOPRINT DATA=MYRMFDATA; BY SYSPLEX DATE SHIFT; VAR PLATBUSY ; OUTPUT OUT=MYEMAILDATA MIN= MINPLATBUSY MEAN= AVGPLATBUSY MAX= MAXPLATBUSY ; The FILENAME statement defines MYFILE will be written as e-mail Additional items defining TO, CC, REPLYTO, and SUBJECT are specified and the file type is defined as a TEXT/HTML file Note, that multiple e-mail id s can be specified in the TO and CC fields Please use your e-mail id in the REPLYTO address Note: the REPLYTO e-mail address is not necessarily the FROM e-mail address The Output Display System (ODS) is creating a HTML file with a body name MYFILE Note MYFILE is referenced in the previous filename statement as an e-mail type file The RS=none option is used for OS/390 systems It suppresses a record separator and causes a new record for each HTML output line However; you might consider testing an example without specifying it The STYLE of TESTA1 is being used note it was created from the initial PROC TEMPLATE edit of the default style Figure #3D /* Define the e-mail file */ FILENAME MYFILE EMAIL TO=("PersonAEmailid@VAGOV" "PersonBEMAILid@VAGOV") CC=( "PersonCEMAILid@VAGOV") REPLYTO=("YOUREMAILID@ABCDCOM") SUBJECT="SAS MXG E-MAIL REPORT" TYPE="TEXT/HTML" ; ODS HTML BODY=MYFILE RS=NONE STYLE=TESTA1; - 4 -

SAS Users Group International (SUGI29) May 9-12,2004 Montreal, Canada This example uses PROC REPORT to generate the report, since it provides numerous options for formatting the output and can be easily expanded on for future report modifications Input to the procedure is the MYEMAILDATA file from the previous PROC MEANS Note that PROC PRINT could also be used as quick and easy way to produce the output The title statements use colors The text color and background colors are specified on both title statements Since a BYVAL1 is used, the sysplex id (the first by variable in the PROC and the sort selection) is displayed on the second title line in Figure #2 The column statement creates a column for the variables that are used in the report The define statements defines for each variable detailed output control and format options Figure #3E /* USE PROC REPORT TO REPORT */ PROC REPORT SPLIT='*' DATA=MYEMAILDATA HEADLINE HEADSKIP STYLE(REPORT)= {BACKGROUND=RED borderwidth=3 bordercolor=blue cellspacing=2} STYLE(HEADER)= {FOREGROUND=MAROON BACKGROUND=CXFFFFFF}; BY SYSPLEX; LABEL MINPLATBUSY='MIN PLATFORM*PERCENT*HARDWARE BUSY' AVGPLATBUSY='AVG PLATFORM*PERCENT*HARDWARE BUSY' MAXPLATBUSY='MAX PLATFORM*PERCENT*HARDWARE BUSY'; TITLE1 COLOR=BLUE BCOLOR=CX00FF00 'CPU USAGE REPORT FROM SAS/MXG SOFTWARE'; TITLE2 COLOR=WHITE BCOLOR=ORANGE ' SYSPLEX = #BYVAL1'; COLUMN DATE SHIFT MINPLATBUSY AVGPLATBUSY MAXPLATBUSY; DEFINE DATE / ORDER ORDER=DATA FORMAT=DATE9 STYLE={FOREGROUND=BLUE BACKGROUND=GOLD FONT_WEIGHT=BOLD} CENTER; DEFINE SHIFT / DISPLAY FORMAT=$CHAR1 CENTER STYLE={FOREGROUND=BLACK BACKGROUND=ORANGE FONT_WEIGHT=BOLD }; DEFINE MINPLATBUSY / DISPLAY FORMAT=COMMA90 CENTER; DEFINE AVGPLATBUSY / DISPLAY FORMAT=COMMA90 CENTER STYLE={FOREGROUND=BLACK BACKGROUND=CX99FF99 FONT_WEIGHT=BOLD}; DEFINE MAXPLATBUSY / DISPLAY FORMAT=COMMA90 CENTER; - 5 -

SAS Users Group International (SUGI29) May 9-12,2004 Montreal, Canada A footnote statement is used to place a footnote at the bottom left of the report The SAS jobid and date the job started execution are displayed in the footnote Figure #3F FOOTNOTE1 COLOR=BLUE JUSTIFY=LEFT HEIGHT=24 "REPORT FROM JOB = &SYSJOBID ON &SYSDATE9"; /* NOTE THE DOUBLE QUOTES ON FOOTNOTE1 */ ODS HTML CLOSE; CONCLUSION The OS/390 Base SAS JCL procedure is easily used to send SAS based e-mail reports The daily, weekly and monthly reports are e-mailed to specific individuals on time and improved the ease of use for managers and technicians to review computer performance activity Providing e-mailed BASE SAS HTML reports from PROC REPORT or PROC PRINT also improved management and customer satisfaction by eliminating misrouted printed reports REFERENCES IBM OS/390 - MVS System Management Facilities (SMF) - GC28-1783-05 IBM OS/390 - Resource Measurement Facility (RMF) User s Guide - SC28-1949-03 Merrill's Expanded Guide to Computer Performance Evaluation Using the SAS System Technical Newsletters for Users of MXG MXG Archives at WWWMXGCOM NESUG Proceeding 1994 Effective Poster Presentations for SAS User Group Conferences: Helen-Jean Talbott SAS Technical Support at http://supportsascom SAS-L archives at http://wwwlistservugaedu/ SAS ONLINE DOC Version 8 CDROM CONTACT INFORMATION Your comments and questions are welcome Neal Musitano Jr Department of Veterans Affairs Information Technology Center-284/31 P O BOX 7545 Philadelphia, PA 19101-7545 Phone 215-842-2000 ext 4102 FAX 215-381-3456 EMAIL TSDNMUSI@VBAVAGOV 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 indicates USA registration Other brand and product names are trademarks of their respective companies - 6 -