BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Babloo
Rhodochrosite | Level 12

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:

 

 

Blank Spaces.PNG

1 ACCEPTED SOLUTION
1 REPLY 1

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 801 views
  • 1 like
  • 2 in conversation