Whether It is easy to reduce the size of my XML file when it is generated from the SAS dataset which has 55000 records and 25 variables to build the map from it?
I do not understand, if your XML file is created from a SAS data set, why would you want to read it again into SAS?
Since your XML file is created from a SAS data set, you can control the number of obs written to that file, so you can build your XML map file using the SAS XML Mapper program.
Being guilty of very, very briefly perusing the link, I wrote my own map file for the CDISC define.xml (perhaps no substitute for the SAS Clinical Standards Toolkit). I spent a weekend morning over a prolonged breakfast and reading https://www.w3schools.com/xml/. With a nod to Jozef Aerts (XML4Pharma) on the Linkedin CDISC Define-XML group, I learned the hard way about the importance of namespaces in XML.
With a few references in hand, I can write XML (or write a SAS program that writes XML "manually"). The OP did not specify the nature of the XML, but very likely a group exists that will provide useful advice, or, in my usual case, corrections.
HTH,
Kevin
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.