170 likes | 560 Views
%rtf2data: A utility macro to convert RTF Table to SAS ® dataset. Neeral Beladia MaxisIT Inc. Introduction. RTF(Rich Text Format) Table file format in pharmaceutical industry Easy insertion of Tables in clinical study reports
E N D
%rtf2data: A utility macro to convert RTF Table to SAS® dataset Neeral Beladia MaxisIT 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)
algo.rtf Step 1 SAS dataset Algorithm continued…
Step 2 {\*\bkmkstartbookmark_name}display_text{\*\bkmkendbookmark_name} {\field {\*\fldinst HYPERLINK "filename_and_path"}{\fldrslt display_text}} Step 3 Algorithm continued…
Step 4 algo.rtf Algorithm continued…
Step 5 Step 6
Step 7 Step 8
Test Cases Case 1 INCOL = 1 APPEND = 0 DELHDR = 1 (except footnote section) Test Cases continued…
Case 2 • INCOL = 1 • APPEND = 1 • DELHDR = 1 Test Cases continued…
Case 3 • INCOL = 1 • APPEND = 1 • 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 : neeral_beladia@yahoo.com
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.