%rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.
-
Upload
arthur-adams -
Category
Documents
-
view
288 -
download
0
Transcript of %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.
%rtf2data: A utility macro to convert RTF Table to SAS® dataset
Neeral BeladiaMaxisIT Inc.
Introduction RTF(Rich Text Format) Table file format in pharmaceutical industry
Easy insertion of Tables in clinical study reports Special formatting of Table contents e.g. bolding of significant
p-values
Motivation or need of a utility to read-in RTF Tables to SAS® datasets Extended analyses on contents of RTF Table Validation of Table/Listings programmatically Comparing multiple versions of the same RTF Table Availability of additional file format for external raw data
%rtf2data Read user-defined meta-data (Excel Sheet) Convert input RTF Table file to SAS® dataset(s)
Overview of meta-data
Step 1
Algorithm continued…
algo.rtf
SAS dataset
Step 2
{\*\bkmkstart bookmark_name}display_text{\*\bkmkend bookmark_name}
{\field {\*\fldinst HYPERLINK "filename_and_path"}{\fldrslt display_text}}
Algorithm continued…
Step 3
Step 4
Algorithm continued…
algo.rtf
Step 5
Step 6
Step 7
Step 8
Test CasesCase 1
Test Cases continued…
a) INCOL = 1
b) APPEND = 0
c) DELHDR = 1 (except footnote section)
Case 2
Test Cases continued…
a) INCOL = 1
b) APPEND = 1
c) DELHDR = 1
Case 3
a) INCOL = 1
b) APPEND = 1
c) DELHDR = 1
Limitations
The first column header at the start of each section must have a non-missing identifier text that doesn’t appear as part of the data.
The column header separators (cell boundaries) for the header row holding the identifier text must match with the column separators of the data within the section.
Acknowledgements
I would like to thank Management of MaxisIT Inc. Carey Smoak, Manager, Roche
Molecular Systems, Pleasanton, CA Cynthia He, Manager, Merck & Co.,
Kenilworth, NJ
Contact Information
Author Name : Neeral Beladia
Company : MaxisIT Inc.
Address : 203 Main St
City : Metuchen State : NJ ZIP : 08840
Email : [email protected]
Questions ?
Trademark Information
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.