Embedded Special Characters Kiran Karidi, Mahipal Vanam, and Sridhar Dodlapati



Similar documents
SAS to Excel with ExcelXP Tagset Mahipal Vanam, Kiran Karidi and Sridhar Dodlapati

PharmaSUG Paper CC30

ENHANCING SAS OUTPUT WITH OUTPUT DELIVERY SYSTEM (ODS)

Scientific Graphing in Excel 2010

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

Scatter Plots with Error Bars


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

Chapter 4: Computer Codes

OWrite One of the more interesting features Manipulating documents Documents can be printed OWrite has the look and feel Find and replace

Bitrix Site Manager 4.0. Quick Start Guide to Newsletters and Subscriptions

IBM Emulation Mode Printer Commands

Preservation Handbook

SUGI 29 Data Presentation

Manage. Help Documentation. This document was auto-created from web content and is subject to change at any time. Copyright (c) 2016 SmarterTools Inc.

Ansur Test Executive. Users Manual

SAS/GRAPH 9.2 ODS Graphics Editor. User s Guide

Website Editor User Guide

Website Editor User Guide

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

Reading Delimited Text Files into SAS 9 TS-673

Word Processing programs and their uses

Introduction to SAS Business Intelligence/Enterprise Guide Alex Dmitrienko, Ph.D., Eli Lilly and Company, Indianapolis, IN

BLACKBOARD 9.1: Text Editor

Technical Paper. Reading Delimited Text Files into SAS 9

There are six different windows that can be opened when using SPSS. The following will give a description of each of them.

ASCII Code. Numerous codes were invented, including Émile Baudot's code (known as Baudot

PharmaSUG 2014 Paper CC23. Need to Review or Deliver Outputs on a Rolling Basis? Just Apply the Filter! Tom Santopoli, Accenture, Berwyn, PA

Web Portal User Guide. Version 6.0

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

Quick Start Guide To: Using the Sage E-marketing Online Editor

Mass . General Use

Company Setup 401k Tab

CaptainCasa. CaptainCasa Enterprise Client. CaptainCasa Enterprise Client. Feature Overview

2- Electronic Mail (SMTP), File Transfer (FTP), & Remote Logging (TELNET)

Using SPSS, Chapter 2: Descriptive Statistics

Preservation Handbook

Sitecore InDesign Connector 1.1

Making the Output Delivery System (ODS) Work for You William Fehlner, SAS Institute (Canada) Inc., Toronto, Ontario

HOW TO USE THIS GUIDE

Beginning Tutorials. Web Publishing in SAS Software. Prepared by. International SAS Training and Consulting A SAS Institute Quality Partner

Counting the Ways to Count in SAS. Imelda C. Go, South Carolina Department of Education, Columbia, SC

Starting User Guide 11/29/2011

FORMATTING OVERVIEW GUIDELINES FOR YOUR THESIS OR DISSSERTATION FOR SUBMISSION TO THE GRADUATE SCHOOL

Basics. a. Click the arrow to the right of the Options button, and then click Bcc.

McAfee Endpoint Encryption Reporting Tool

Scatter Chart. Segmented Bar Chart. Overlay Chart

COMMERCIAL BANKING CHASE COMMERCIAL ONLINE SM FRAUD PROTECTION SERVICES DASHBOARD

SAPScript. A Standard Text is a like our normal documents. In Standard Text, you can create standard documents like letters, articles etc

The use of binary codes to represent characters

Ingeniux 8 CMS Web Management System ICIT Technology Training and Advancement (training@uww.edu)

Data analysis and regression in Stata

BAR CODE 39 ELFRING FONTS INC.

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

ELFRING FONTS UPC BAR CODES

Paper PS04_05 ing a SAS Report to Excel C. Royce Claytor, Dominion Resources Services, Richmond, Virginia

Setting up and Automating a MS Dynamics AX Job in JAMS

Instruction Set Architecture (ISA)

PharmaSUG Paper QT26

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

Creating Raw Data Files Using SAS. Transcript

Enhancing the SAS Enhanced Editor with Toolbar Customizations Lynn Mullins, PPD, Cincinnati, Ohio

HP INTEGRATED ARCHIVE PLATFORM

(1) latex + dvipdfm (which is a DVI to PDF translator) or (2) pdflatex (a version of LaTeX that generates PDF output instead of DVI).

Working with Tables: How to use tables in OpenOffice.org Writer

Producing Structured Clinical Trial Reports Using SAS: A Company Solution

Formatting Text in Microsoft Word

Contents 1. Introduction... 2

for Sage 100 ERP General Ledger Overview Document

