%rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

16
%rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Transcript of %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Page 1: %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.

Page 2: %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)

Page 3: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Overview of meta-data

Page 4: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Step 1

Algorithm continued…

algo.rtf

SAS dataset

Page 5: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Step 2

{\*\bkmkstart bookmark_name}display_text{\*\bkmkend bookmark_name}

{\field {\*\fldinst HYPERLINK "filename_and_path"}{\fldrslt display_text}}

Algorithm continued…

Step 3

Page 6: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Step 4

Algorithm continued…

algo.rtf

Page 7: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Step 5

Step 6

Page 8: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Step 7

Step 8

Page 9: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Test CasesCase 1

Test Cases continued…

a) INCOL = 1

b) APPEND = 0

c) DELHDR = 1 (except footnote section)

Page 10: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Case 2

Test Cases continued…

a) INCOL = 1

b) APPEND = 1

c) DELHDR = 1

Page 11: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Case 3

a) INCOL = 1

b) APPEND = 1

c) DELHDR = 1

Page 12: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

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.

Page 13: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

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

Page 14: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Contact Information

Author Name : Neeral Beladia

Company : MaxisIT Inc.

Address : 203 Main St

City : Metuchen State : NJ ZIP : 08840

Email : [email protected]

Page 15: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

Questions ?

Page 16: %rtf2data: A utility macro to convert RTF Table to SAS ® dataset Neeral Beladia MaxisIT Inc.

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.