I've a SAS program where it reads a SAS dataset and convert it to the XML file. However, I observed that there is an extra space is appended with few of the variables in the output XML file and I want to remove the extra spaces as highlighted in yellow below. Since the values are coming from the dataset, I think I've apply trim function to the variables 'dateRenewal' and 'clause_Base' but I'm not certain how to apply. Appreciate if someone of you guide me here.
Snippet of SAS program:
put '<dateRenewal>' dateRenewal '</dateRenewal>';
put '<clauseCode>' clause_Base '</clauseCode>';
Snippet of Output XML file:
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.