SQL Server An Overview

Word processing software

Impress Guide Chapter 3 Adding and Formatting Text

SAS Enterprise Guide in Pharmaceutical Applications: Automated Analysis and Reporting Alex Dmitrienko, Ph.D., Eli Lilly and Company, Indianapolis, IN

PharmaSUG Paper DG06

Customizing Confirmation Text and s for Donation Forms

Graduate School of Biomedical Sciences Depositing your Doctoral Dissertation

Umbraco v4 Editors Manual

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

Tutorial 2: Using Excel in Data Analysis

w w w. g e o s o f t. c o m

DiskPulse DISK CHANGE MONITOR

ABSTRACT INTRODUCTION EXERCISE 1: EXPLORING THE USER INTERFACE GRAPH GALLERY

Using the SAS Enterprise Guide (Version 4.2)

How To Manage Inventory On Q Global On A Pcode (Q)

dopdf dopdf User Manual dopdf does PDF. For free. Copyright 2015 Softland

One Report, Many Languages: Using SAS Visual Analytics to Localize Your Reports

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

How to Use the Text Editor in Blackboard

Microsoft Word 2010 Prepared by Computing Services at the Eastman School of Music July 2010

How To Import A File Into The Raise S Edge

Solar Eclipse Printer Setup. Release 8.7.1

Lab 11: Budgeting with Excel

RAPIDFILE PRODUCT BACKGROUND. Ashton-Tate's RapidFile is a high-performance file manager

Reporting with Pentaho. Gabriele Pozzani

Dynamic Decision-Making Web Services Using SAS Stored Processes and SAS Business Rules Manager

Virtual Fax User Guide

Statgraphics Getting started

Excel 2003 A Beginners Guide

Post Processing Macro in Clinical Data Reporting Niraj J. Pandya

Transcription:

PharmaSUG2010 - Paper CC19 Embedded Special Characters Kiran Karidi, Mahipal Vanam, and Sridhar Dodlapati ABSTRACT When the report generated from the clinical trial data requires to show lot of information in titles and column headers than they can accommodate, then Statisticians / Medical writers use special characters such as subscription, superscription, Greek letters, mathematical symbols, and custom-designed symbols etc to flag, and the complete corresponding information is provided in the footnotes for that flag. There are various techniques available to embed the special characters in the clinical study reports and they will be discussed in this paper. INTRODUCTION Quite often, in clinical trial data analysis reports, we may have to flag the data, titles, footnotes, column headers and graphs (axis labels and/or on the graphical area) with special characters, and give explanation for them in the footnotes. Rationale behind that is, when there is not sufficient space available in the target areas, the need arises to put a flag there and elaborate it later in the footnote. The reason to use the special symbols or characters for this purpose is to distinguish them with other characters and to make them more prominent. SPECIAL CHARACTERS There are different definitions for special characters depending on the encoding system (ASCII, EBCDIC & Unicode are most popular encoding systems), but in common usage, a character is considered as a special character, if that is not readily available on a standard computer keyboard. A special character can either display something or control the display of the characters that follow. Display character examples are: the trademark sign, the registered trademark sign and degree as in degree Cels ius ( C) etc. Control character examples are: new l ine/line feed, new page/form feed, horizontal tab, vertical tab etc. However, for the purpose of flagging, it is obvious that we use the display special characters only. The regular SAS output files are plain text files; and we need special techniques to incorporate the special characters into them. Irrespective of the technique we use to embed the special character in the SAS output, they all follow the same process. First they are written to the code through editor, then during the execution time they are processed and finally they will carry out the specific function they were supposed to do i.e. display or control the display. Also, there are some other factors that influence the outcome, which include SAS version, operating system, system settings, font etc. APPROACHES TO EMBED THE SPECIAL CHARACTERS Approach 1: Directly pasting the special character into the SAS code Even though the special characters are not available on the keyboard, we can put them directly in the SAS code by using the Character map utility provided by Windows Operating system. Go to start Programs Accessories System tools Character map. By default, Character map will have 'Arial' font as default. Depending on your need change the font from the drop down menu. For example default Character map looks like: 1

