BookmarkSubscribeRSS Feed

Create Define.xml file by data step

Started ‎02-19-2021 by
Modified ‎02-19-2021 by
Views 4,427

Forgive me I don't like to write too much word for this topic . All stuff are in attachments.

Define.xml is important for sas programmer , which is meta data for SDTM .

But most sas user create it by the third software like : Pinnacle 21 .

Actually it is not a big deal. If you have a qualified define.xml , and as its format ,write some data step ,you also could get define.xml .


1)Attachment 'define_xml_code.rar' has '' , run it and could get define.xml under the same directory.

2)All you need to do is just change 'Spec.xlsx' to book the stuff you need.

   Note: codelist must be unique name .

3)If you need English version , just rename 'define2-0-0-en.xsl'  into 'define2-0-0.xsl' . If need Chinese ,rename  'define2-0-0-cn.xsl'  into 'define2-0-0.xsl' .






4)Attachment 'define_xml_code_for_PDF.rar' is order to generate PDF version of define.xml .

   Note: run '' could get 'define_xml.pdf' under the same directory .

屏幕截图 2021-02-19 200149.png


Version history
Last update:
‎02-19-2021 07:08 AM
Updated by:



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags