Appendix D: %make_define SAS Macro

%make_define SAS Macro

Additional SAS Code Comments

In this appendix, we present the %make_define SAS macro that is used in Chapter 2 to create the SDTM define.xml and again in Chapter 6 to create the ADaM define.xml. The program is annotated with numbered bullets for additional commentary that appears at the end of this appendix. See

%make_define SAS Macro


* %make_define creates the define.xml file for the SDTM and ADaM.  

* It creates define.xml based on the contents of a set of metadata

* tabs found in an Excel spreadsheet.



*            path = System path to where the SDTM or ADaM ...

Get Implementing CDISC Using SAS now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.