Choose the character you want, click on Select Copy. Then you can now directly paste this into the SAS windows editor in the required location in the SAS code. Pros: Cons: Very simple method (choose, copy and paste). No additional encoding or translation needed during SAS execution. Only available in Windows operating system. Location path for this utility might be different in different windows versions. SAS windows editor may not support all characters in the utility for a particular font chosen. Characters that are not supported will be translated as a question mark (?) during the paste operation. From the utility, font same as the default font used to viewing the output file needs to be chosen and that too only if available. Approach 2: Using 4 digit Unicode This method is similar to the first approach in terms that character map utility is used to choose the character required. The only difference is, instead of manually copying the character into the SAS code, get the 4 digit unicode for that character and use it in the SAS code as follows: %macro specchar(n=, symbol=); %global &symbol; data _null_; char=input(&n., $UCS2B4.); call symput("&symbol.",trim(left(char))); %put symbol=&&&symbol..; %mend; %specchar(n='00ae'x, symbol=registered_trademark); Output from SAS log: symbol= Pros: Cons: Unlike first approach, this approach works even if editor does not support certain characters. Depends on Unicode the SAS format $UCS2B4. supports Certain symbols encoded will cause text display truncation when used to display as rows in the body of the output. This is due to a bug in SAS 9.2. Other target areas such as titles, footnotes, column headers etc will work fine. Approach 3: Using SAS ODS escape character and the Unicode for the special character required 3a: For all Output destinations: SAS 9.2: ods html file="sample.htm"; label weight="weight ^{unicode 03B1}"; footnote "^{unicode 03B1}Actual Weight may be collected weight ^{unicode 2267} 2 lbs"; 2

ods _all_ close; Pros: Easy to use and supports all kinds of output destinations (HTML, RTF, PDF etc.). Cons: Not reliable across output destinations. 3b: For RTF output destination using ODS RTF and RTF in-line formatting. SAS 8 code: ods rtf file="sample.rtf"; title1 'this value is superscripted ^{super 2} '; title2 'this value is subscripted ^{sub 2} '; ods _all_ close; SAS 9.2 code: ods rtf file="sample.rtf"; title1 'this value is superscripted ^\super 2 '; title2 'this value is subscripted ^\sub 2 '; ods _all_ close; 3

Pros: Many options to customize the special character display using the RTF pass through capability in version 9. Cons: This functionality is limited to RTF outputs. Approach 4: Using byte function One of the most popular ways of doing this is by using the BYTE function in SAS. BYTE(n), where n specifies an integer that represents a specific ASCII or EBCDIC character. The value of n can range from 0 to 255. If the BYTE function returns a value to a variable that has not yet been assigned a length, by default the variable is assigned a length of 1. For EBCDIC collating sequences, n is between 0 and 255. For ASCII collating sequences, the characters that correspond to values between 0 and 127 represent the standard character set. Other ASCII characters that correspond to values between 128 and 255 are available on certain ASCII operating environments, but the information those characters represent varies with the operating environment. Because Windows is an ASCII system, the BYTE function returns the nth character in the ASCII collating sequence. The value of n can range from 0 to 255. In IBM mainframe operating systems and some non-ibm platforms as well, where the EBCDIC encoding system is in effect, the BYTE function return the corresponding EBCDIC character. There are two approaches to get the special character by using the BYTE function: 4a. Direct use of BYTE function. 4b. Creating a macro variable using BYTE function, and then use the macro variable. 4a) DIRECT USE OF BYTE FUNCTION: This method is useful if a character need to be used at only one place or few places. proc print data=sashelp.class(obs=3); title1 "this value is subscripted %sysfunc(byte(178))"; title2 'this value is subscripted ^{sub 2} '; 4b) CREATING A MACRO VARIABLE USING BYTE FUNCTION, AND THEN USE THE MACRO VARIABLE: This method is useful if the same character need to be used in many places. %let special_char=%sysfunc(byte(n)); 4

Above created macro variable special_char can be used anywhere in the SAS code. To get the complete symbols list in your environment submit the following code, the decimal value and its corresponding character will be displayed in SAS log. data _null_; do i=0 to 255 ; special_char=byte(i); put i +10 special_char; end; Partial output from SAS log: REFERENCES http://support.sas.com/documentation/ http://support.sas.com/documentation/cdl/en/hostwin/61924/html/default/win-func-byte.htm Shiqun (Stan) Li, Minimax; Creating Special Symbols in SAS Graphs. www.lexjansen.com/pharmasug/2008/cc/cc28.pdf Dennis Gianneschi; General Methods to Use Special Characters. http://www.wuss.org/proceedings08/08wuss%20proceedings/papers/cod/cod07.pdf CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author at: Kiran Karidi (Kiran.Karidi@Novartis.com, KaridiKiran@yahoo.com) Mahipal Vanam (Mahipal.Vanam@EMDSerono.com, Mahipal.V@gmail.com) Sridhar Dodlapati (Sridhar.Dodlapati@frx.com, Sridhardpt@yahoo.com) 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. 5